users@glassfish.java.net

Re: MDB properties

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Dec 2008 07:13:30 PST

Hi Matt,

Activation Config properties fall under the category of deployment metadata that is not exposed via any API to the application. If you need general name/value pairs you can use the <env-entry> element in ejb-jar.xml. These are looked up relative to java:comp/env/ like ejb-refs or injected using @Resource.

Developers also sometimes just put a .properties file in the ejb-jar and retrieve it via
BeanClass.class.getResourceAsStream()
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=321258