| home / infca / was / mdb / (navigation links) | otherwise you are going to run into more trouble than your bargained for |
| mdb tuning | Links | End |
|
Message Driven Beans are business objects whose execution is triggered by messages instead of by method calls. They were added in EJB to allow event-driven processing. Read here and wiki {very good} Writing an MDB involves the following tasks:
|
|
One of the custom properties that users can set on the message listener service in WebSphere Application Server Versions 5.1.x, 6.0.x, and 6.1.x is NON.ASF.RECEIVE.TIMEOUT. Setting this property disables the Application Server Facilities (ASF) mode, and means that the message-driven beans (MDBs) that use listener ports will use a "synchronous receive" mechanism to get messages.
By default, MDBs that are bound to listener ports will use ASF mode to monitor JMS destinations and to process messages
In ASF mode, when a listener port starts, this is what happens:
When the message listener service custom property NON.ASF.RECEIVE.TIMEOUT is set, non-ASF mode is activated,
which means that listener ports will use a synchronous model to process messages.
When the listener port starts up, this is what occurs:
The updated MQ messaging provider support in WebSphere Application Server V7 is based on a J2EE Connector Architecture (JCA) 1.5 compliant resource adapter. Part of the JCA 1.5 specification defines a vendor-neutral way of enabling inbound messages to be delivered to message-driven beans (MDBs) running inside a Java EE compliant application server, such as WebSphere Application Server. The construct that is used to configure and setup inbound message delivery is known as an activation specification.
Try this sample (developerWorks) { \\mq\java\mdb } to configure MQ at WAS : make WebSphere MQ v5.3 the JMS provider for applications deployed in WebSphere Application Server v6
ADP_ECO_WAS ?
Configure JMS connection factories and destinations - create index.jsp as message sender
MessageBean.java - a Message-Driven Bean example
SimpleMessageBean.java - the Message-Driven Bean class, from "the Java EE 5 Tutorial"
SendRcvClient - a Point-To-Point with MDB example
Use google "mdb onmessage example"
Copy-paste the following code into onMessage method:
Excelent url
Other descriptions :
El Check Point frequency del WAS se define en la propiedades de los Listener Ports, en concreto con el parmetro Maximum Messages.
Application Servers -> select server -> Message Listener Service -> Listener Ports -> select port
Bajar o no el Maximum Messages y dejarlo a 1 - documento técnico
aclaratorio
Referencia en el
infocenter
MQ
top 10 problems, number 4 says :
intermittent poor performance when MDB gets messages from WMQ queues
3 solutions :
Oracle Java EE 5 tutorial -> mdb example.
mdb tutorial
{***} My MDB doc {***}
Apache & Geronimo similar sample
Message processing in ASF and non ASF mode (infocenter)
Jordi :
aqui hi ha algunes referncies i molts exemples
v.8.5
repo,
jms mdb
(internal)
v.8
was 8,
STE pdf
|
|
|
Site under construction. |
|
Updated 20150427 (a)
|
|