[jboss-user] [JNDI and Naming] - Re: Dependancy injection with datasources within a webservice

Ondrej Medek do-not-reply at jboss.com
Thu Mar 24 06:12:40 EDT 2011


Ondrej Medek [http://community.jboss.org/people/xmedeko] created the discussion

"Re: Dependancy injection with datasources within a webservice"

To view the discussion, visit: http://community.jboss.org/message/595294#595294

--------------------------------------------------------------
Hi,

@Resource(mappedName="java:/AdpartnerDS", name="java:/comp/env/AdpartnerDS")


is working for me on JBoss 5.1.0GA. Note: mappedName is the global JNDI name. The name is the local and you can write anything you like, just it must start by "java:/comp/env/". (I think this is a bug.)
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/595294#595294]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110324/88bbda28/attachment.html 


More information about the jboss-user mailing list