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 » Setting context from mqjms?

Post new topic  Reply to topic
 Setting context from mqjms? « View previous topic :: View next topic » 
Author Message
atheek
PostPosted: Fri Sep 12, 2008 5:27 am    Post subject: Setting context from mqjms? Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Is it possible to set values for fields like ApplIdentityData orApplOriginData from mq jms..I know its possible from mq java...?

thanks,
Atheek
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Sep 12, 2008 5:37 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Some fields can be set. If you look at the Using java manual, it will show a mapping between JMS and MQ.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
atheek
PostPosted: Fri Sep 12, 2008 5:18 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Yes. I have read that, but I couldn't see these 2 fields there..
Back to top
View user's profile Send private message
atheek
PostPosted: Fri Sep 12, 2008 9:35 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Hi All,

This is the requirement we have

Client application running on AIX needs to talk with a mainframe Qmgr via a Windows 2003 qmgr.

Client is a j2ee application running on app servers which puts messages to a remote Q in the windows qmgr which is binded to the mainframe Q.
Client uses standard jms api.

The application at mainframe side requires , the following mqmd fields to be set to a set of values defined by them: :

UserIdentifer
ApplnIdentityData
Appln OriginData

How can we do this: ? As far as I know, UserIdentifier can be set if we run the mcauser of the svrconn channel used by the client application to the value required by mainframe..the overhead with this we need to define the userid in the windows environment and grant sufficient privelages.. But by the look of things, there is no way we can set the other two values using mqq jms...Should we ask the client appln team to use mq java instead? Or is there some other better approach for this requirement?

Note that we dont have an option to ask the mainframe side to change their requirements
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Sep 13, 2008 3:19 am    Post subject: Reply with quote

Grand High Poobah

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

Ideally you could use a program in between to mediate, like WebSphere Message Broker.
But no there is no setup that will allow you to set this from JMS.
As an alternative you could send the information in the RFH header. That would require the MF to be able to read set RFH header... and interpret correctly the values... May not be possible if you are using a canned bridge...
You could also use the MF to pick the message up from Q A and set the header and put it to Q B...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
atheek
PostPosted: Sun Sep 14, 2008 1:59 am    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Thanks FJ..The windows environment is our integration environment and we use BEA ( oops, now Oracle) products like WLI and ALSB. The project doesn't want to build anything in the integration platform ( cost cutting) and wants to use the MQ manager alone...After their analysis, they somehow decided this solution. The mainframe side is not that flexible and the only work around I can see is build something in WLI( which supports mq base java) to set these header fields

-Atheek
Back to top
View user's profile Send private message
atheek
PostPosted: Mon Oct 20, 2008 8:43 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

This is one of the proposed solution for setting the context. I would like to know whether this solution is feasible or not:

The app server puts a message to a local jms queue defined under the app server. A MDB is used to poll the jms queue and deliver the message to the MQ using java native api. The context is set within the onMessage method using Java API.

We are looking at once and only once quality of service. We can use a XA enabled connection factory to read the messages off the JMS queue and Syncpoint the MQPUT.

This solution however supports only single phase commit still.
And there are possibilities for duplicates.

Like to know whether its possible to convert such a setup to get exactly-once QoS.

A few basic questions:
How does the app server transaction manager know what are the different resource managers taking part in the transaction. I am using mq under syncpoint within the onMessage method using java api. Will MQ be listed as a resource manager in the transaction if it is container managed?

If I just do a MQPUT under syncpoint and finish off the onMessage ( no MQCOMMIT) will the put commit when the container's transactions commit?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 21, 2008 1:18 am    Post subject: Reply with quote

Grand High Poobah

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

Have you looked @ MQ V7? This would solve theese problems for you.
If it were WAS I'd say yes and yes to your transactionality questions. I believe with the JCA edition you get the etc client with the distribution in JMS
_________________
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 » Setting context from mqjms?
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.