Hi,

I am defining a resource adapter (connection factory) and then trying to
access it via naming's InitialContext.  The deployment appears to be fine, as
I see:

21:00:53,693 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 
'jboss.jca:service=ConnectionFactoryBinding,name=comp/env/mule/connectionFactory'
 to JNDI name 'java:comp/env/mule/connectionFactory'

Note that the JNDI name is defined in the -ds.xml via:
  <jndi-name>comp/env/mule/connectionFactory</jndi-name> 
and I am worried this is unusual (examples don't usually have so many 
slashes).

When I try to access this via:
  initCtx.lookup("java:comp/env/mule/connectionFactory")
I get the error "env not bound".

This seems odd, given that the same string appears above.  However, I am not
sure if this "comp/env" name is the same as a JNDI name.  But if it's not, I
can't work out how to set it.  The <env-entry> tag seems to be restricted to 
simple types, for example...

I've read the docs until going crazy, but this must be something stupid on my
part.  Apologies, but any help appreciated (v4.0.3RC2 with EJB3, JDK5).  What
am I doing wrong?

Thanks,
Andrew


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893716#3893716

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893716


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to