I am trying to write a Cactus test case to test out a deployed EJB (I am extending Cactus's ServletTestCase). I want to simply create a war file containing the test classes and deploy it to jboss. Everything works fine when I use remote interfaces, but I keep getting the following error message when I try to use local interfaces:
(javax.naming.NamingException: ejb-local-ref: ejb/TMRConfigurationBeanLocal,target not found, add valid ejb-link)
I am not deploying the war in the same deployment unit as the EJBs under test. Can I use local interfaces to talk components within the same JVM, but deployed in different "deployment units"? Any insight would be much appreciated. Thanks!
The current interpretation of the spec is that
the a local-ref only applies to the same deployment
package. For war/ejb that means an ear.