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 Discussion » Converting JMSMessageID to MQMessageID

Post new topic  Reply to topic
 Converting JMSMessageID to MQMessageID « View previous topic :: View next topic » 
Author Message
Yash1234
PostPosted: Mon Feb 26, 2007 9:33 am    Post subject: Converting JMSMessageID to MQMessageID Reply with quote

Newbie

Joined: 02 Oct 2006
Posts: 8

Hi,

I am reading MQ message using JMS & I am writing the reply to MQ using MQ API. I'm using websphere6.0 which has the concept of setting SIBus to send out message, since I am not confortable with that I'm using MQ API to send out the message.

The problem is when I read the JMS message I get the messageID as string but I cannot set this messageID to MQ Message as MQ message want the message ID in Byte array.

Can we convert this messageID from String to Byte array? If yes how can we do this.

Thanks,
Yashwant.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Feb 27, 2007 1:19 pm    Post subject: Re: Converting JMSMessageID to MQMessageID Reply with quote

Grand High Poobah

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

Yash1234 wrote:
Hi,

I am reading MQ message using JMS & I am writing the reply to MQ using MQ API. I'm using websphere6.0 which has the concept of setting SIBus to send out message, since I am not confortable with that I'm using MQ API to send out the message.

The problem is when I read the JMS message I get the messageID as string but I cannot set this messageID to MQ Message as MQ message want the message ID in Byte array.

Can we convert this messageID from String to Byte array? If yes how can we do this.

Thanks,
Yashwant.

Don't do that. Get confortable with JMS. You will take advantage of connection pooling and a number of other things. If you don't want to use the SIBus you don't have to. Just set up the MQ qcf and use this. You'll be directly linked to MQ.

If you "have to" you might want to look into Integer.Decode ....

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Yash1234
PostPosted: Tue Feb 27, 2007 9:37 pm    Post subject: Hi Reply with quote

Newbie

Joined: 02 Oct 2006
Posts: 8

I tried using the MQ connection factory but I have another problem with it as I'm using Websphere 6.0. Websphere6.0 gives a problem when you try to lookup the JNDI name.

The jndi lookup below fails for jndi.

QueueConnectionFactory cf = (QueueConnectionFactory) context.lookup("jms/sendcustdirectorydata");

J2CA0294W: Deprecated usage of direct JNDI lookup of resource jms/sendcustdirectorydata. The following default values are used: [Resource-ref settings]

res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: true (SHAREABLE)
loginConfigurationName: null
loginConfigProperties: null
[Other attributes]

res-resolution-control: 999 (undefined)
isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)

Any solutions ???

Regards,
Yash
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Converting JMSMessageID to MQMessageID
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.