The client might be configured by using the jboss-ejb-client.properties file or a programatic approach by using the PropertiesBasedEJBClientConfiguration. The properies can be used in both cases.
This properties are vaild for the whole library in the same Scope
Property Name |
Description |
endpoint.name |
A name of the client endpoint, if not set it will be default to 'client-endpoint'. |
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED |
Boolean value whether SSL protocol is enabled for all connections |
deployment.node.selector |
The full qualified name of an implementation of org.jboss.ejb.client.DeploymentNodeSelector. |
invocation.timeout |
A timeout in milliseconds for EJB invocation request/response cycle, i.e. handshake or method invocation. |
reconnect.tasks.timeout |
The timeout for the background reconnect tasks. |
org.jboss.ejb.client.scoped.context |
Boolean value (false). If set to true it will enable scoped EJB client context (introduced in AS7.2) which will be tied to the JNDI context, otherwise the EJB client context will use the global selector in the JVM to determine the properties to call the remote EJB and host. |
This properties start with the prefix 'remote.connection.<connection-name>.' where the connection-name is a local identifer, only used by the client-configuration, to separate the settings for each connection.
connection property name |
description |
remote.connections |
A list of active connection-names, separated by ',', each connection is configured by using this name |
...host |
The hostname or IP for the connection |
...port |
The port for the connection (server use 4447 by default) |
...username |
A user name for the connection security |
...password |
The password to authenticate the user |
...connect.timeout |
The timeout for initial connection timeout. Defaults to 5 seconds |
...callback.handler.class |
Full qualified name of the CallbackHandler class. It will be used to establish the connection, but can not changed as long as the connection is open. |
...channel.options.org.jboss.remoting3.RemotingOptions.MAX_OUTBOUND_MESSAGES |
A Integer value how many messages (requests) can be send through this channel in parallel until the next will be blocked. The default is 80. |
...channel.options.org.jboss.remoting3.RemotingOptions.MAX_INBOUND_MESSAGES |
A Integer value how many messages (requests) via this channel are possible to receive in parallel |
...connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS |
Boolean value (default=true), if it is set to true credentials must be given in the client to connect successful. false will allow the invocation if the remoting-connector does not request a security-realm. |
...connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS |
Disables certain SASL mechanisms used for authenticating during connection creation. |
...connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT |
Boolean, enables/disables the use of plain text messages during the authentication, i.e. if JAAS it must be set to false to use a plain text password. |
...connect.options.org.xnio.Options.SSL_ENABLED |
Boolean value whether SSL protocol is enabled for this connection. |
...connect.options.org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL |
The interval to use for connection heartbeat, in milliseconds. If the connection is idle in the outbound direction for this amount of time, a ping message will be sent, which will trigger a corresponding reply message to avoid automatic closure (i.e. firewall). |