7 Replies Latest reply on Sep 19, 2011 4:21 PM by amien

    déploiement

    amien

      Hi every body

      Jboss 5.1 GA

      When i want deploy my application in server I use "run.bat -b @IP" every time I lunch my application

      I want config this @IP in file? and when i lunch my server it will support.

      excuse my bad english


        • 1. Re: déploiement
          wdfink

          Maybe you might use hot-deploy.

          Start the server (default or all configuration) and drop your application to the deploy folder. It will be picked-up from the deploy-manager and the application is restarted.

           

          If you will have a script you might write a wrapper sript to call the run.bat with your -b @IP option.

          • 2. Re: déploiement
            amien

            I have not a problem with the "run.bat-b @ IP" but I do not want to do this every Start upthe server, but I want it to put that @ IP in a file configuration (I do not know it)

            • 3. Re: déploiement
              wdfink

              May you edit bin\run.conf.bat and add the folowing line at the end:

              set "JAVA_OPTS=%JAVA_OPTS% -Djboss.bind.address=192.168.1.2"  <== <our IP

               

              or you write a batch file (e.g. start.bat), this avoid to call the JBoss in a different manner:

              -------------

              rem # set my own Java settings

              set "JAVA_OPTS=-Xms512M -Xmx512M -XX:MaxPermSize=256M"

              rem # what ever you want

               

              rem # avoid to start with different parameters

              bin\run.bat -b 192.168.1.2 -c <yourConfig> ...

              -------------

              • 4. Re: déploiement
                amien

                yhink you so much "Wlf-Dieter Fink"

                 

                May you edit bin\run.conf.bat and add the folowing line at the end:

                set "JAVA_OPTS=%JAVA_OPTS% -Djboss.bind.address=192.168.1.2"  <== <our IP

                 

                I have another question : when i use this solution i access with this url     http://192.168.1.2:8080/........

                but i want if clients access with namedomaine exemple     http://namedomaine/.............. or http://namedomaine:8080/........

                I dont know if I good exprement the new problem

                • 5. Re: déploiement
                  wdfink

                  You have to configure a local DNS server, I think that is the more common way if the JBoss is used internal.

                   

                  For external access you have to use a public dns and route the request (e.g. mycompyny.com/MyApp) to the correct JBoss server.

                  1 of 1 people found this helpful
                  • 6. Re: déploiement
                    amien

                    think you "Wolf-Dieter Fink" for all your help

                    • 7. Re: déploiement
                      amien

                      I use Windows 7 and I want to try my application by creating a local network.

                      From my Reshresh, the file DNS is used in windows server.

                      I found this link but I did not understand the solution.

                      http://docs.jboss.org/jbossas/guides/webguide/r2/en/html/ch07.html