aspose file tools
The moose likes JBoss and the fly likes jdbc namespace not bound in JNDI for clients Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "jdbc namespace not bound in JNDI for clients" Watch "jdbc namespace not bound in JNDI for clients" New topic
Author

jdbc namespace not bound in JNDI for clients

Rick DeBay
Ranch Hand

Joined: Jul 11, 2003
Posts: 70
The InitialContext returned to a client from the JBoss naming service contains entries for all the EJBs, services (such as topic and queue), etc. The name jdbc is not bound (I dumped the contents using list("java:/")).
When the InitialContext is obtained from within the container, jdbc is bound (lookups against java:/jdbc succeed).
The startup log shows it being bound here:

16:25:41,736 INFO [jdbc/FirebirdDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=NoTxCM,name=jdbc/FirebirdDS to JNDI name 'java:/jdbc/FirebirdDS'
16:25:41,746 INFO [jdbc/XA-Firebird-Rxs] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=TxCM,name=jdbc/XA-Firebird-Rxs to JNDI name 'java:/jdbc/XA-Firebird-Rxs'

Why isn't jdbc showing up outside the container, and how may I begin correcting it?

One answer I've gotten was that the java:/ namespace shouldn't be available outside the container, but I'm looking up and using EJBs from the client that way, and OC4J returned pooled connections the same way.
 
IntelliJ Java IDE
 
subject: jdbc namespace not bound in JNDI for clients
 
Threads others viewed
JBoss MS SQL server connectivity problems
remote JNDI access on JBoss 3.2.X
java.lang.Unsatisfiedlinkerror
NameNotFoundException
JBoss 3.2 and MySQL - Could not dereference DataSource object
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture