Posted: Mon Mar 07, 2005 1:52 pm Post subject: Hello - MQ Java Newbie
Newbie
Joined: 03 Sep 2004 Posts: 8
Hello Everybody,
I have the following requirements:
An XML Meassage arrives at a local queue - read the message (not the MQ header just the content string). Do some validation and insert the xml data into a database table. Database table column names are the same as XML Tag names (1:1 mapping). If insert or validation fails - write message to error queue otherwise write it to the processed log queue.
I know how to read message off the queue and do validation/write to otther queues.
I am torn between using trigger or just a generic java app that pings the queue every so often.
Also, is there an easier way to map xml datafileds directly into database tables in MQ?
Does anyone have a better idea than what I intend to do as above?
You may want to look at Java Data Objects (JDO) to provide bindings between XML and Java beans and Database tables and Java Beans.
You shouldn't write a java app that "pings the queue every so often".
You should either use triggering or write a java app that uses the Wait options on GET to listen to the queue, instead of polling it. _________________ I am *not* the model of the modern major general.
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