At 12:00 AM 7/30/2001, David Jencks wrote:
>Out of curiousity, what is the relationship between the ejbs and the
>mbeans?
One of the MBean(s) is a incrementing key generator for the primary keys of
entity beans. One is instantiated for each table. The other two act as a
central place to stick configuration information. One is security related
and stores the JNDI/LDAP server connection info as well as other related
security configuration. The other is application related and stores a
reference to the DataSource. It bothered me to have hard coded JNDI names
to look up the data sources spread out and in all the different methods of
all the EJBs. So I have a base class that all EJBs extend that maintains a
lazy reference to the application MBean which contains any necessary
configuration information. End result is there is only one hard coded JNDI
name in the base EJB class. Currently the app MBean keeps a reference to
the security MBean. Does this sound ok, or am I violating any EJB server
design rules and my code blow up? Thanks again.
Frederick N. Brier
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user