ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Java & JMS Together

Post new topic  Reply to topic
 Java & JMS Together « View previous topic :: View next topic » 
Author Message
team
PostPosted: Tue Aug 07, 2007 2:47 am    Post subject: Java & JMS Together Reply with quote

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
View user's profile Send private message Yahoo Messenger
AkankshA
PostPosted: Tue Aug 07, 2007 2:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
team
PostPosted: Tue Aug 07, 2007 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Tue Aug 07, 2007 3:03 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Tue Aug 07, 2007 7:56 am    Post subject: Re: Java & JMS Together Reply with quote

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
View user's profile Send private message
team
PostPosted: Tue Aug 07, 2007 11:28 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Michael Dag
PostPosted: Tue Aug 07, 2007 11:42 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

are you opening a queue exclusively?
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jefflowrey
PostPosted: Tue Aug 07, 2007 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Java & JMS Together
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.