[jboss-user] [JNDI/Naming/Network] - Re: HELP: Looking up to java:comp namespace problem!!

lafr do-not-reply at jboss.com
Fri Jul 28 16:13:37 EDT 2006


To get a mail session via "java:comp/env/Mail" I declared this tags for xdoclet:

  |  * @ejb.resource-ref
  |  *      res-ref-name="Mail"
  |  *      res-type="javax.mail.Session"
  |  *      res-auth="Container"
  |  * @jboss.resource-ref
  |  *      res-ref-name="Mail"
  |  *      jndi-name="java:/Mail"
  | 

Using the global namespace you simply do a lookup of "java:/Mail".
No narrowing.


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

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



More information about the jboss-user mailing list