Hi,

I'm new to JBOSS.  I tried to access the default connection pool. but i'm getting 
errror
am i doing it correctly??

i used like this  
InitialContext ic = new InitialContext(p);

            ds = (DataSource) ic.lookup("java:/DefaultDS");
            
            cn = ds.getConnection();


when i try to run i am hitting an error

javax.naming.NameNotFoundException: DefaultDS not bound
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at testdb.main(testdb.java:24)


Please help me to resolve this problem

thanks in advance
Phil




-----------------------------------------------
Runbox Mail Manager - www.runbox.no
Gratis epost-tjeneste

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

Reply via email to