my problem is if i have A.ear and B.ear deployed in defaut instance of jboss;
in the A.ear some utility class trying to lookup ejb residing in b.ear;
contextProperty.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
contextProperty.put(Context.SECURITY_PRINCIPAL,"admin") ;
contextProperty.put(Context.SECURITY_CREDENTIALS,"manager");
contextProperty.put(Context.PROVIDER_URL,"jnp://localhost:11098");
InitialContext context = new InitialContext(contextProperty);
ExampleRHome home = (ExampleRHome)context.lookup("SampleBean");
process is going indefinetly when it tries to look ejb ;
i am specifying jnpport in provider_url;is it correct?
i specified loader-repository in jboss-app.xml for A.ear and B.ear
<jboss-app>
<loader-repository>
myapp:loader=A.ear
</loader-repository>
</jboss-app>
<jboss-app>
<loader-repository>
myapp:loader=B.ear
</loader-repository>
</jboss-app>
i am getting this error
Error Error : Unknown Error-- : javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: No ClassLoaders found for: com.blah.blah.ExampleRHome (no security manager: RMI class loader disabled)]