[jboss-user] [Beginners Corner] - Re: JBoss MDB Beginner Question
do-not-reply at jboss.com
Thu Sep 11 12:57:37 EDT 2008
Don't know if you found your answer or not, but check this out:
As described in the injection section, you can do the following:
The @javax.annotation.Resource annotation allows you to inject resources.
private javax.sql.DataSource ds;
If you just need String data, it would look like so:
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
More information about the jboss-user