X

@OracleIMC Partner Resources & Training: Discover your Modernization options + Reach new potential through Innovation

How to use Oracle AQ with Message-Driven Beans in Weblogic

Guest Author

In this post we would like to show you how to use Oracle AQ as an underlying JMS implementation with MDBs in Weblogic.

MDB's can be very useful when you want to integrate your database logic with your Java application. Normally JEE application invokes the code inside the database. But in some cases you want the DB to initiate the asynchronous call and have your Java application do the actual processing. This is also very useful when you want to integrate JEE code with the Oracle Forms application.

The post has been based on the following OTN documentation:
http://download.oracle.com/docs/cd/E14571_01/web.1111/e13738/aq_jms.htm#CJACBCEJ

Detailed instructions are available bellow:


how_to_connect_mdb_to_oracle_aq

You can also download a sample JDeveloper application here:
 
MDB_AQApplication.zip


Please feel free to ask questions at partner.imc@beehiveonline.oracle.com or by submitting your comments bellow.

Merry Christmas and Happy New Year!

Join the discussion

Comments ( 3 )
  • sandeep Friday, October 11, 2013

    Hi,

    I want my MDB to listen to Oracle AQ.

    I've created Foreign Server in Weblogic and created MDB as mentioned in the above doc and following the below link.
    https://blogs.oracle.com/soaproactive/entry/jms_step_6_how_to

    It is perfectly working but my requirement is not to use SOA suite. JMS adapter is available in Weblogic server deployments only if we install SOA suite.

    Can the same be done without SOA suite/JMS adapter. (Requirement is to continuously listen to AQ in Oracle DB and get messages asynchronously )


  • sandeep Friday, October 11, 2013

    Hi Edwin,

    I want my MDB to listen to Oracle AQ.

    I've created Foreign Server in Weblogic and created MDB as mentioned in the above pdf and following the below link.

    blogs.oracle.com/soaproactive/entry/jms_step_6_how_to

    It is perfectly working but my requirement is not to use SOA suite. JMS adapter is available in Weblogic server deployments only if we install SOA suite.

    Can the same be done without SOA suite/JMS adapter. (Requirement is to continuously listen to AQ in Oracle DB and get messages asynchronously )


  • Deepak Jain Tuesday, July 24, 2018
    Very useful document to use MDB with Oracle AQ.. I tried to use this for our requirement. We are able to enqueue the messages and run the MDB. We used both Queue and Topic. Enqueue is happening in Oracle AQ and MDB is doing the job. Problem is once MDB is getting completed, my messages are not getting dequeue from oracle AQ. Request your help for the same. Until we disconnect or disable the MDB application, messages are remaining in queue.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.