开发者

Deploying a Java App (RMI Server) in Multiple Locations Automatically

开发者 https://www.devze.com 2023-02-01 11:32 出处:网络
Well, like the title says, I want to launch the same java progr开发者_JS百科am on multiple locations remotely, say on the cloud (like EC2 or whatever). In my case the apps are the RMI servers but, I g

Well, like the title says, I want to launch the same java progr开发者_JS百科am on multiple locations remotely, say on the cloud (like EC2 or whatever). In my case the apps are the RMI servers but, I guess if I can do the former, I can do the later. I might have to copy certain files, or even the class files before the launch. Is Capistrano the best way to go, or is there something more Java for this sort of a thing.

Thanks.


NOTE: I am assuming you do not have any JVM running when you want to start things up.

The typical way to communicate with Unix-based servers (like Linux) is with ssh-clients which can execute commands on a remote server easily. I believe Windows has a similar facility, but I am unfamiliar with it.

You will most likely want the actual management to be done by the operating system to make it more robust, so you just have to tell the OS to pull the service up and down. For Windows that is through the SC.EXE command. For Ubuntu that is with a /etc/init.d/foobar script.

0

精彩评论

暂无评论...
验证码 换一张
取 消