Author |
Message |
Topic: how to send/receive .pdf files through JMS |
exp
Replies: 9 Views: 8144
|
Forum: IBM MQ Java / JMS Posted: Thu Jun 10, 2004 11:26 am Subject: how to send/receive .pdf files through JMS |
First option:
Don't use xml at all.
Simply read the pdf into a byte array and send it using the JMS BytesMessage.
On the receiving end you can save the byte array as BLOB.
//
Second option:
En ... |
Topic: Errors while running java class that accesses MQQueues in DB |
exp
Replies: 1 Views: 1745
|
Forum: IBM MQ Java / JMS Posted: Thu Jun 03, 2004 5:55 am Subject: Errors while running java class that accesses MQQueues in DB |
Try adding the jar to the CLASSPATH.
As you're calling the class from DB (I assume from a stored procedure)
it would be wise to add the CLASSPATH definition to the database user profile.
Don't kno ... |
Topic: Passing MQMD parameters using JMS. |
exp
Replies: 22 Views: 30816
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 02, 2004 11:49 am Subject: Passing MQMD parameters using JMS. |
Answer to fjb_saper:
Hi.
Do you suggest changing the message type to BytesMessage ?
I'm not sure it's an option as the mainframe expects to receive a text MQ message (with xml data in the body par ... |
Topic: Passing MQMD parameters using JMS. |
exp
Replies: 22 Views: 30816
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 02, 2004 11:32 am Subject: Passing MQMD parameters using JMS. |
Answer to EddieA:
Hi.
1) I'm setting the MQMD "format" this way:
message.setStringProperty("JMS_IBM_Format", MQC.MQFMT_CICS);
where message is of type TextMessage.
2) I'm setting CICS "codedC ... |
Topic: Passing MQMD parameters using JMS. |
exp
Replies: 22 Views: 30816
|
Forum: IBM MQ Java / JMS Posted: Wed Jun 02, 2004 5:59 am Subject: Passing MQMD parameters using JMS. |
Hi, everybody.
//
I've tried setting the CICS attributes as suggested:
codedCharSetId = -2; //MQCCSI_INHERIT
format = MQC.MQC.MQFMT_STRING;
It didn't help, message wasn't sent ... |
Topic: Passing MQMD parameters using JMS. |
exp
Replies: 22 Views: 30816
|
Forum: IBM MQ Java / JMS Posted: Wed May 26, 2004 2:40 am Subject: Passing MQMD parameters using JMS. |
Answer to EddieA:
Hi.
Thanks for a speedy reply.
You are probably right - I simply assumed MQ would take
default values for the CICS "codedCharSetId" and "format".
Till now I set ony application ... |
Topic: Passing MQMD parameters using JMS. |
exp
Replies: 22 Views: 30816
|
Forum: IBM MQ Java / JMS Posted: Tue May 25, 2004 11:41 am Subject: Passing MQMD parameters using JMS. |
Answer to jefflowrey:
Hi.
Here's the CICS header generated as part of the JMS message body.
//////////////////////////////////////////////////////////////////////
final static String S4 = " ... |
Topic: Passing MQMD parameters using JMS. |
exp
Replies: 22 Views: 30816
|
Forum: IBM MQ Java / JMS Posted: Sat May 22, 2004 11:47 pm Subject: Passing MQMD parameters using JMS. |
First of all,
thanks to everyone who spent time addressing the problem.
Answer to leongor:
1)In admin console I'm already setting
WebSphere MQ JMS Provider > WebSphere MQ Queue Destinations ... |
Topic: Passing MQMD parameters using JMS. |
exp
Replies: 22 Views: 30816
|
Forum: IBM MQ Java / JMS Posted: Thu May 13, 2004 8:45 am Subject: Passing MQMD parameters using JMS. |
We have a problem passing some MQMD header parameters,
"Format" specifically, as part of the JMS message.
The sender:
WebSphere 5.0 using JMS and WebSphere MQ.
The receiver:
A mainframe syste ... |