Author |
Message
|
narendrach |
Posted: Fri Sep 30, 2005 5:53 am Post subject: Output node properties |
|
|
Voyager
Joined: 29 Jun 2005 Posts: 78
|
hai i developed a custom input node i am reading a file and generating a
xml tree with the content in the file as
<File>
<FileContent></FileContent>
</File>
where the structure is comming out of the custom node and pass to the compute node. it is working fine but while i am sending the XML tree to the
output q i can't able to get it . i had set the properties of MQMD in compute
.and i had also set the MQOutput Node ADVANCE properties ..
MessageContext as Default
what other properties shouldi must set _________________ Narendra CH |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Sep 30, 2005 5:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What error is the MQOutput node throwing? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
narendrach |
Posted: Fri Sep 30, 2005 6:16 am Post subject: |
|
|
Voyager
Joined: 29 Jun 2005 Posts: 78
|
it is not giving any error but i am getting the tree structure
but i am writing a log file in that i got output as
JavaPlugin Node processing started
JavaPlugin Node before Reading File str_line
JavaPlugin Node before Reading File str
JavaPlugin Node started Reading File
Before while
JavaPlugin Node ended Reading File str hai narendra
In while
JavaPlugin Node ended Reading File str hai narendra
In while
JavaPlugin Node ended Reading File str hai narendrahow r u
In while
After while
the xml structure <structure><FileName>log.S21</FileName><FileContent> hai narendrahow r u</FileContent></structure>
Created Msgassembly
before propagating
Error while creating messageassembly <com.ibm.broker.plugin.MbBrokerException source:BIPv500 key:2230 message:[BIPv500:2230]BIP2230E: Error detected whilst processing a message in node '{0}'.
The message broker detected an error whilst processing a message in node '{0}'. An exception has been thrown to cut short the processing of the message.
See the following messages for details of the error. : Caught exception and rethrowing >
File Deleted _________________ Narendra CH |
|
Back to top |
|
 |
narendrach |
Posted: Fri Sep 30, 2005 6:19 am Post subject: |
|
|
Voyager
Joined: 29 Jun 2005 Posts: 78
|
in my custom node i am using a printwriter class and i am writing
the way of execution into a file i got the output as above but i can able to see the structure of xml correctly _________________ Narendra CH |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Sep 30, 2005 6:24 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Do you get output at the out terminal of your custom node?
It looks like, maybe, you are getting an error inside your node. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
narendrach |
Posted: Fri Sep 30, 2005 6:42 am Post subject: |
|
|
Voyager
Joined: 29 Jun 2005 Posts: 78
|
this is the code i had written in run() method
should i must construct whole structure such as localEnvironment and so on
String xml="<structure><FileName>log.S21</FileName><FileContent>"+str_line+"</FileContent></structure>";
byte[] buffer=new byte[xml.length()];
buffer=xml.getBytes();
MbMessage msg = createMessage(buffer);
msg.finalizeMessage(MbMessage.FINALIZE_VALIDATE);
MbMessageAssembly newAssembly =new MbMessageAssembly(mbmessageassembly,msg);
MbOutputTerminal mboutputterminal = getOutputTerminal("out");
mboutputterminal.propagate(newAssembly);
is there any wrong please check it _________________ Narendra CH |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Sep 30, 2005 6:47 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I haven't written an Input node before.
But comparing it with the example
The only thing I see different is maybe you didn't "return SUCCESS_CONTINUE;"? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|