Hi Kesav.

Something really weird is going on here.  When I try to start the
listener locally, if fails to connect with a JMS Exception.

I included the help section for my listener class, so you
can see what some of the command line options are about.
The Orion switch also tells the listener that it needs to do
a qreceiver.receive() when listening.

When the listener tries to close the connection, the host
throws a null pointer exception, as well as an exception
occuring on the listener.

Suggestions?

-Steve

steve@imp:/tmp/Builds/HRneXus/classes > java -classpath
.:/usr/local/orion/orion
.jar:/usr/local/orion/lib/oracle20.jar
com/hrnexus/custsetup/DBServerListener -?
Usage: java [-cp [.;%CLASSPATH%;%WEBLOGIC_HOME%\lib\weblogic.jar]]
com.hrnexus.c
ustsetup.DBServerListener {arguments}]
Arguments are;
    ProviderURL
       ex. For Weblogic on the local machine;
          t3://localhost:7001
       ex. For Orion on the local machine;
          ormi://localhost
    Properties file to load (DEFAULT: server)
    Context to use (DEFAULT: Weblogic)
       WEBLOGIC
       ORION

steve@imp:/tmp/Builds/HRneXus/classes > java -classpath
.:/usr/local/orion/orion.jar:/usr/local/orion/lib/oracle20.jar
com/hrnexus/custsetup/DBServerListener ormi://localhost laptop orion
Provider URL: ormi://localhost
Context Factory:
com.evermind.server.ApplicationClientInitialContextFactory
Listening for messages on Queue com.hrnexus.CustSetupQueue
Listening for messages on Server ormi://localhost
Listener is starting.
Q to Quit.
Listening for messages.
javax.jms.JMSException: Unable to connect to JMSServer
(192.168.0.72/192.168.0.72: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)

>q
javax.jms.JMSException: Unable to connect to JMSServer
(192.168.0.72/192.168.0.72:9127)
        at com.evermind.server.jms.EvermindQueueConnection._mu(Unknown
Source)
        at com.evermind.server.jms.EvermindQueueConnection._pmc(Unknown
Source)
        at com.evermind._el.rollback(Unknown Source)
        at com.evermind._el.close(Unknown Source)
        at
com.hrnexus.custsetup.ejb.CreateSchemaEJB.close(CreateSchemaEJB.java:157)
        at
com.hrnexus.custsetup.ejb.CreateSchemaEJB.main(CreateSchemaEJB.java:261)
        at
com.hrnexus.custsetup.DBServerListener.main(DBServerListener.java:68)


###From Orion Server at Quit command
steve@imp:/usr/local/orion > java -server -Xincgc -jar orion.jar
Orion/1.5.2 initialized
java.lang.NullPointerException
        at com.evermind._hs._ehc(Unknown Source)
        at com.evermind._wr.run(Unknown Source)
        at com.evermind._if.run(Unknown Source)
java.lang.NullPointerException
        at com.evermind._hs._ehc(Unknown Source)
        at com.evermind._wr.run(Unknown Source)
        at com.evermind._if.run(Unknown Source)


                      
Kesav Kumar wrote:
> 
> 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.
> 

-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208

Reply via email to