This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Question regarding JMS.

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We have a sender and a receiver in a P2P communication model.
In case the sender is trying to send some data to the receiver, and the netork fails.

1. Will the sender be notified that the data packet is not received by the receiver.
2. Will the sender get an error saying that connection with the receiver failed.
3. How will sender check whether receiver is up or not ? Any particular method that will be used.

Thanks,
Deepak.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Acknowledgement would work. IF Acknowledgement is not received, it means failure.
I beleive AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, and DUPS_OK_ACKNOWLEDGE, any one would help
 
Ranch Hand
Posts: 489
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>In case the sender is trying to send some data to the receiver, and the netork fails.

Sender sends data to the jms server, not the receiver. The jms server sends it out to the receiver.

>In case the sender is trying to send some data to the receiver, and the netork fails.

Change the question to the sender tries to send data to the jms server
And the answer for that is the message sending from client to the jms server itself is a synchronous call. The QueueSender.send() message will throw a JMSException if the message isnt posted to the server for some reason.

Does that answer your question?

ram.
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>Acknowledgement would work. IF Acknowledgement is not received, it means failure.

Acknowldgement is on the receiver side. If the jms server does not receive an acknowledgement from the receiver that it has received a message, the message would be put back in the queue/topic. Whether it would be redelivered depends on a lot of other considerations.

ram.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!