1 Reply Latest reply on Oct 25, 2002 12:46 PM by Juha Lindfors

    Can client use JBoss 2.2 and 3.0 at the same time?

    Kevin Schmidt Newbie

      Hi,

      I have two instances of JBoss running that I want to use from a single client. One is 2.2.1 and the other is 3.0. Is it possible for my client to utilize EJBs from each JBoss at the same time?

      I'm suspecting the answer is no as the client jar files are different for each version and in actually trying to use the JBoss 3.0 with the 2.2.1 client jars resulted in a ClassCastException when trying to narrow an object from a Context.lookup(). If the client uses the 3.0 client jars, it works just fine but I suspect I will have problems with using the 2.2.1 then.

      So, are there any tricks one might use to allow a single client to interact with a 3.0 and 2.2.1 JBoss? The only one I have come up with is to have the client setup with the 2.2.1 client jars and when using the 3.0 JBoss, actually make an RMI call to a "gateway" using a separate JVM where that JVM is running with the appropriate client jar files for the 3.0 JBoss.

      Thanks,

      Kevin