0 Replies Latest reply on Jul 30, 2003 5:31 AM by pipo

    ejb with multiple ejb modules

    pipo Newbie

      Hi all,
      i have an ear file with 2 ejb modules (module1.jar, module2.jar) and 1 web module (module.war).
      module2.jar need to invoke a method form module1.jar and my code looks like:

      ******* module 2
      ...
      app.module1LocalHome = (app.module1LocalHome)initialContext.lookup("java:comp/env/ejb/Module1");
      ....
      *******
      this line causes a ClassCast Exception....

      I am using xdoclet and meta tag look like:
      ******* module 2
      ....
      * @ejb.ejb-external-ref
      * link="Module1"
      * view-type="local"
      * ref-name="ejb/Module1"
      * type="Entity"
      * home="app.Module1LocalHome"
      * business="app.Module1Local"
      *******

      Someone knows what is happen, and why is generated the exception?

      Very thank you.