Author |
Message
|
team |
Posted: Tue Aug 07, 2007 2:47 am Post subject: Java & JMS Together |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
Hi,
Using the concept of Handshaking within MQ, following is the process:
1) Put Message to Q1, if picked from here COD delivered to Reply_to_Queue
2) Put Message to Q2, if picked from here COD delivered to Reply_to_Queue
3) Put Message to Q3, if picked from here COD delivered to Reply_to_Queue
The Reply to Queue is the same.
Now when i attempt to use Java or JMS alone for all the three above queues, to put and pick messages, the process works great.
However, I need to use Java only for two of the queues and JMS for the other queue, In such a scenario the process jus fails to work.
WOuld there be a problem in this.
Thanks |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Aug 07, 2007 2:49 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
Quote: |
However, I need to use Java only for two of the queues and JMS for the other queue, In such a scenario the process jus fails to work. |
what error does it throw??? _________________ Cheers |
|
Back to top |
|
 |
team |
Posted: Tue Aug 07, 2007 2:53 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
It does not recognize any message being present in the reply to Queue, even though there are. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 07, 2007 3:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
team wrote: |
It does not recognize any message being present in the reply to Queue, even though there are. |
Looks like a Unit of Work problem. Somewhere something is just not getting committed right ?
Or possibly forgot to clear the correlationID you were looking for on the preceding message from the MQMD?
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
EddieA |
Posted: Tue Aug 07, 2007 7:56 am Post subject: Re: Java & JMS Together |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
team wrote: |
However, I need to use Java only for two of the queues and JMS for the other queue, In such a scenario the process jus fails to work. |
Why.
Mixing Java and JMS in the same application is not recommended.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
team |
Posted: Tue Aug 07, 2007 11:28 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
Yes..i agree so...its a requirement though....Some clients cannot handle non-jms msgs..hence.
Going on with the problem....i fail to understand......
pure java....works fine.
pune jms...works fine.
But when i try to club the two.....it jus doesnt work well.
and the peculiarity i find is.....the process that i start second causes the first one to stop working...in the sense..:
T1) Start java-mq.........works fine
T2) Start jms-mq..........works fine....but Java-mq stop!!
Please could someone give some idea as to why this could be the problem.
Thanks Very much |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue Aug 07, 2007 11:42 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Aug 07, 2007 11:44 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Let me see if I understand this.
Some clients can't handle non-JMS messages.
All clients can handle JMS messages.
You are therefore, only sending non-JMS messages to those clients you know can handle them... rather than sending JMS messages to everyone?
Or is it the other way around - that only some clients CAN handle JMS messages?
The only reason you would have for mixing the two style of messages(!) is if those clients that could handle JMS messages couldn't handle non-JMS messages, and those that could handle non-JMS messages couldn't handle JMS messages.
In either case, one can send JMS style messages using the plain Java MQ API, and one can send non-JMS style messages using JMS.
The second one is a lot easier to do, you just set the TargetClient. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|