-
1. Re: Reserve Jboss port in window OS during startup
visolvejboss Dec 19, 2006 11:23 PM (in response to kianheng88)Hello,
Check whether any of the windows process using the ports 1098 and 1099 using the following command at the command prompt.>netstat -b
It will display all the process which are running under windows with their port numbers. If any of the process, using the above ports and if that process is not necessary, stop that process before starting the jboss.
Or else,
You can change the port numbers of services that are using 1098 and 1099 by configuring as follows.
Uncomment the following lines in the file jboss-service.xml.>cd <JBOSS_HOME>/server/default/conf/jboss-service.xml 187 <mbean code="org.jboss.services.binding.ServiceBindingManager" 188 name="jboss.system:service=ServiceBindingManager"> 189 <attribute name="ServerName">ports-01</attribute> 190 <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute> 191 <attribute name="StoreFactoryClassName"> 192 org.jboss.services.binding.XMLServicesStoreFactory 193 </attribute> 194 </mbean>
Now, the JBoss Services runs under different ports.
Hope, This might help you. -
2. Re: Reserve Jboss port in window OS during startup
kianheng88 Dec 19, 2006 11:32 PM (in response to kianheng88)I do know this two way, but is there anyway to enforce the window not using this two ports? sometime window update during startup may use this two ports accidentally, then how to "educate" window this two ports is reserved?
-
3. Re: Reserve Jboss port in window OS during startup
peterj Dec 20, 2006 12:03 PM (in response to kianheng88)There is not way to force Windows to reserve ports for an application that I know of. The ports are allocated on a first come, first served basis. If you are running a program (or service) that uses, for example, port 1099, then you have one of several choices.
First, don't run that program.
Second, change that program to use a different port.
Third, change JBoss to use a different port.
About once a month at work, my required corporate version of Norton Anti-Virus insists on opening port 1099 (it randomly selects an open port, usually I am lucky and it selects something other than 1099). I have complained to the corporate network administrators, asking for a way to tell Norton not to use that port. So far my requests have fallen on deaf ears. So when it happens, I reboot and Norton grabs a different port. (Option one above is not an option for me because i have no control over Norton. And option three above is not an option for me since I am constantly reinstalling and running various versions of JBoss.)