aspose file tools
The moose likes JBoss and the fly likes Multiple Instance of JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Multiple Instance of JBoss" Watch "Multiple Instance of JBoss" New topic
Author

Multiple Instance of JBoss

Ganesh Sundaresan
Ranch Hand

Joined: Feb 09, 2006
Posts: 36
Hi,

I have installed JBoss 4.0.2.
How do I create Multiple Instance of JBoss with only one JBoss Installed?

Thanks In Adavnce

Ganesh


Thanks, Ganesh
SJCP (95%), SCWCD (75%), SCDJWS (Planning to take....)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17234
    
    1

1. You will want to create your own server configuration. So copy one of the server directories, like "default" and give it a new name. Then when you startup jboss use the -c like "run -c myconfig"

The other thing you have to do is make sure the ports don't colide. If one instance is using the default ports, the other instance must use different ones.

In the samples directory, in one of the sub-directories is a samples-bindings.xml and in there there are ports configured with names like ports-01 ports-01. You can use this too, but you have to point each server to one of them through the jboss-service.xml file.

Check out the Admin guide at jboss's website for complete directions.

Good Luck

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ganesh Sundaresan
Ranch Hand

Joined: Feb 09, 2006
Posts: 36
Thanks Mark for your solution.

I created two instance of jboss. One is default and other one as dev01 under server directory.

And changed the jboss-service.xml as
<attribute name="ServerName">ports-01</attribute>
in another instance i confugured as
<attribute name="ServerName">ports-default</attribute>

Also I changed all the port numbers in jboss-service.xml for the new instance


Thanks
Ganesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple Instance of JBoss
 
Similar Threads
Runnig multiple applications in Jboss
Multiple class loaders error
How to configure mulitple datasource files on JBoss 4.3 application server ?
How to use my own version of a JBoss domain in Netbeans 6.9.1
How to install JBoss Messaging in Jboss 4.0.4