Kbase P21603: SonicMQ: Cannot start two brokers on the same machine using
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/20/2003 |
|
Status: Unverified
FACT(s) (Environment):
SonicMQ
SYMPTOM(s):
Cannot start two brokers on the same machine using the same port number
Machine has two network cards and both brokers use the same port number but on a different IP address with the different network card
java.net.BindException: Address in use: bind
ava.net.BindException: Address in use: bind
at java.net.PlainSocketImpl.socketBind(Native Method)
CAUSE:
That is a limitation of the TCP/IP protocol and you will get
the same trouble with other applications as well. You can see that from the
stack trace as that the exception is thrown by the java.net package which is a public java package not only used by SonicMQ but all Java applications which do something with the network.
FIX:
Switch to another port on one of the brokers then everything works fine.