hi you can consume messages both, snyc and async. as far as i know, please correct me if im wrong: for asnyc processing you set a MessageListener (implement the onMessage method) and just wait for incomming messages. p
A client may either synchronously receive a message consumer's messages or have the consumer asynchronously deliver them as they arrive.
For synchronous receipt, a client can request the next message from a message consumer using one of its receive methods. There are several variations of receive that allow a client to poll or wait for the next message.
For asynchronous delivery, a client can register a MessageListener object with a message consumer. As messages arrive at the message consumer, it delivers them by calling the MessageListener's onMessage method.
Can anyone tell me if message driven beans are used for synchornous or asynchonous messaging ?
MDBs don�t have any way to interact directly with the clients; this is why they have no home or remote interfaces. Therefore it makes no sense for MDBs to process messages synchronously. Even more, this is actually the reason why EJB 2.0 introduced the MDBs in the first place: prior the developers were forced to use all kind of "tricks", like startup classes in order to register an asynchronous listener to a JMS destination. Regards.
I think, therefore I exist -- Rene Descartes
What's that smell? I think this tiny ad may have stepped in something.
Two software engineers solve most of the world's problems in one K&R sized book