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-name>ejb/CabinHome</ejb-ref-name>

  <ejb-ref-type>Entity</ejb-ref-type>

  <home>com.titan.cabin.CabinHome</home>

  <remote>com.titan.cabin.Cabin</remote>

</ejb-ref>

Here is the jboss.xml for TravelAgent:

<?xml version="1.0"?>

<jboss>

  <enterprise-beans>

    <session>

      <ejb-name>TravelAgentBean</ejb-name>

      <ejb-ref>

        <ejb-ref-name>ejb/CabinHome</ejb-ref-name>

        <jndi-name>CabinBean</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

Reply via email to