Posted: Mon Jun 26, 2006 6:12 am Post subject: Java Compute Node Issues
Newbie
Joined: 26 Jun 2006 Posts: 2 Location: Edinburgh
Hi All,
1. How to propage message more than 2 destinations using routetolabel or anyother node based on the condition in javacompute node?
ESQL Solution:
IF InputRoot.XML.PassengerQuery.ReservationNumber<>'' THEN
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = 'SinglePassenger';
ELSE IF
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = 'AllReservations';
ELSE
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = 'AllReservations';
etc..
END IF;
How to implement in java compute nod
2. Same message send more than one output queue.
How to set queue names and queue manager in runtime in java compute node.
3. If it is possible to implement Connection pooling in java compute node.
4. How to implement tracing and exception handling in Javacomputenode.
a). Any exception occur in java compute node how will I routed back to exception queue.
b) How to implement tracing where the problem occured.
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
Try the WMB forum next time.
Also, search the forum for each specific question because answers must already be there.
If you have tried and are struck post it here and somebody might be able to get you pass that
1. U can get the handle to local environment in java compute node also . Check the Java API , u will understand. (hint: getLocalEnvironment() on MbMessageAssembly class)
2. Same way as 1. set the local environment destination list with the queue and quue manager names.
3. why do u need to do it. Broker handles the connection to the DB and as a user u need not do this. U can look at it like a container managed conneciton pooling mechanism.
4. U should be reading the basics of error handling and exception routing in MB message flows. For tracing within Java compute u should look at the MbServce class.
Read and search first before posting questions.
Regards,
Anoop
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