|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Put a simple message in a MQoutput |
« View previous topic :: View next topic » |
Author |
Message
|
Sejo |
Posted: Thu Aug 19, 2010 7:22 am Post subject: Put a simple message in a MQoutput |
|
|
Newbie
Joined: 09 Jun 2009 Posts: 3
|
Hi, i'm a new on mq and broker.
I do a broker flow, and i want to put a message in a mqoutput. But in the MQ Output throw me a error.
Code: |
MQ Final Fail
--------------------------------------------------
(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'LPEFKIG002001'
(0x03000000):MessageType = 'texto'
(0x03000000):MessageFormat = 'TDS'
(0x03000000):Encoding = 273
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = NULL
(0x03000000):Persistence = NULL
(0x03000000):CreationTime = NULL
(0x03000000):ExpirationTime = NULL
(0x03000000):Priority = NULL
(0x03000000):ReplyIdentifier = NULL
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = NULL
)
(0x0100001D):MRM = (
(0x03000015):texto = '<TRX>
<SP>DATOS_GPRS</SP>
<DATA>2010081809021000</DATA>
</TRX>'
)
)
--------------------------------------------------
--------------------------------------------------
EXCEPTION
(
(0x01000000):RecoverableException = (
(0x03000000):File = 'F:\build\S000_P\src\DataFlowEngine\ImbDataFlowNode.cpp'
(0x03000000):Line = 616
(0x03000000):Function = 'ImbDataFlowNode::createExceptionList'
(0x03000000):Type = 'ComIbmMQOutputNode'
(0x03000000):Name = 'cl/copec/flows/gps_ws/GPS_Flow_WS#FCMComposite_1_34'
(0x03000000):Label = 'cl.copec.flows.gps_ws.GPS_Flow_WS.MQOutput1'
(0x03000000):Catalog = 'BIPv600'
(0x03000000):Severity = 3
(0x03000000):Number = 2230
(0x03000000):Text = 'Node throwing exception'
(0x01000000):MessageException = (
(0x03000000):File = 'F:\build\S000_P\src\DataFlowEngine\ImbMqOutputNode.cpp'
(0x03000000):Line = 635
(0x03000000):Function = 'ImbMqOutputNode::evaluate'
(0x03000000):Type = 'ComIbmMQOutputNode'
(0x03000000):Name = 'cl/copec/flows/gps_ws/GPS_Flow_WS#FCMComposite_1_34'
(0x03000000):Label = 'cl.copec.flows.gps_ws.GPS_Flow_WS.MQOutput1'
(0x03000000):Catalog = 'BIPv600'
(0x03000000):Severity = 3
(0x03000000):Number = 2660
(0x03000000):Text = 'Message contains no data'
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '-1'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'MQW001'
)
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '0'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = ''
)
)
)
) |
And this is the code of the compute that i want to send the message:
Code: |
BEGIN
SET OutputRoot.Properties.MessageSet = 'LPEFKIG002001';
SET OutputRoot.Properties.MessageType = 'texto';
SET OutputRoot.Properties.MessageFormat = 'TDS';
SET OutputRoot.Properties.Encoding = 273;
SET OutputRoot.Properties.CodedCharSetId = 1208;
SET OutputRoot.MRM.texto = '<TRX>
<SP>DATOS_GPRS</SP>
<DATA>2010081809021000</DATA>
</TRX>';
RETURN TRUE;
END;
|
i'm confuse with my error... please, you can help me... thanks a lot!! |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Aug 19, 2010 8:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
What you are showing in your message tree is not a message tree (MRM) but a BLOB.
You are new to WMB get some training! _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 19, 2010 8:12 am Post subject: Re: Put a simple message in a MQoutput |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Sejo wrote: |
i'm confuse with my error... |
If you look you'll see:
Sejo wrote: |
Text = 'Message contains no data' |
You appear to be trying to write out an XML document as a single string. This is silly.
Broker doesn't seem to understand either.
a) Get some training - WMB is not a simple product
b) Check your message set
c) Ask yourself why you're using a message set to write out XML in the first place
d) Take a user trace to follow broker's thinking & where it's getting confused
I also hope this is some kind of first pass, as the utility of a string hard coded in ESQL is limited....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Sejo |
Posted: Thu Aug 19, 2010 8:31 am Post subject: |
|
|
Newbie
Joined: 09 Jun 2009 Posts: 3
|
Thanks for the reply. Finally i'll do with this code:
Code: |
SET OutputRoot.Properties.MessageSet = 'LPEFKIG002001';
SET OutputRoot.Properties.MessageType = 'texto';
SET OutputRoot.Properties.MessageFormat = 'TDS';
SET OutputRoot.Properties.Encoding = 273;
SET OutputRoot.Properties.CodedCharSetId = 1208;
SET OutputRoot.Properties.MessageDomain = 'XMLNS';
CREATE NEXTSIBLING OF OutputRoot.Properties DOMAIN 'MQMD';
SET OutputRoot.MQMD.StrucId = MQMD_STRUC_ID;
SET OutputRoot.MQMD.Version = MQMD_CURRENT_VERSION;
SET OutputRoot.MQMD.MsgType = MQMT_DATAGRAM;
SET OutputRoot.MQMD.Format = ' ' ;
SET OutputRoot.XMLNS.Data = '2010081809021000';
|
Vitor, you are right. I'm confuse, and i try to write a xml like a string. In this case i send a xml with my string inside, and work fine.
Thanks
PS: if anyone have a manual for learn more easy esql, i would appreciate. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 19, 2010 8:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Sejo wrote: |
Vitor, you are right. I'm confuse, and i try to write a xml like a string. In this case i send a xml with my string inside, and work fine.
|
That's not going to yield the same document as in your first post (no TRX or SP tags) , but the principle is sound.
You also shouldn't use XMLNS for new things; use XMLNSC.
Sejo wrote: |
PS: if anyone have a manual for learn more easy esql, i would appreciate. |
This is as easy as ESQL gets. Hence the recommendation on training. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Sejo |
Posted: Thu Aug 19, 2010 10:01 am Post subject: |
|
|
Newbie
Joined: 09 Jun 2009 Posts: 3
|
Vitor wrote: |
Sejo wrote: |
Vitor, you are right. I'm confuse, and i try to write a xml like a string. In this case i send a xml with my string inside, and work fine.
|
That's not going to yield the same document as in your first post (no TRX or SP tags) , but the principle is sound.
You also shouldn't use XMLNS for new things; use XMLNSC.
Sejo wrote: |
PS: if anyone have a manual for learn more easy esql, i would appreciate. |
This is as easy as ESQL gets. Hence the recommendation on training. |
Thanks vitor |
|
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
|
|
|
|