I have created 3 instances of jboos6 on same. If i start using
run.bat -c ports-01 (ports-01)
run.bat -c ports-02 (ports-02)
on three different command prompt screens, its working fine.
On the other hand, if i want to make a window service using service.bat utility - i am able to run only one instance of jboss6.
For that i have copied the service.bat file and named it service2.bat and changed (r to r2, run to run2, shutdown to shutdown2)
call run.bat -c ports-01 < .r2.lock >> run2.log 2>&1
then i have installed service and service2.bat files, but only one is visible in services.msc screen that is installed first.
The problem is, even installing service2.bat i am not able to start using window service, where is the problem?
Thanks for the reply.
My two instances are running successfully, when i installed third service3.bat i got an error:
The JBoss Application Server 6.0.2 service on local computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.
Yes, this is what can happen if you manually change each serviceN.bat file and have the same value in multiple places. You might want to check out the modified service.bat that I provide with the source code for JBoss in Action. If you grab the source zip, it will be at ch15/src/service/windows/service.bat. Note that everything is set up front using property values, and that the ch15/build.xml sets the properties for each service, creating unique bat files for each one.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: problem in creating window service of multiple instances of jboss6