3 Replies Latest reply on Apr 3, 2014 12:58 PM by Tomaz Cerar

    Http connector's enabled property based on some argument.

    Anuradha K Newbie

      Hi All,

         We have an application running on jboss7. We want to disable http connector by defualt. But want to give an option to enable it during installation of our product. I tried to pass a variable through jvm option during installation.

      Connector is defined in standalone-full.xml as below.

      <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" executor="http-executor" enabled="${http.enable}"/>

      Defined -Dhttp.enable as a jvm option of the jboss service in a installer file. Its value is set tor true/false during installation of the product.

       

      But this solution is not working. After installation of the product, I gave -Dhttp.enable=true, even then statndalone-full.xml has connector as <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" executor="http-executor" enabled="false"/>

      But in regedit->service has java Options is defined as below.

      as

      -Xms512m

      -Xmx1024m

      -XX:MaxPermSize=192m

      -XX:MaxTenuringThreshold=15

      -XX:SurvivorRatio=8

      -Dmysql.port=3306

      -Dhttp.port=80

      -Dhttp.enable=true

      -Dhttps.port=443