-
1. Re: Can I have a separate Instance of JBoss on the same mach
keletappi Mar 24, 2006 5:14 AM (in response to ilangocal)Yes you can, but you need unique set of ports of second instance. I decided that each server is going to have portblock like
1xx00 where xx in server instance number. So my first server starts all ports
in 10100 and my last server would start ports in 19900. I don't think that i can ever run more than 99 servers in single host anyway ;)
In your ../deploy/jbossweb-tomcat55.sar/server.xml you need to define
new ports for connectors. I modified HTTP/1.1 and AJP1.3 connectors. These i have
10100 HTTP
10101 AJP1.3
Then you need to modify JBoss ports. in ../conf/jboss-service.xml you have lots of ports. Just search for word 'port' in that document and set ports from 10102+. I have:
10102 WebService port
10103 Naming port
10104 RMI port
10105 RMI Objectport
10106 ServerBindPort
0 ClientConnectPort (i don't know what this is)
And as last thing you need to configure JMS service ports if you have it deployed. in ../deploy/jms/uil2-service.xml I jave set
10107 ServerBindPort
I have create NAT rule in my firewall that redirects HTTP traffic incoming to port 80 to port 10100 to make it work. Of course you can configure that port to one you are going to use in the first place.
I hope i didn't miss any ports. -
2. Re: Can I have a separate Instance of JBoss on the same mach
theute Mar 24, 2006 7:32 AM (in response to ilangocal)To do that without having to edit multiple files, you can also simply use the Service Binding manager.
Edit the default/conf/jboss-service.xml file and uncomment that service on one of the 2 instances.
You can use the StoreURL that is already specified if you want or create your own. -
3. Re: Can I have a separate Instance of JBoss on the same mach
ilangocal Mar 24, 2006 12:57 PM (in response to ilangocal)"keletappi" wrote:
Yes you can, but you need unique set of ports of second instance. I decided that each server is going to have portblock like
1xx00 where xx in server instance number. So my first server starts all ports
in 10100 and my last server would start ports in 19900. I don't think that i can ever run more than 99 servers in single host anyway ;)
In your ../deploy/jbossweb-tomcat55.sar/server.xml you need to define
new ports for connectors. I modified HTTP/1.1 and AJP1.3 connectors. These i have
10100 HTTP
10101 AJP1.3
Then you need to modify JBoss ports. in ../conf/jboss-service.xml you have lots of ports. Just search for word 'port' in that document and set ports from 10102+. I have:
10102 WebService port
10103 Naming port
10104 RMI port
10105 RMI Objectport
10106 ServerBindPort
0 ClientConnectPort (i don't know what this is)
And as last thing you need to configure JMS service ports if you have it deployed. in ../deploy/jms/uil2-service.xml I jave set
10107 ServerBindPort
I have create NAT rule in my firewall that redirects HTTP traffic incoming to port 80 to port 10100 to make it work. Of course you can configure that port to one you are going to use in the first place.
I hope i didn't miss any ports.
Thanks a lot. I will try out your suggestions today. I really appreciate your help a lot -
4. Re: Can I have a separate Instance of JBoss on the same mach
ilangocal Mar 24, 2006 12:58 PM (in response to ilangocal)"thomas.heute@jboss.com" wrote:
To do that without having to edit multiple files, you can also simply use the Service Binding manager.
Edit the default/conf/jboss-service.xml file and uncomment that service on one of the 2 instances.
You can use the StoreURL that is already specified if you want or create your own.
Hi Thomas
Thanks a lot. Next time I will not forget to use . I regret the error.