This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes MQSeries or messaging simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "MQSeries or messaging simple question" Watch "MQSeries or messaging simple question" New topic
Author

MQSeries or messaging simple question

Jes Sie
Ranch Hand

Joined: Jul 24, 2001
Posts: 188
Dear people,
I have long known people would use MQSeries to do asynchrounous messaging. But, I read some solution out there which uses it for synchronous as well.
Question is, does MQSeries really does synchronous messaging?
What are the principle behind people choosing messaging with synchronous behaviour?
Thanks.


Thank you.<br /> <br />- Jess Sie<br /> <a href="mailto:jess@see-consulting.com" rel="nofollow">jess@see-consulting.com</a>
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Using MQSeries for Synchronous Processing.
It does "almost synchronous" messaging. You would choose this if you need time-dependant responses, as opposed to "ask now get the answer later".


"JavaRanch, where the deer and the Certified play" - David O'Meara
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hmmm, I thought synchronous MQ was as simple as using the getAndWait() API to wait for the message to come back and pull it off the queue. We use this on an app server where the client thinks it is calling a synchronous service. We have to wait for the MQ response before we return to the client. I've always had a wrapper around MQ, not really written to the MQ API mice elf.
We use MQ as synchronous and asynchronous RPC, which is not usually a problem that suggests MQ as an answer. But after some effort we got outstanding performance and reliability out of MQ.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MQSeries or messaging simple question
 
Similar Threads
MQ Series Usage Problem
Synchronous Messaging & EJB
Publisher/Sub and Point to Point..
RMI/JMS/???
regarding Point-to-Point messaging system