0 Replies Latest reply on Dec 12, 2012 11:14 AM by 869615

    EJB3 Message Driven Bean with AQ

      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.

      This is what i have so far


      //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:

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