Hello all, I posted this initially on the beginner forum and wound up with a "goose egg" for replies so I'll try here. FWIW, the problem has gotten down to actually doing the "write" from the MQ message to the Data Queue. Here's the original question;
I'm a Java greenhorn fer sure and could use some help or direction. I'm coding a short Java app that will run on an ISeries box and read from an MQ queue on another ISeries box. I then need to write to a DDM Data Queue on an ISeries box. I just attended an MQ class and think I have that part finished but how do you write to the ISeries data queue? This is my first posting here so excuse me if I haven't worded or followed protocol exactly right. Thanks in advice for any help.
Sorry, I did not get exactly. Are you using any other vendor provided JMS.
posted 12 years ago
Thanks Manuel, I've been using the toolbox but will look into your link closer. Srinivas, I'm reading from an MQ Queue located on an ISeries/AS400 and I think I have that down but when I try to write to the ISeries?AS400 Data Queue, using the Java Data Queue "write", I get bit. Thank you guys for your ideas and help. Ken
"One man gathers what another man spills"
posted 12 years ago
Ahhh, I was just enlightened... Remember, I'm new at this. This is my statement: dq.write(msg.toString()); The dq is the Data Queue object and the msg is the MQ Message. I needed to convert the msg to the string in order to write it. I was initially trying to convert to "byte" for the write. Sorry to have wasted your time guys but thanks for replying. Ken (AKA ==> DeadHead) WooHooooo
This was an interesting thread. I'd never heard of DDM data queues but googled for a bit on the topic. Sounds like you wrote a Message Translator. If you use messaging at all, browse the whole Pattern Catalog or buy The Book. Gregor Hohpe's pattern names and notation are catching on with other authors and tool vendors. [ September 08, 2006: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi