0 Replies Latest reply on Mar 2, 2003 12:54 AM by mekatoka

    How to access remote EJB's

    mekatoka

      Hi,

      Environment
      ------------
      I am using JBOSS 3.0.6, EJB 2.0, CMP 2.0

      Problem
      -----------

      I have Session Bean(SB) A running on server 1 and
      Session Bean(SB) B running on server 2.

      Observations/Points
      -------------------

      ** I want to be able to call B from A, but when i try to do that i get a java.rmi.MarshallException when i try to type cast the object that i get on lookup.

      ** I have verified that, the object that i am getting on the lookup is the same object as i am trying to type cast.

      ** However when i try to call the same bean B on server 1 from a normal application client (i.e., not from a JBoss server) it works fine

      I have been doing alot of research on the net or this stuff over past 1 week, found alot of (so called solutions) but none work, here is some what i tried

      (1) Some people suggested making the transaction on the session bean to not required .... tried that didnt work.
      (2) Some told to include the interfaces in the shared directory/ classpath of the server ... which would be jboss3.0.x/server/default/lib when i am using the default server .. but that gives me the same error.
      (3) Some say that this is a endpoint for CMP and to user BMP, .. i havent tried that out ... but i would like to avoid BMP



      Can somebody let me know what am i missing there or atleast point me to place where i can learn about this?

      TIA

      Meka Toka