deployment - How to start and stop a JBoss server from Maven, bound to a different address than localhost? -


I am working on a legacy Java Enterprise Server project, and currently I try to install night build I am here. We are using Maven 2, Jabos 4.2 and bamboo. The idea is that one of our dev servers is a bamboo agent, and Mewen build has been configured to strictly result in .ear file, then restart the server (we can not use soft deployment because our legacy app Uses a library which causes an exception during adoption ... we will be able to get rid of that canal library at some point, but not yet.) Works fine when I run Maven on my own machine: The server has been shut down and has been restarted with the latest build.

However, on dev server we have many jobs server examples, which are tied for different IP addresses. And the meowen jeboss plugin used by me can interrupt and lock a server with a local host (default) and I have downloaded the source code for it and it just executes the run and shutdown script in the jabos bin directory. , Such as:

  Launch ("Run", "-C" + ServerName);  

and

  launch ("shutdown", "-s"); As you are seeing, a host binding (-b) parameter is not used for startup, nor any other server than the localhost in the port. Can stop: 10 99 (default JNDI port).  

i is the data that the workaround for startup must be configured directly in the jabos config file, the desired host address. (The default behavior is that those config files have system assets such as $ {jboss.bind.address} , and on startup, if they are dynamically with the actual host address - B Specifies the parameter as run script, or local host default). So if I have directly inserted the IP directly into those files, in principle the server will bind the server to the IP regardless of that -b command line parameter Apart from this, I think that as the host name in the form of 0.0.0.0 it will also solve the problem ... if we do not have other servers on the same machine, however, We can work on any other fully reserved server for construction, we just need to move the bamboo agent etc. ... two hours of additional work and we have certainly not an endless supply of unused servers That's why, so once we need to build another night for our release branch, we can come back in class 1 ...

An alternative effort will be to see and cargo instead To use the plugin ... I do not know yet, whether it be capable of this move.

Last but not least, I can actually expand the Jebus plugin to handle host binding - I believe that some of my active hours will take completely but once more To solve the problem so far it seems to me the most viable option.

Can someone give an alternative experience / comment to them, or alternate solutions?

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -