Version : JBoss-2.2.2

I have defined a JDBC DataSource xxxx_pool and i can see that it is successfully bound 
as java:/xxxx_pool. 
[xxxx_pool] Starting
[xxxx_pool] XA Connection pool xxxx_pool bound to java:/xxxx_pool
[xxxx_pool] Started

I have no problem accessing this datasource from within a Session Bean using 
Context ctx = new InitialContext();
DataSource ds = ctx.lookup("java:/xxxx_pool");

But when I try to access this datasource from a standalone java client, I am able to 
access the Context in the app server correctly and I am able to list the bound objects 
( This tells me that my jndi.properties is at the right place and my client is able to 
connect to the App Server). But When I do the  lookup for DataSource, I get a 
NamingException with xxxx_pool not bound. From my understanding of the j2ee spec, I 
should be able to do this lookup. IS this a bug or am I not understanding the spec 
correctly. Also the Context.list doesnt list any of the datasources. It lists only the 
bounf EJB objects.

Thanks

Sekar

P.S. I have dont the same type of client look up in 2 other commercial App Servers. 




Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to