Java Reference
In-Depth Information
The re-
mote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED
property enables the encryption of the XNIO connection, otherwise plain text will be
used. (In Chapter 11 , Securing JBoss AS 7 Application , we will discuss using SSL to
secure the connection between the client and the server.)
The remote.connections property can be used to define a list of logical names
that will be used for connection purposes by the re-
mote.connection.[name].host and remote.connection.[name].port
attributes. If you'll define more than one connection, as in the following example, the
connections will be split across the various destinations:
remote.connections=host1,host2
remote.connection.host1.host=192.168.0.1
remote.connection.host2.host=192.168.0.2
remote.connection.host1.port = 4447
remote.connection.host2.port = 4547
The default port used by the remoting framework is 4447 . You can, however, set a
custom port using the CLI interface. For example, in order to set it to 4457 , you can
issue the following command:
/socket-binding-group=standard-sockets/
socket-binding=remoting/
:write-attribute(name=port,value=4457)
Running the client application
In order to run your client application, the last requirement will be to add the required
Maven plugins that are needed to run the remote EJB client:
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- maven-compiler-plugin here -->
Search WWH ::




Custom Search