0 Replies Latest reply: Dec 12, 2012 5:14 AM by 869615 RSS

    EJB3 Message Driven Bean with AQ

    869615
      We are trying to create a EJB3 MDB that gets invoked using AQ.
      Using Weblogic Server 10.3.5 and Oracle 11g database.

      The documentation describes that it is possible, but is not very clear on how it is done.
      http://docs.oracle.com/cd/E21764_01/web.1111/e13727/interop.htm#JMSPG613


      This is what i have so far

      http://pastebin.com/7SXcf13P

      //JNDI to a datasources connection factor?
      @ActivationConfigProperty(propertyName = "ConnectionFactoryJndiName", propertyValue = "dispatchAQJMSConnectionFactory")

      //Name of the queue?
      @ActivationConfigProperty(propertyName = "DestinationName", propertyValue = "T_SYS_Q")

      //type of messages to receive, queue not topic
      @ActivationConfigProperty(propertyName = "DestinationType", propertyValue = "javax.jms.Queue")

      //name of database queue?
      mappedName = "T_SYS_Q"

      Is this annotation also necessary?
      @MessageDrivenDeployment(resourceAdapter = "???")


      -----

      We have the same thing working with regular JMS using:

      @MessageDriven(
      mappedName = "theQueueJndi",
      activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue") })