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 » Migration from WMQ JMS to WMQ java

Post new topic  Reply to topic
 Migration from WMQ JMS to WMQ java « View previous topic :: View next topic » 
Author Message
mathilda
PostPosted: Mon Jun 21, 2010 2:27 am    Post subject: Migration from WMQ JMS to WMQ java Reply with quote

Novice

Joined: 16 May 2007
Posts: 16
Location: Sofia, Bulgaria

Hi , i have lots of functionality for WMQ but with JMS.
Now i read for WMQ java, but i don't found nothing about listener mechanism .
My questions are:
- what about listener with WMQ java - can i use Listener like JMS architecture or must write thread and get combination.
- what about setTargetClient - is this property only for WMQ jms?
- about durable subscription - is it any special differences wit WMQ jms?

Regards
_________________
On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man?
Back to top
View user's profile Send private message
calanais
PostPosted: Wed Jun 23, 2010 12:13 am    Post subject: Reply with quote

Apprentice

Joined: 12 Mar 2010
Posts: 32

Hello - assuming the latest WMQ 7.0.1 classed for Java

1) There is not JMS style listener mechanism - a separate thread and get combination will be needed
2) JMS typically adds in a RFH2 header to MQ messages. Therefore this option was present to prevent this from happening. Could go into more detail about when RFH2 headers where added but probably another discussion thread!
3) A durable subscription is a subscription that lasts past the lifetime of the client... what specific thing are you concerned about here?

Matthew
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 23, 2010 11:10 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

What are you looking at specifically. You do know that you can run a JMS program in stand alone mode with minimal modifications... no need to rewrite everything in Java base... except may be when needing multiphase commit... and not having access to a J2EE compliant transaction manager...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mathilda
PostPosted: Thu Jun 24, 2010 12:49 am    Post subject: Reply with quote

Novice

Joined: 16 May 2007
Posts: 16
Location: Sofia, Bulgaria

calanais, with JMS subscriber is create with special durable subscriber to identify.
Maybe have difference with Java MQ.
fjb_saper, my problem is very complex - i have JMS adapter that support lots of JMS providers.
And may model is JMS oriented , but Java MQ isn't JMS
For the moment is too difficult for me, to migrate form JMS to Java MQ - but i need functionality that is missing in JMS - segmentation .
But i will lose listener and knowledge base of JMS
C'est la vie
In other words - i read documentation i try to understand what i will have with Java MQ and what lose , because at the moment i have working JMS functionality for WMQ and my target mislestone with JAVA MQ should be to have same behavior - Lsitener ( not JMS listener, but ..), durable subscription, message selector, grouping and segmentation .

Regards
_________________
On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man?
Back to top
View user's profile Send private message
calanais
PostPosted: Thu Jun 24, 2010 12:52 am    Post subject: Reply with quote

Apprentice

Joined: 12 Mar 2010
Posts: 32

Grouping is achievable from both APIs - look here http://www.ibm.com/developerworks/websphere/library/techarticles/0602_currie/0602_currie.html

Segmentation though isn't supported though JMS - the best approach would be an application level segmentation. Consider carefully why you are wanting to send large messages.

Matthew
Back to top
View user's profile Send private message
mathilda
PostPosted: Thu Jun 24, 2010 1:09 am    Post subject: Reply with quote

Novice

Joined: 16 May 2007
Posts: 16
Location: Sofia, Bulgaria

Hi Matthew,
you're right for grouping - this is not problem on both "styles".
My current urgent problem is segmentation, because in my current implementation i realized segmentation on application level - groupID and seqID.
But if i received only grouping message or grouping messages with meesage that is segmented in that group, i can't distinguish messages and segments, because in JMS messages are missing flags and properties.
This is my reason to migrate to Java MQ.

Regards
_________________
On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 24, 2010 2:24 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Quote:
JMS messages are missing flags and properties

Don't quite remember that. However look up the MQ to JMS mapping. For the flags I'm sure they are mapped in some way... maybe not the way you expected... but you might need to use IBM specific properties like JMSX_IBM something... Check the Using java manual...
Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mathilda
PostPosted: Tue Jun 29, 2010 4:56 am    Post subject: Reply with quote

Novice

Joined: 16 May 2007
Posts: 16
Location: Sofia, Bulgaria

fjb_saper, you're right, but for segmentation in JMS message there isn't properties about segment, segmentation allowed or last segment.
This information is useful, because when trying to make application segmentation with JMS using grouping i can't distinguish that message is segment or only part of group, without using custom properties.
This i problem when i receive.
But when i send JMS message with grouping and sequence number, other side can't undarstand that this message is segmented.

Regards
_________________
On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 29, 2010 1:53 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

JMD supports message grouping. It does not support segmenting.
So you need to use grouping to "segment" your messages on both ends.
Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Migration from WMQ JMS to WMQ java
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.