Workaround for RMI interoperability between JBoss EAP 5.x and EAP 4.x
Issue
- We are looking for a solution for JBoss EAP 5.2 to add external jar (from a directory) in the same classloader of a webapp
- ejb rmi call between eap4 and eap5
-
We're testing integration between JBoss EAP 4.3 (Sun JDK 1.5) and JBoss EAP 5.1 (Sun JDK 1.6). How can we make them communicate via RMI? When we try a common EJB 2.1 invocation from 4.3 to 5.1, we have the following exception:
java.lang.ArrayIndexOutOfBoundsException: 21 at org.jboss.invocation.InvocationKey.readResolve(InvocationKey.java:170) at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) ...
The exception is thrown by the JNDI lookup:
InitialContext ic = new InitialContext(props);
Object objref = ic.lookup(Constants.SERVICE_JNDI_NAME); // --> ArrayIndexOutOfBoundsException
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.x
- 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
