Sun's JMS API Tutorial: just hangs

T

TC

I'm working on the API tutorial where I get two machines to talk to
each other. The first sends 3 messages to a queue. The second should
read these but appears to just sit and wait. It tells me the queue
name and waits.

I'm not sure what info to add to the post. Let me know and I'll add it.

Thanks!
 
T

TC

Andrew said:
...API tutorial ...
[1]

I'm not sure what info to add to the post. Let me know and I'll
add it.

[1] URL. As well, add an SSCCE.
<http://www.physci.org/codes/sscce.jsp>

Er, eh, OK.

I have a client and a server type setting. Client 1 puts a message
into a queue for client 2 to read out. Client 1 succeeds in sending
the message. Client 2 just hangs out there like it's still waiting.
It's like the two machines do not see each other. If I run the code
for both on one machine, it works.

(all from command line)

Client 1
========
c:\j2ee -verbose

c:\j2eeadmin -addJmsFactory jms/EarthQFC queue -props
url=corbaname=iiop:earth:1050#earth

Client 2
========
c:\j2ee -verbose

c:\j2eeadmin -addJmsFactory jms/EarthQFC queue

Client 1
========
java -Djms.properties=%J2EE_HOME%\config\jms_client.properties
SimpleQueueSender MyQueue 3
(works fine and says 3 messages sent)

Client 2
========
java -Djms.properties=%J2EE_HOME%\config\jms_client.properties
SimpleQueueReceiver MyQueue
(just sits and waits like nothing in the queue)
 
T

TC

One other thing. The orb.properties file has:

port=1050
host=localhost

Should these be the same on both machines?

Andrew said:
...API tutorial ...
[1]

I'm not sure what info to add to the post. Let me know and I'll
add it.

[1] URL. As well, add an SSCCE.
<http://www.physci.org/codes/sscce.jsp>

Er, eh, OK.

I have a client and a server type setting. Client 1 puts a message
into a queue for client 2 to read out. Client 1 succeeds in sending
the message. Client 2 just hangs out there like it's still waiting.
It's like the two machines do not see each other. If I run the code
for both on one machine, it works.

(all from command line)

Client 1
========
c:\j2ee -verbose

c:\j2eeadmin -addJmsFactory jms/EarthQFC queue -props
url=corbaname=iiop:earth:1050#earth

Client 2
========
c:\j2ee -verbose

c:\j2eeadmin -addJmsFactory jms/EarthQFC queue

Client 1
========
java -Djms.properties=%J2EE_HOME%\config\jms_client.properties
SimpleQueueSender MyQueue 3
(works fine and says 3 messages sent)

Client 2
========
java -Djms.properties=%J2EE_HOME%\config\jms_client.properties
SimpleQueueReceiver MyQueue
(just sits and waits like nothing in the queue)
 
A

Andrew Thompson

One other thing. The orb.properties file has:

port=1050
host=localhost

Should these be the same on both machines?

While you provided extra information that was useful, it was neither
of the things I requested that you provide. Please return to the
link I gave (or *go* to the link I gave) and read it carefully.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top