[jboss-dev-forums] [JBoss AS7 Development] - Multiple instances of JBoss AS7 on the same machine
Brian Stansberry
do-not-reply at jboss.com
Wed Sep 7 16:36:16 EDT 2011
Brian Stansberry [http://community.jboss.org/people/brian.stansberry] commented on the document
"Multiple instances of JBoss AS7 on the same machine"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16705#comment-7580
--------------------------------------------------
Ian,
You don't have to repeat everything, but it's not as smooth as it should be.
>From the root of your AS7 dist
1)
cp -r standalone instance1
cp -r standalone instance2
That doesn't result in a lot of extraneous copied files.
2) Edit instance1/configuration/standalone.xml and/or instance2/configuration/standalone/xml as desired; e.g. as described on this page for avoiding port conflicts
3) To launch instance1
./bin/standalone.sh -Djboss.server.base.dir=instance1
4) To launch instance2
./bin/standalone.sh -Djboss.server.base.dir=instance2
Things that aren't as smooth as they should be
a) The resolution of jboss.server.base.dir isn't very smart. For example, to do the common thing and launch the script from within the bin dir you have to either use an absolute path to instance1/2 or do something kludgey like:
./standalone.sh -Djboss.server.base.dir=../instance2
2) The launch script directly references the standalone/configuration/logging.properties and standalone/log/boot.log files. So, if those files aren't present the server doesn't boot properly, and both instance1 and instance2 will use the standalone/log/boot.log as their boot log file (where logging goes until the boot process starts the logging subsystem.)
I've opened https://issues.jboss.org/browse/AS7-1752 https://issues.jboss.org/browse/AS7-1752 for these 2 points.
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110907/18160fe4/attachment.html
More information about the jboss-dev-forums
mailing list