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 » General IBM MQ Support » MQ in leagcy and JMS compliant mode

Post new topic  Reply to topic Goto page 1, 2  Next
 MQ in leagcy and JMS compliant mode « View previous topic :: View next topic » 
Author Message
garyprmr
PostPosted: Tue Sep 14, 2010 10:04 pm    Post subject: MQ in leagcy and JMS compliant mode Reply with quote

Acolyte

Joined: 03 Sep 2005
Posts: 74

Hello Techies ,

Any inputs on this note please

Websphere MQ has the limitation that its support for message properties is complete ONLY in JMS compliant mode. MQ has two modes - legacy/native mode and a JMS compliant mode. The difference between these two modes lies in the presence of an extra MQ message header - the MQRFH2 header - that is present in JMS compliant messages. (Please see references). Without this header, an MQ message cannot support custom JMS message properties.

I am not aware of something MQ in leagcy and JMS compliant we are running MQ ver 6
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
mqjeff
PostPosted: Wed Sep 15, 2010 12:55 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

A JMS message is not the same as a native MQ message.

There exists a standard mapping between JMS messages and MQ messages. This mapping is documented, and is handled by the MQ JMS provider.

If you actually have a question, rather than a series of statements, it is not at all clear what that question is.
Back to top
View user's profile Send private message
garyprmr
PostPosted: Wed Sep 15, 2010 5:34 am    Post subject: Reply with quote

Acolyte

Joined: 03 Sep 2005
Posts: 74

Hello Jeff ,

Thanks for the the reply and to make it short

JMS compliant mode- We have installed MQ ver 6 . I hope by default it can talk to the SAPXI which is using some JMS stuff .

I dont think we need any change on the MQ end for that .I think whatever we have installed is JMS compliant ?

Or it lies with the SAP XI adapter to use that JMS porvider is there something we need to do from MQ admin end.

I have yet to read the provide stuff you told. Will catch on it later in the day.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
fjb_saper
PostPosted: Wed Sep 15, 2010 12:03 pm    Post subject: Reply with quote

Grand High Poobah

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

garyprmr wrote:
Hello Jeff ,

Thanks for the the reply and to make it short

JMS compliant mode- We have installed MQ ver 6 . I hope by default it can talk to the SAPXI which is using some JMS stuff .

I dont think we need any change on the MQ end for that .I think whatever we have installed is JMS compliant ?

Or it lies with the SAP XI adapter to use that JMS porvider is there something we need to do from MQ admin end.

I have yet to read the provide stuff you told. Will catch on it later in the day.


You have to decide whether your messages are slotted for a JMS app as destination or a non JMS app as destination. As specified above the JMS user defined message properties are stored in the RFH header. If your destination is non JMS destination (see targetClient property of the destination), you will loose those user defined message properties.

System defined properties are mapped as specified in the Using Java manual.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sunny_30
PostPosted: Thu Sep 30, 2010 7:52 am    Post subject: Reply with quote

Master

Joined: 03 Oct 2005
Posts: 258

Hi
We have a similar requirement to communicate between mq & sap-jms queue objects

The idea is that sap pi/xi picks up messages from its local sap-netweaver-webas-jms queues, not MQ queues

My question is w/o using some kind of broker to transform messages from mq to jms format, is it possible to point mq remote queues (in some mode) directly to sap-jms queue objects?

please help

thx in advance
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 30, 2010 12:34 pm    Post subject: Reply with quote

Grand High Poobah

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

sunny_30 wrote:
Hi
We have a similar requirement to communicate between mq & sap-jms queue objects

The idea is that sap pi/xi picks up messages from its local sap-netweaver-webas-jms queues, not MQ queues

My question is w/o using some kind of broker to transform messages from mq to jms format, is it possible to point mq remote queues (in some mode) directly to sap-jms queue objects?

please help

thx in advance

You still need a JMS to JMS bridge.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sunny_30
PostPosted: Thu Sep 30, 2010 1:23 pm    Post subject: Reply with quote

Master

Joined: 03 Oct 2005
Posts: 258

HI Saper,
Thanks for your reply

By "bridge"- do you mean some external program that maps between SAP-JMS & MQ headers ? Can you plz elaborate ..?

