Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am writing a code, trying to connect to JMS, so I am using IConnectionFactory class, and creating a connection. the server i'm connecting to does not exist and the default timeout is 60 sec.
while trying to connect, CPU is 100% and gets released only when time out occures.
i know it's not a normal situation, but i want my app to work fine also when this scenario happen.

i have several exceptions:
[BDN.11.1040] connection to StoreESBJmsBrkDev2@xxx.xxx.xxx.xx:6859 failed: No connection could be made because the target machine actively refused it xxx.xxx.xxx.xx:6859

[BDN.11.1040] connection to StoreESBJmsBrkDev2@xxx.xxx.xxx.xx:6859 failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established

connection failed because connected host has failed to respond xxx.xxx.xxx.xx:6859
[BDN.11.1037] no broker response from StoreESBJmsBrkDev@xxx.xxx.xxx.xx:6849


Does anyone know why it happens? or how can I check it?

Thanks, Imbaro.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900