Reusing EJB-module in different EARs

I developed EJB-Module which is belongs to WWM-MASTER.EAR.Now I want to reuse some of these components in my new EAR file.This new EAR file should reuse the existing EJB-Module instead of having multible copies in 2 EAR file.

any one can help with this?

Thanks in advance

Bala.

[302 byte] By [Boobalan.jeyaa] at [2007-10-3 4:25:29]
# 1
Just put the Remote interfaces of the ejbs you'd like to access in the other .ear. All you need is the interfaces and whatever classes they refer to. You don't need to make the bean implementation available to the other application. --ken
ksaksa at 2007-7-14 22:28:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Thanks for your reply.But I need to deploy both the ear file.so I am getting JNDI NAME confilct.Is wee need to have different JNDI NAMES for each bean for the new version of ear file?
Boobalan.jeyaa at 2007-7-14 22:28:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Yes, the global JNDI name assigned to each deployed remote ejb must be unique for the entire server. --ken
ksaksa at 2007-7-14 22:28:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
I already deployed 2 EAR file with unique Jndi Names.Thanks for your reply
Boobalan.jeyaa at 2007-7-14 22:28:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...