I have got helper classes deployed with servlets/jsps to access the datasouces created by JBoss. Is that what you are looking for? That involves adding a jboss-web.xml file to the WEB-INF directory. If you are trying to access it outside the container itself, it is unlikely it will work [if it does please do post it]. But if its just from within a helper class then let me know and I could post the jboss-web.xml I have if its of any use.
 
Cheers
 
Vinay
----- Original Message -----
Sent: Monday, June 04, 2001 12:08 PM
Subject: [JBoss-user] JNDI Namespace access..

Hi.
 
I am trying to access the Datasource from the JNDI of JBoss-2.2.1 with Tomcat 3.2.2
When I try it as a JSP code running in embedded tomcat.. I get the "java:" namespace and I am able to list all the objects bound to the java: namespace..
 
But when I try the same namespace from a Java client ( application ) I am able to access only the Global namespace.. Can anyone help on how to access the java: namespace from a java application. If you can give the environmental properties I have to set for access the java: namespace, I think this problem would be solved.. am I right. If so, can someone send me the right properties to set.
 
Thanks in Advance..
 
-Praveen.
 

Reply via email to