The jboss-ejb-client.xml can be used to conifure EJB client from within a deployment. The file
should be located in jar’s META-INF
directory.
<jboss-ejb-client xmlns="urn:jboss:ejb-client:1.4">
<client-context invocation-timeout="1000" deployment-node-selector="org.foo.DeploymentNodeSelector" default-compression="5">
<ejb-receivers exclude-local-receiver="false" local-receiver-pass-by-value="true">
<remoting-ejb-receiver outbound-connection-ref="connection" connection-timeout="3000"/>
</ejb-receivers>
<http-connections>
<http-connection uri="http://localhost:8180/wildfly-services"/>
</http-connections>
<profile name="test-profile"/>
</client-context>
</jboss-ejb-client>
Configurations that will be used to setup an EJB client context for the deployment.
-
invocation-timeout
A timeout, in milliseconds, that will be used for EJB invocations. A value of zero or a negative value will imply a "wait forever" semantic where the invocation will never timeout and the client will wait for the invocation result indefinitely. -
deployment-node-selector
The fully qualified class name of the class which implements theorg.jboss.ejb.client.DeploymentNodeSelector
interface. The instance of this class will be used for selecting nodes, from among multiple eligible nodes within an EJB client context, which can handle a particular deployment. -
default-compression
Default compression level (from 0 to 9) of request and response message payload.
Configures a number of remoting based EJB receivers.
-
exclude-local-receiver
Set to true if the local receiver which gets added to the EJB client context by default, has to be excluded from the context. -
local-receiver-pass-by-value
Set to false if the local receiver that’s available in the EJB client context, should use pass-by-reference (instead of pass-by-value) semantics for the EJB invocations.
Configures remote http-connection for EJB invocation