I know a scenario where a remoteQ in MQ could directly connect to integrated MQ/JMS in WAS-SIB with no problem

For current project, Im asked to research into connecting MQ queues/channels directly with SAP-JMS objects w/o involving Broker or any ext bridge...

I knew this wdnt be possible but needed to confirm to my peers what the exact technical restraints are to do so.... Their assumption is both MQ & SAP-PI messagings are JMS compliant, so why not ..
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Sep 30, 2010 1:33 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

IBM has an SAP-R3 MQ Link product. Is that what you are looking for? If so, go to ibm.com and search for Link for SAP R/3.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
sunny_30
PostPosted: Thu Sep 30, 2010 2:32 pm    Post subject: Reply with quote

Master

Joined: 03 Oct 2005
Posts: 258

Hi Bruce.. its actually like this..
my client has two datacenters (DCs)..
they'd like to keep 1 DC (new) as a pure sap-PI shop.... no IBM products.... not even MQ
but still wd like to communicate to servers in remote DC (call it legacy .. ) using MQ over WAN....
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 30, 2010 6:58 pm    Post subject: Reply with quote

Grand High Poobah

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

You have to ask the SAP XI guys if you can use a foreign (non SAP) JMS provider. You then need to set MQ up as being that foreign JMS provider.

In this case no need for a JMS bridge. But if you are going from SAP JMS to MQ JMS you need a JMS to JMS bridge.

@bruce2359 nice alternative talking about the MQ-Link for R3 or for that matter about the SAP adapter of WMB...

These use the BAPI and IDOC technologies. The SAP team will have to evaluate the suitability of this technology for their purpose.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
IvanPetroff
PostPosted: Sat Jan 07, 2012 9:26 pm    Post subject: Reply with quote

Newbie

Joined: 07 Jan 2012
Posts: 7

mqjeff wrote:
A JMS message is not the same as a native MQ message.

There exists a standard mapping between JMS messages and MQ messages. This mapping is documented, and is handled by the MQ JMS provider.


Hi guys,

I have a question about the mapping b/w native JMS message and MQ JMS message. As far as I understand the MQ JMS provider automatically makes this mapping or I am wrong? In my scenario I am using WebSphere v6.0.21 + WebSphere Client on the same machine. The testing client application is developed with the standard JMS API and to connect to the MQ I'm using client connection mode. I can put a message to the queue and I can get a message as well but I am wondering whether I need to use some JMS to MQ and MQ to JMS bridge or this mapping is handled by the MQ JMS provider?

Thanks and Regards
Back to top
View user's profile Send private message
zpat
PostPosted: Sat Jan 07, 2012 11:22 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Use NONJMS as the target.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jan 08, 2012 6:11 am    Post subject: Reply with quote

Grand High Poobah

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

Better yet, go to MQ V 7.x and you will be able to support the properties natively. (no more need for the RFH header).

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
IvanPetroff
PostPosted: Sun Jan 08, 2012 9:22 am    Post subject: Reply with quote

Newbie

Joined: 07 Jan 2012
Posts: 7

Hi zpat and fjb_saper,

First of all thanks for the replies
fjb_saper wrote:
Better yet, go to MQ V 7.x and you will be able to support the properties natively. (no more need for the RFH header).

Have fun

That is impossible, because the customer cannot upgrade their system.

zpat wrote:
Use NONJMS as the target.

I changed my code as follow:
1.// strip off the JMS header
MQDestination.setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ)
2.//Do not construct the RFH2 header in case of using Replay-To header
MQConnectionFactory.setTargetClientMatching(true)

The code works fine for me, but I am not an IBM specialist. Do you thing that these changes are enough to exchange messages between native JMS and MQ JMS or i should do some more settings?

Once again, thanks for the help!

And one more question -
Is there any special encoding like UTF-8 that I have to set explicitly?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jan 08, 2012 9:36 pm    Post subject: Reply with quote

Grand High Poobah

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

IvanPetroff wrote:

And one more question -
Is there any special encoding like UTF-8 that I have to set explicitly?


You want to set the CCSID on the connection factory to 1208 (UTF-8 )

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 Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » MQ in leagcy and JMS compliant mode
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.