Pages

Sunday, August 12, 2012

Message Driven Bean ( MDB )

Deploying a Message Driven Bean ( MDB ) on Oracle Weblogic Server


Let us deploy a simple MDB on Weblogic Server 12.1.1.0 ( 12 C ) , send few messages and lets see how MDB consumes them.

1. Create a managed server.


2. Create a File Store.


3. Create a JMS Store and associate the above File store with it.


4. Create a System Module.


5. Create a Connection Factory and a Queue.


6. Deploy a simple MDB.


7. Use a simple QueueSend.java program to send messages to this MDB.


In the above image we see that the Message Total is 3 as we have sent 3 messages.

The QueueSend.java code is provided along with the Oracle Weblogic Server , Once you install weblogic , the code would be found in "<WL_HOME>\samples\server\examples\src\examples\jms\queue\" directory.


- Prashant Gaikwad.

1 comment:

  1. Hi Prashant,
    I am having issues with Load testing in OAM server. One of oracle note says, in WebLogic Console, use the Message Driven Bean pool to restrict the
    number of NAP requests to the OAM Server .. How to achieve it? Please advise. Thanks

    ReplyDelete