How to invoke an EJB from One JBoss EAP 6 Instance to Another Remotely ?
Issue
- Can JBOSS support EJB/RMI call?
- We are trying to access an EJB available from one jboss instance to second jboss instance. Both on same machine.
- We get the error as below,
5:17:14,605 ERROR [stderr] (http-/0.0.0.0:8380-1) java.lang.IllegalStateException: EJBCLIENT000025:
No EJB receiver available for handling [appName:xxxxx, moduleName:xxx_module, distinctName:]
combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@48de4e1
- In the war's META-INF we have below xml configured,
<jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0">
<client-context>
<ejb-receivers>
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection" />
</ejb-receivers>
</client-context>
</jboss-ejb-client>
- The standalone.xml file is configured as below:
<subsystem xmlns="urn:jboss:domain:remoting:1.1">
<connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
<outbound-connections>
<remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb" >
<properties>
<property name="SASL_POLICY_NOANONYMOUS" value="false"/>
<property name="SSL_ENABLED" value="false"/>
</properties>
</remote-outbound-connection>
</outbound-connections>
</subsystem>
-
In socket-binding-group TAG,
<outbound-socket-binding name="remote-ejb"> <remote-destination host="localhost" port="4647"/> </outbound-socket-binding> -
How to configure a Client in EAP 6 calling an EJB remote interface on EAP 6
Environment
- Red Hat JBoss Enterprise Application Platform(EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.