Can I call a local interface in one isolated ear from another isolated ear in JBoss EAP 5
Issue
- We are converting an application from version 4.2 to version 5.0 and are trying to use the isolated classloading strategy as specified in the ear-deployer-jboss-beans.xml. We have two session beans each packaged in their own ear. With 'isolated' attribute set to false, one ejb can call the other through it's local interface without problem. When we set the isolated attribute to true then the called ejb must provide the calling ejb with client facing classes such as the called ejb interface and any paramater or return classes. We bundle those up in a jar and put them in the ear of the calling ejb. The problem is we now only call the remote interface of the called ejb. When we try to call the local interface we get a ClassCastException on the returned object. I believe we should be able to call the local interface as both ejb's are deployed in the same container.
Environment
- JBoss Enterprise Application Paltform (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.
