Packaging multiple EJBs into one deployable unit

Hello,

My application comprises three entity EJBs and three session EJBs. Currently, I'm packaging each of these six EJBs into a jar file of its own, complete with the necessary deployment descriptors.

I was wondering is there is a way to club these EJBs into one deployable unit (jar, ear, war or whatever) but still have the container see them at runtime as individual EJBs of their own right.

I'd appreciate any help on this.

Regards,

Dipak Jha

[486 byte] By [jha_dipaka] at [2007-11-27 0:26:54]
# 1

Yes, there's no limit to the number of ejb components that can be packaged into a single

ejb-jar.When using EJB 2.1 or earlier, each <entity>, <session> or <message-driven>

element in ejb-jar.xml defines a unique ejb component.Deciding which components

are packaged into the same ejb-jar, same .ear, or different .ears is purely up to the

developer.

--ken

ksaksa at 2007-7-11 22:26:00 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Thanks for the tip !! I've now combined all my ejb-jar.xml files into one and also all my weblogic-ejb-jar.xml files into one. The container, of course, is able to neatly differentiate between the various EJBs.Thank you once againDipak Jha
jha_dipaka at 2007-7-11 22:26:00 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...