Don't know if you found your answer or not, but check this out:
http://docs.jboss.org/ejb3/app-server/tutorial/

As described in the injection section, you can do the following:

The @javax.annotation.Resource annotation allows you to inject resources.

   @Resource(mappedName="DefaultDS")
   private javax.sql.DataSource ds;

If you just need String data, it would look like so:

   @Resource(mappedName="MyConfigValue")
   private String somevalue;


If you're not using the annotations, just declare a resource in the ejb-jar.xml 
for you mdb, then do a jndi lookup on it in your bean.

Hope this helps...


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175925
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to