This content has been marked as final.
Show 2 replies
-
1. Re: ResourceEnvRef JNDI
jbosspdio Jul 16, 2009 5:17 AM (in response to jbosspdio)This is the server.xml of the working Tomcat AS
ResourceEnvRef
name="XXXXX/XXXXXXX"
type="de.gebit.trend.bo.persistence.SessionConfiguration"/>
ResourceEnvRef -
2. Re: ResourceEnvRef JNDI
peterj Jul 16, 2009 11:39 AM (in response to jbosspdio)Please use the 'code' tags when posting XML text (that will prevent the browser from mistaking the XML entities as HTML).
I have not worked with resource-env-ref, but it should be similar to how resource-ref is handled. You need a WEB-INF/jboss-web.xml file that contains:<jboss-web> <resource-env-ref> <resource-env-ref-name>XXXXX/YYYYYY</resource-env-ref-name> <jndi-name>ZZZZZ</jndi-name> </resource-env-ref> </jboss-web>
where ZZZZZ is the full JNDI name (including the 'java:' prefix if necessary).
By the way, the DTD for jboss-web.xml is located at docs/dtd/jboss-web_*.dtd