1 Reply Latest reply on May 14, 2012 3:37 PM by Farah Juma

    JBoss 7 AS and standalone.xml on EC2 on-demand instances

    ghep Newbie

      Hi all,

      I'm testing my Web App on Ubuntu ec2 instance with JBoss 7.1.1. Application Server but I have one problem.

      When I start instance after some hours of stop, I need to modify the standalone.xml configuration of jboss with new EC2 instance IP.

      My question is how to modify this standalone.xml tag with hostname of my ec2 instance :


      <interface name="management">

      <inet-address value=""/>


      <interface name="public">

      <inet-address value=""/>



      from ubuntu shell when i write hostname the result is like: ip- (that is my ec2 instance private ip and his hostname).


      I would like change the in the standalone.xml with hostname command line ... but i don't know how to do it.

      I need to find a solution that is automatic to plan the autoscaling function.

      Thanks for your help.