Hi,
The J2EE specification introduces the notion of modules containing one
or more components of the same module type (ejb, web, etc..).
Furthermore, on page 8-1, the J2EE spec. refers to component
libraries. Suppose that I wish to reuse one of the components from a
module or library, for example, in a new application assembly. The
specification as it currently stands means I have to take all the
components from a module, since there is no way to infer which files
from the ejb-jar must be extracted. An EJB may have certain
dependencies, such as other non-EJB Java classes, gif files, etc..
Would it not be useful to add an entry to the Bean's deployment descriptor,
explicitly stating each dependency?
For example, illustrating the use of a possible tag (jar-entry):
<ejb-jar>
<enterprise-beans>
<session id="Bean1">
<ejb-name>MySession</ejb-name>
<home>com.wombat.empl.EmployeeServiceHome</home>
<remote>com.wombat.empl.EmployeeService</remote>
<jar-entry>com/wombat/empl/EmployeeServiceAdmin</jar-entry> <!-- see page 30 of
EJB1.1 -->
<jar-entry>com/wombat/resources/logo.gif</jar-entry>
</session>
<session id="Bean2">
<description>
I'm not interested in using this Bean
</description>
</session>
</enterprise-beans>
</ejb-jar>
This way, if I wanted to use Bean1, but not Bean2, I could extract it
out of the jar into my new ejb-jar, perhaps to form part of a new
assembly.
Have I missed something?
Malcolm
===========================================================================
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".