Author |
Message |
Topic: getStringProperty("JMSXAppID") problem |
aw_all
Replies: 5 Views: 4493
|
Forum: IBM MQ Java / JMS Posted: Tue Aug 10, 2010 6:53 pm Subject: getStringProperty("JMSXAppID") problem |
problem solved, thank you for helping |
Topic: getStringProperty("JMSXAppID") problem |
aw_all
Replies: 5 Views: 4493
|
Forum: IBM MQ Java / JMS Posted: Tue Aug 10, 2010 12:51 am Subject: getStringProperty("JMSXAppID") problem |
I am using JMS, and trying to do something similar to putApplicationName, i want to get the name of the apllication that give the response.
So I use
try {
Message.getStringProperty ... |
Topic: getStringProperty("JMSXAppID") problem |
aw_all
Replies: 5 Views: 4493
|
Forum: IBM MQ Java / JMS Posted: Mon Aug 09, 2010 11:44 pm Subject: getStringProperty("JMSXAppID") problem |
I found out that in JMS,
Message.getStringProperty("JMSXAppID")
is a similar methods to putApplicationName in IBM MQAPI.
however this line cause an exception, and when i print o ... |
Topic: Problem in reading BytesMessage |
aw_all
Replies: 7 Views: 6120
|
Forum: IBM MQ Java / JMS Posted: Thu Aug 05, 2010 6:44 am Subject: Problem in reading BytesMessage |
sorry I'm very new to MQ,
I don't how how to just extract part of message.
I know BytesMessage.readBytes(Bytes, length), but how do I know where to start extracting, and the length of the body ... |
Topic: Problem in reading BytesMessage |
aw_all
Replies: 7 Views: 6120
|
Forum: IBM MQ Java / JMS Posted: Thu Aug 05, 2010 5:59 am Subject: Problem in reading BytesMessage |
The message received is an instance of BytesMessage,
Byte [] Bytes = new Byte[300];
String rsp = null;
if ( inMessage instanceof BytesMessage) {
BytesMessage ... |
Topic: Problem in reading BytesMessage |
aw_all
Replies: 7 Views: 6120
|
Forum: IBM MQ Java / JMS Posted: Thu Aug 05, 2010 1:23 am Subject: Problem in reading BytesMessage |
I received a ByesMessage and i convert it to String, but it contains header information, how can i extract the message body only?
This is the Message I printed out.
<mcd ... |