Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a A JNDI resource in WAS 6 for a java.lang.String

Status
Not open for further replies.

tuni

Programmer
Jan 18, 2005
2
GB
I have written an application which expects a String object to be in the context. When developing the application I was testing it with Tomcat via Eclipse, and I had set the jndi resource as required. However now I am trying to deploy the app on WAS 6, and I cannot figure out how to create the resource for the String, in my web.xml I have the following...

<resource-ref id="ResourceRef_1">
<res-ref-name>RootPathPropertyName</res-ref-name>
<res-type>java.lang.String</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>

I have tried creating the resources, referenceables etc, but when I go in to the application and try to map resources I get an empty table. Which means I am not configuring the resource correctly in WAS.

Any help will be great.

tuni.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top