[jboss-user] [EJB 3.0] - Re: how to inject dependency on an mbean

ALRubinger do-not-reply at jboss.com
Fri Jan 26 13:18:16 EST 2007


In @Resource injection, the value "mappedName" attribute should be the JNDI name of the resource, not the service name.  :)

Like:

@Resource(mappedName = "java:/jdbc/myapp/myDs")
  | private DataSource myDs;

S,
ALR

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

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



More information about the jboss-user mailing list