|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Converting JMSMessageID to MQMessageID |
« View previous topic :: View next topic » |
Author |
Message
|
Yash1234 |
Posted: Mon Feb 26, 2007 9:33 am Post subject: Converting JMSMessageID to MQMessageID |
|
|
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 |
|
 |
fjb_saper |
Posted: Tue Feb 27, 2007 1:19 pm Post subject: Re: Converting JMSMessageID to MQMessageID |
|
|
 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 |
|
 |
Yash1234 |
Posted: Tue Feb 27, 2007 9:37 pm Post subject: Hi |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|