ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Output node properties

Post new topic  Reply to topic
 Output node properties « View previous topic :: View next topic » 
Author Message
narendrach
PostPosted: Fri Sep 30, 2005 5:53 am    Post subject: Output node properties Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Fri Sep 30, 2005 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message
narendrach
PostPosted: Fri Sep 30, 2005 6:16 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
narendrach
PostPosted: Fri Sep 30, 2005 6:19 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Fri Sep 30, 2005 6:24 am    Post subject: Reply with quote

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
View user's profile Send private message
narendrach
PostPosted: Fri Sep 30, 2005 6:42 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Fri Sep 30, 2005 6:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Output node properties
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.