Hi all,
Is there a way to put a global property in a deployment descriptor? (So it
can be used from JNDI by several EJBs).
I know that the snipped below work, but it shows what I want to be able to
do:
<ejb-jar>
<enterprise-beans>
<!-- This doesn't work, but I would like to do something
-- which creates a global property that is used by several beans.
-- Am I stuck with environment properties set in shell?? ->
<env-entry>
<env-entry-name>DatabaseType</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>Oracle</env-entry-value>
</env-entry>
<entity>
<description>
Bean which can handle several database types, type must be
set. But how?
</description>
<ejb-name>Party</ejb-name>
<home>com.klin.dbfront.PartyHome</home>
<remote>com.klin.dbfront.Party</remote>
<ejb-class>com.klin.dbfront.PartyBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>com.hiq.klin.dbfront.PartyPK</prim-key-class>
<reentrant>False</reentrant>
</entity>
<entity>
<description>
Bean which can handle several database types, type must be
set. But how?
</description> <ejb-name>Person</ejb-name>
<home>com.klin.dbfront.PersonHome</home>
<remote>com.klin.dbfront.Person</remote>
<ejb-class>com.klin.dbfront.PersonBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>com.klin.dbfront.PersonPK</prim-key-class>
<reentrant>False</reentrant>
</entity>
</enterprise-beans>
<assembly-descriptor></assembly-descriptor>
</ejb-jar>
Thanks
/Kaj
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".