We have a Java based application which has User Interface on client (using JApplets) and business logic(Servlet, JSP) and Database on the server. We tried to load both client and server code on a laptop. It worked fine so long as the laptop was connected to the intranet network. As soon as it is disconnected from the network, the same application stops working giving the following error when I start the JMS receiver program:
javax.jms.JMSException: java.net.BindException: Cannot assign requested address:set socket option failed
at allaire.ejipt._jms._Receiver._addListener(allaire/ejipt/_jms/_Receiver.java:184)
at allaire.ejipt._jms._Session._addListener(allaire/ejipt/_jms/_Session.java:512)
at allaire.ejipt._jms._Consumer.setMessageListener(allaire/ejipt/_jms/_Consumer.java:95)
at SearchAlgo.JmsDataReceiver.start(JmsDataReceiver.java:61)
at SearchAlgo.JmsDataReceiver.main(JmsDataReceiver.java:147)
This happens when I call the setMessageListener(this) passing it the reference of the current java program. This same program runs fine when the laptop is connected to the network and as soon as I remove the network cord the above mentioned error is thrown.
Any solution?