Calling an EJB in JBoss 4.0.2 from a 1.3.1 client


EJB programming & troubleshooting: Calling an EJB in JBoss 4.0.2 from a 1.3.1 client

  1. Calling an EJB in JBoss 4.0.2 from a 1.3.1 client (2 messages)

    Hi all, I have an EJB that needs to be compiled at least using JDK 1.4.2 and deployed to run in a JBoss 4.0.2 server. I also have a SWT stand-alone application that needs to call that EJB, but for some specific environment restrictions that client application needs to compiled and run under JDK/JRE 1.3.1. It seems that the JBoss client libraries included for 4.0.2 are not 1.3.1 compatible, so I tried to use those of 3.2.5 and I am getting the following exception: javax.naming.CommunicationException [Root exception is; local class incompatible: stream classdesc serialVersionUID = 3289509836244263718, local class serialVersionUID = 6926421946503004889] at org.jnp.interfaces.NamingContext.lookup( at org.jnp.interfaces.NamingContext.lookup( at javax.naming.InitialContext.lookup( ... etc So my question is: how can I setup a stand-alone application running in a 1.3.1 environment to be a client of an EJB deployed in a JBoss 4.0.2 server? Thanks for your help!!
  2. One solution is : define on the client serial versionUID as the serverside class spec... private final static long serialVersionUID = More details, please refer to : Bhagvan K
  3. Thanks; I made it work by using 3.2.8 SP1 version of JBoss client. According to JBoss, their client library 4.0.x will only work under 1.4 or above.