Amal Sirvisetti wrote:
> 
> Hi,
> 
> When I try to lookup the DefaultDS from a test client, I am getting the
> following exception. I am using Pre-2.1 release of jBoss. What could I
> be doing wrong?
> 
> Thanks for your help.
> 
> Got context
> javax.naming.NameNotFoundException: DefaultDS not bound

You can't look up data sources from outside the JBoss JVM. The data
source is actually bound to "java:/DefaultDS" and the "java:" namespace
is only visible in the JBoss JVM.

If you want to use a data source (or some other kind of connection
factory) then you'll need to do it from an EJB (or possibly a servlet).

Toby.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to