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...
Thanks dvh75. Let's talk about the String data for a minute because that is exactly what I need to do. The "MyConfigValue" would have to be exposed in JNDI, correct? If so, how do I configure JBoss to place that value in the JNDI directory?
You can use the env-entry element in the ejb-jar.xml and corresponding jboss.xml. Those values get bound to java:comp/env namespace of the component in the JNDI. Look for the dtds of ejb-jar.xml and jboss.xml for more details. Let us know, if you are having trouble in configuring them.
Thanks for the reply. This is exactly what I needed. Thank you very much for the pointer.