Hi
You need to give a dependency in the second ear to the first ear. Also
you need to use ejb-link.The ejb-ref-name element is for specifying
the jndi name under which we can find the reference. The link below
refers to a previous response to the same Question
http://mail-archives.apache.org/mod_mbox/geronimo-user/200608.mbox/[EMAIL
PROTECTED]
Regards
Manu
On 4/24/07, mahu2425 [EMAIL PROTECTED] wrote:
Hi there,
I created an entity bean in an ejb project, packaged everything in an ear file
and deployed it to my Geronimo 1.1.1 server.
The entity bean works fine as long as all calls to the bean are from inside the
same ejb project (let's call it ejb1.jar packaged in ear1.ear).
I tried to call the bean from another ejb project (ejb2.jar packaged in
ear2.ear), but I can not manage to call the bean from the other ear file.
My ejb-jar.xml file in ejb2.jar contains the following part:
session
display-nameMyDemo/display-name
ejb-nameMyDemo/ejb-name
homecom.demo.MyDemoHome/home
remotecom.demo.MyDemo/remote
service-endpointcom.demo.MyDemoSEI/service-endpoint
ejb-classcom.demo.MyDemoBean/ejb-class
session-typeStateless/session-type
transaction-typeContainer/transaction-type
ejb-ref
ejb-ref-nameejb/MyFirstDemo/ejb-ref-name !-- This this matches jndi-name
in the other ejb/ear file --
ejb-ref-typeEntity/ejb-ref-type
homecom.firstdemo.MyFirstDemoHome/home
remotecom.firstdemo.MyFirstDemo/remote
/ejb-ref
/session
Geronimo 1.1.1 is not able to find the required bean and throws an error during
deployment.
The ear2.ear file contains the following stuff:
- ejb2.jar file
- client stubs from the ejb1.jar
Has anybody an idea what might be missing im my deployment plan or could help
me out with a working deployment plan?
Thanks in advance,
Markus
Benachrichtigung bei E-Mail Empfang! -
http://mail.lycos.de/app/lycosinside/setupLI.exe