This content has been marked as final.
Show 3 replies
-
1. Re: Migrating WAR binary from Tomcat to JBoss Web (JNDI/SAR/
jaikiran Dec 31, 2008 1:31 AM (in response to dhartford)The java:comp/env namespace if for each component. So if you want the datasource to be available in the java:comp/env namespace of the web application, then you will have to add an entry in the web.xml. That's the reason why you have the resource-ref element.
-
2. Re: Migrating WAR binary from Tomcat to JBoss Web (JNDI/SAR/
dhartford Dec 31, 2008 8:24 AM (in response to dhartford)"jaikiran" wrote:
The java:comp/env namespace if for each component. So if you want the datasource to be available in the java:comp/env namespace of the web application, then you will have to add an entry in the web.xml. That's the reason why you have the resource-ref element.
Is there a resource-ref entry that you can add to web.xml that will be usable in both Tomcat and Jboss Web? Otherwise requiring the modification of the WAR is exactly what I'm trying to avoid.
Or, is the SAR approach not correct, and could put a context.xml somewhere in Jboss Web? -
3. Re: Migrating WAR binary from Tomcat to JBoss Web (JNDI/SAR/
jaikiran Dec 31, 2008 11:14 PM (in response to dhartford)"hartfordd" wrote:
Is there a resource-ref entry that you can add to web.xml that will be usable in both Tomcat and Jboss Web?
The resource-ref entry is in the web.xml file, which is a standard file. So both Tomcat and JBossWeb will support it the same way. So yes, you can add that resource-ref entry to the web.xml and have the application portable.