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 to Mainframe Communication

Post new topic  Reply to topic
 Java to Mainframe Communication « View previous topic :: View next topic » 
Author Message
Gopalakrishna N
PostPosted: Tue Mar 14, 2006 2:24 pm    Post subject: Java to Mainframe Communication Reply with quote

Newbie

Joined: 14 Mar 2006
Posts: 6
Location: Texas

Hi

I am trying send messages through MQ to external Mainframe systems. The specification those Mainframe guys have told me is just that I need to send the messages in EBCDIC format Now how do I manage to do this from my Java program!

Is there any way I can specify it as a part of Queue/ Channel property? Kindly reply asap. Thanks a ton in advance.

Thanks and Regards
Gopalakrishna N
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Tue Mar 14, 2006 2:37 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to tell the mainframe guys to set MQGMO_CONVERT in their program.

And you need to ensure that you either use a TextMessage if you are writing JMS or that you set Format to MQFMT_STRING if you are using the Java API.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Gopalakrishna N
PostPosted: Tue Mar 14, 2006 2:59 pm    Post subject: Java to Mainframe Communication Reply with quote

Newbie

Joined: 14 Mar 2006
Posts: 6
Location: Texas

Thanks a lot for the info Jeff.

Is there any way of handling the same through MQ Properties? I mean setitng some property values in the Queue Manager or Channel? If the above is the only way, then kindly pardon my ignorance on the same.

Thanks and Regards,
Gopalakrishna N.
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Tue Mar 14, 2006 3:07 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can instruct the channel to convert the message.

You don't want to do this, though. It is not recommended.

And you will still have to ensure that your message is either a TextMessage or has MQFMT_STRING Format.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Gopalakrishna N
PostPosted: Tue Mar 14, 2006 3:51 pm    Post subject: Java to Mainframe Communication Reply with quote

Newbie

Joined: 14 Mar 2006
Posts: 6
Location: Texas

Thanks a ton again Jeff.

If you could let me know how to instruct the Channel to do that, it would be extremely helpful. Kindly help me out.

Thanks and Regards,
Gopalakrishna N.
Back to top
View user's profile Send private message Yahoo Messenger
PeterPotkay
PostPosted: Tue Mar 14, 2006 5:37 pm    Post subject: Re: Java to Mainframe Communication Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Gopalakrishna N wrote:
If you could let me know how to instruct the Channel to do that, it would be extremely helpful. Kindly help me out.

Your MQ admin will know how to do it, and should hopefully recomend against it when you ask.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 14, 2006 6:30 pm    Post subject: Reply with quote

Grand High Poobah

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

One thing you can do in JMS is play around with the Q definition:

Code:
String myqstr = "queue:///myremoteq?targetClient=1&CCSID=500";
Queue thequeue = Session.createQueue(myqstr);


This is from memory so you might want to read up on the using java manual.
The CCSID or targetClient can as well be set through the JNDI layer.

Enjoy
_________________
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 » Java to Mainframe Communication
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.