We have two "MDB" (WAS 4.0) that listen to all messages that come in on all our MQ queues.
They then according to the "service" defined in the header route it to a specific session bean. This session bean however needs parameters to perform certain tests. We cant pass these using the actual MQ message. So what I did is I wrote a SOJP that starts up a session bean that has as its sole purpose the binding of the parameters to JNDI. These parameters by the weay change with each
test & are entered by a user on the command line.
The session bean that actually processes the MQ mesg will once it is "triggered" by the MDB, read these JNDI "strings" to get the current parameters.
Now I'm wondering is this all
J2EE complient ??
By the way we first had a version where the SOJP put the parameters in a MQ queue & the session bean read them from there, but our MQ Office said no way could we use a queue to do that, yeah they are full of s..t The alternative was a database, but the client did not want to pay for that.
[ March 02, 2004: Message edited by: Johannes de Jong ]