0 Replies Latest reply on May 2, 2013 9:46 AM by pi4630

    RMI - JBoss runtime differences

    pi4630

      Hello,

       

      I have an EJB deployed on AS 6.0.0. Final. When I try to invoke it from a client with JBoss 6 runtime, it works like a charm.

       

      When I try to invoke it from an AS version 4.2.2.GA, I get a ClassCastException "javax.naming.Reference cannot be cast to" (MyRemoteInterface).

       

      On mastertheboss, I found the following statement "You are using different JBoss runtimes between the client and the server. (For example the server uses JBoss 5.1.0 libraries and the client uses JBoss 5.0.0 or earlier)". Is this general statement true? If yes, is it still possible to keep the 4.2.2.GA working using a set of JBoss 6 libraries in the client's classpath? Is this "good" practice, or is the "good" practice to keep server runtimes aligned with client runtimes all times?

       

      Thank you in advance,

      ~pasquale