1 Reply Latest reply on Feb 8, 2002 11:11 AM by Sergei Batiuk

    Problem connecting to JBossMQ from an applet

    Sergei Batiuk Newbie


      I have created a Chat applet that uses JBossMQ. It works perfectly on localhost. However, when I run the applet from other hosts on the network, it doesn't work, and gives no error messages. What could be the problem?

      I use JBoss 2.4.3, jdk 1.3 on Windows 2000 Professional.

      My jsp page:

      <jsp:plugin type="applet"

      Please help!

      Sergei Batiuk.

        • 1. Re: Problem connecting to JBossMQ from an applet
          Sergei Batiuk Newbie

          I have just found out that when a client from localhost connects to JBoss, JBossMQ says:

          [OILClientIL] ConnectionReceiverOILClient is connecting to:
          (Please note that is IP of my computer, where JBoss is running, i.e. my localhost).

          Now, when a client from a different host attempts to connect to JBoss ( NOT ) it says:

          [OILClientIL] ConnectionReceiverOILClient is connecting to:
          [ClientConsumer:ID3] Could not send messages to a receiver.
          java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server
          at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:98)

          at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:84)
          at org.jboss.mq.il.oil.OILClientIL.receive(OILClientIL.java:69)
          at org.jboss.mq.server.ClientConsumer.run(ClientConsumer.java:212)
          at java.lang.Thread.run(Thread.java:484)
          [JMSServer] The connection to client ID3 failed.

          I don't have any idea why it tries to connect to localhost, when the client is actually a remote machine....

          Any ideas?

          Sergei Batiuk.