JBoss Instance Configuration to Support Deployed EJB Client Contexts: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
=Overview= | =Overview= | ||
This article describes the server-side configuration required to support deployed EJB client contexts, as declared in [[Jboss-ejb-client.xml|jboss-ejb-client.xml]] deployment descriptors. | This article describes the server-side configuration required to support deployed EJB client contexts, as declared in [[Jboss-ejb-client.xml|jboss-ejb-client.xml]] deployment descriptors. Assuming that jboss-ejb-client.xml content is the one listed below, the following configuration changes are necessary: | ||
<pre> | |||
<jboss-ejb-client xmlns:xsi="urn:jboss:ejb-client:1.2" xsi:noNamespaceSchemaLocation="jboss-ejb-client_1_2.xsd"> | |||
<client-context> | |||
<ejb-receivers> | |||
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-container-1"/> | |||
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-container-2"/> | |||
</ejb-receivers> | |||
</client-context> | |||
</jboss-ejb-client> | |||
</pre> | |||
=Remoting Subsystem Configuration= | =Remoting Subsystem Configuration= |
Revision as of 20:36, 24 March 2017
Internal
Relevance
- EAP 7.0.4
Overview
This article describes the server-side configuration required to support deployed EJB client contexts, as declared in jboss-ejb-client.xml deployment descriptors. Assuming that jboss-ejb-client.xml content is the one listed below, the following configuration changes are necessary:
<jboss-ejb-client xmlns:xsi="urn:jboss:ejb-client:1.2" xsi:noNamespaceSchemaLocation="jboss-ejb-client_1_2.xsd"> <client-context> <ejb-receivers> <remoting-ejb-receiver outbound-connection-ref="remote-ejb-container-1"/> <remoting-ejb-receiver outbound-connection-ref="remote-ejb-container-2"/> </ejb-receivers> </client-context> </jboss-ejb-client>
Remoting Subsystem Configuration
This section describes
EAP 7 configuration:
<subsystem xmlns="urn:jboss:domain:remoting:3.0"> ... <outbound-connections> <remote-outbound-connection name="remote-ejb-container-1" outbound-socket-binding-ref="remote-ejb-container-socket-1" username="ejb" security-realm="ejb-security-realm" protocol="http-remoting"> <properties> <property name="SASL_POLICY_NOANONYMOUS" value="false"/> <property name="SSL_ENABLED" value="false"/> </properties> </remote-outbound-connection> </outbound-connections> ... </subsystem> ... <socket-binding-group ...> <outbound-socket-binding name="remote-ejb-container-socket-1"> <remote-destination host="localhost" port="8180"/> </outbound-socket-binding> </socket-binding-group>
where remote-outbound-connection's "name" attribute should match the remoting-ejb-receiver's outbound-connection-ref declared in jboss-ejb-client.xml. For more details about EJB client contexts, see EJB client context. For more details about jboss-ejb-client.xml, the deployment descriptor that configures the EJB client context, and which requires the above configuration changes, see jboss-ejb-client.xml.