There is one MDB... This MDB will receive a message from Websphere MQ that contains a XML document. The MDB then queues this messages up for a XML parser which will construct a wrapper object to hold the data from the XML. Other objects will in turn be called to add the data to various software packages (and picking up the various unique identifiers that each package used for that data). When all the software packages are synchronized the data object's life is over.
So in summary: I am creating a glue between two basically incompatible data management systems. The data comes from some third source, and then goes into the first data management package, picks up some meta-data, and then goes on to the second system.
The truth is, the MDB part is our biggest concern. But at the moment my concern is the data object. I am new to J2EE and I am having a really hard time wrapping my head around how to construct this one little data wrapper. It really just needs to sit pretty an allow the other beans to ask for its data. However there IS a question of persistence. Although the object only has a hopefully short lifespan, due to need to ensure the delivery of the message once it is received by the MDB, the message is persisted until it is processed.
So maybe I should make this an entity bean. Which kinda sucks because I don't really understand all of this... C++ is much more fun for me