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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to