ejb-jar scoped JNDI ENC
-----------------------
Key: OPENEJB-125
URL: http://jira.codehaus.org/browse/OPENEJB-125
Project: OpenEJB
Type: Wish
Components: deployment, container system
Versions: 3.0
Reporter: David Blevins
Fix For: 3.0
Support for an ejb-jar level JNDI ENC that all ejbs in an ejb-jar can share.
The individual JNDI ENC of a bean would override the ejb-jar level ENC the
resulting ENC is available to each bean as their ENC.
This could be configured in the bottom of the assembly-decsriptor element of
the ejb-jar.xml as an zero or more.
<assembly-descriptor>
...
<env-entry>
<env-entry-name>defaultDateFormat</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>YY-MM-DD</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>regionalCurrency</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>USD</env-entry-value>
</env-entry>
</assembly-descriptor>
People who do any real work with JNDI end up specifying a few JNDI entries over
and over again in an ejb-jar which is really annoying. Those that don't want
to go that route attempt to use hacks to try and reference properties files on
the system.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira