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 » IBM MQ Java / JMS » Hello - MQ Java Newbie

Post new topic  Reply to topic
 Hello - MQ Java Newbie « View previous topic :: View next topic » 
Author Message
sg94k6r2
PostPosted: Mon Mar 07, 2005 1:52 pm    Post subject: Hello - MQ Java Newbie Reply with quote

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?

Any comments will be well apprecieated.

Thank you very much!

Regards.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Mar 07, 2005 2:36 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

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.
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 » IBM MQ Java / JMS » Hello - MQ Java Newbie
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.