dcsimg
I need to call a JNDI resource
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   jose_jim
Posted On:   Thursday, July 31, 2003 10:39 AM

Hello, Can somebody help me with a question about JNDI? Facts: - I have a Web application in Tomcat where I need to call a JNDI resource from my JSPs. - The resource is a small Java class, some like a connection Pooling. - I configured this in server.xml, and actually I get the instance of this class from my jsp pages without any problem. - Now I need to use a .EAR file and move my application to an application server like JBoss or oracle9ias, because I have to work with EJBs. Question: Does somebody know how can I declare the JNDI resource in my .EAR deployment descriptors?    More>>

Hello, Can somebody help me with a question about JNDI?

Facts:
- I have a Web application in Tomcat where I need to call a JNDI resource
from my JSPs.
- The resource is a small Java class, some like a connection Pooling.
- I configured this in server.xml, and actually I get the instance of this
class from my jsp pages without any problem.
- Now I need to use a .EAR file and move my application to an application
server like JBoss or oracle9ias, because I have to work with EJBs.

Question:
Does somebody know how can I declare the JNDI resource in my .EAR deployment
descriptors?

   <<Less

Re: I need to call a JNDI resource

Posted By:   Eugene_Kuleshov  
Posted On:   Thursday, July 31, 2003 12:18 PM

You can't make static JNDI bindings in your EAR deployment descriptor. None of J2EE containers I know allows that. Usually you have to create such bindings by adding container specific startup class or start some servlet that will do required bindings in init() method.
About | Sitemap | Contact