Difference between revisions of "Wildfly"

Line 18: Line 18:
  
  
Unzip it and launch <syntaxhighlight lang="bash">$JBOSS/bin/standalone.sh</syntaxhighlight>
+
Unzip it and launch <syntaxhighlight lang="bash">$wildfly/bin/standalone.sh</syntaxhighlight>
 +
 
 +
 
 +
You can test the server on http://localhost:8080
 +
 
 +
 
 +
 
 +
=Enable remote access=
 +
 
 +
By default you can only access your server locally. You need to adjust the binding interface.
 +
 
 +
<syntaxhighlight lang="bash">
 +
vim $wildfly/domain/configuration/host.xml
 +
</syntaxhighlight>
 +
 
 +
 
 +
Adjust the bindings:
 +
 
 +
<syntaxhighlight lang="xml">
 +
<interfaces>
 +
  <interface name="management">
 +
      <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
 +
  </interface>
 +
  <interface name="public">
 +
      <inet-address value="${jboss.bind.address:127.0.0.1}"/>
 +
  </interface>
 +
  <interface name="unsecure">
 +
        <!-- Used for IIOP sockets in the standard configuration. To secure JacORB you need to setup SSL -->
 +
        <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
 +
  </interface>
 +
</interfaces>
 +
</syntaxhighlight>
 +
 
 +
Replace '''127.0.0.1''' by the IP you'd like to use, ex: '''192.168.1.100'''.

Revision as of 20:02, 25 October 2014


JBOSS Wildfly is an application server fully compatible with the JEE standard, like Glassfish.


Official JEE 7 examples: https://github.com/javaee-samples/javaee7-samples


Get Wildfly

Download latest Wildfly server: http://wildfly.org/downloads/


Unzip it and launch

$wildfly/bin/standalone.sh


You can test the server on http://localhost:8080


Enable remote access

By default you can only access your server locally. You need to adjust the binding interface.

vim $wildfly/domain/configuration/host.xml


Adjust the bindings:

<interfaces>
   <interface name="management">
       <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
   </interface>
   <interface name="public">
       <inet-address value="${jboss.bind.address:127.0.0.1}"/>
   </interface>
   <interface name="unsecure">
        <!-- Used for IIOP sockets in the standard configuration. To secure JacORB you need to setup SSL -->
        <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
   </interface>
</interfaces>

Replace 127.0.0.1 by the IP you'd like to use, ex: 192.168.1.100.