Did you add the home and the remote interfaces in
the other jar ?
- Original Message -
From:
Optima
To: [EMAIL PROTECTED]
Sent: Sunday, June 10, 2001 8:38 AM
Subject: [JBoss-user] Problems in working
with another EJB jar file
Greetings all,
I tried to play with the
TravelAgent example in Monson-Haefel¡¦s EJB book on JBoss 2.2.1 and
Win2K. It¡¦s a session bean
calling another entity bean named Cabin, but not in the same .jar
file.
I read the JBoss doc
about this example by Sebastien Alborini, but got the error
about unable to get the home interface of Cabin. I¡¦m sure that the Cabin is working
probably.
Here is the ejb-ref section in ejb-jar.xml for
TravelAgent:
ejb-ref
ejb-ref-nameejb/CabinHome/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homecom.titan.cabin.CabinHome/home
remotecom.titan.cabin.Cabin/remote
/ejb-ref
Here is the jboss.xml for
TravelAgent:
?xml
version="1.0"?
jboss
enterprise-beans
session
ejb-nameTravelAgentBean/ejb-name
ejb-ref
ejb-ref-nameejb/CabinHome/ejb-ref-name
jndi-nameCabinBean/jndi-name
/ejb-ref
/session
/enterprise-beans
/jboss
Could anyone kindly advise
what¡¦s wrong OR post the working code/configuration?
Thanks
Best Regards,
Zeon