If you give 127.0.0.1 as a host you will be able to access JMS from only the
same machine.
If you want to access JMS server from different machine you need to give the
machine's IP/dns name.
----- Original Message -----
From: "Stephen Davidson" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 3:36 PM
Subject: Re: Listening on a JMS Queue on another machine throws exception
> Hi Kesav.
>
> I did not get a chance to work on this until recently. When I
> tried to start a listener process on the local machine, the
> attached error occured. The senders are all on different
> machines, but some of the listeners are local.
>
> I had set the following in my JMS.xml file;
> <jms-server host="127.0.0.1" port="9127">
>
> </jms-server>
>
> Thanks,
> Steve
>
> javax.jms.JMSException: Unable to connect to JMSServer
> (localhost/127.0.0.1:9127)
> at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown
> Source)
> at com.evermind.server.jms.EvermindQueueConnection._os(Unknown
> Source)
> at com.evermind._el._os(Unknown Source)
> at com.evermind._ecb.receive(Unknown Source)
> at
> com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:179)
> at
>
com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20
)
> at
> com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238)
> at java.lang.Thread.run(Thread.java:484)
> java.lang.RuntimeException: Communications Error.
> at
> com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:188)
> at
>
com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20
)
> at
> com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238)
> at java.lang.Thread.run(Thread.java:484)
>
>
> > Kesav Kumar wrote:
> >
> > In your jms.xml on the machine where the jms server is running should
> > contain host attribute like the following.
> >
> > In jms.xml
> >
> > <jms-server port="9127" host="kesav">
> >
> > </jms-server>
> >
> > The host attribute should be present if you are trying to connect from
> > different machine.
> >
> > Kesav Kumar Kolla
> > Voquette Inc
> > 650 356 3740(W)
> > 510 889 6840(R)
> > Voquette....Delivering Sound Information
> >
> > -----Original Message-----
> > From: Stephen Davidson [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 03, 2001 1:25 PM
> > To: Orion-Interest
> > Subject: Listening on a JMS Queue on another machine throws exception
> >
> > Greetings.
> >
> > I have been through the documentation, but I seem to be missing
> > something.
> >
> > I am trying to listen on a queue that is not on a local machine. The
> > server I am trying to listen on has an IP address of 192.168.1.50, and
> >
> > the Orion Server (with Queue) is running when I try to attach. The
> > client is getting the context from the server in question, but when it
> >
> > tries to attach to the queue, it gets the following exception;
> >
> > javax.jms.JMSException: Unable to connect to JMSServer
> > (www1/192.168.1.50:9127)
> > at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown
> >
> > Source)
> > at com.evermind.server.jms.EvermindQueueConnection._os(Unknown
> >
> > Source)
> > at com.evermind._el._os(Unknown Source)
> > at com.evermind._ecb.receive(Unknown Source)
> > at
> >
com.hrnexus.custsetup.ejb.CreateSchemaEJB.listen(CreateSchemaEJB.java:179)
> >
> > at
> >
com.hrnexus.custsetup.ejb.CreateSchemaEJB.access$000(CreateSchemaEJB.java:20
)
> >
> > at
> >
com.hrnexus.custsetup.ejb.CreateSchemaEJB$1.run(CreateSchemaEJB.java:238)
> >
> > at java.lang.Thread.run(Thread.java:484)
> >
> > Thanks,
> > Steve
>