13 Replies Latest reply on May 30, 2013 11:00 AM by Yassir Barceló

    Remote EJB invocation from JBoss module

    Vladimír Blahož Newbie

      Hi everyone,


      we are using JBoss-as-7.1.1.Final and in our project we decided to gather common classes for all client applications in custom JBoss module. I am talking particularly about custom login module, which all deployed clients can be unsing. The login module authenticates via invocation of remote EJB deployed on another remote JBoss and here comes trouble. I am unable to invoke remote EJB from JBoss module, because it apparently ignores jboss-ejb-client.xml/properties as it is not deployed application, therefore invocation fails on


      java.lang.IllegalStateException: No EJB receiver available for handling [...] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@76bc603d


      So the question is - is there any chance to invoke remote EJB deployed on another JBoss on remote server from internal module (EJB context selector cannot be set programatically, because it's locked for modules), or is the only way to achieve this behavior to deploy login module as EAR.


      Thanks in advance