Forum Stats

  • 3,752,646 Users
  • 2,250,532 Discussions
  • 7,867,906 Comments

Discussions

MDB @ActivationConfigProperty for Weblogic 12.2.x JMS

User_LZICS
User_LZICS Member Posts: 10 Blue Ribbon
edited Jun 11, 2021 1:24PM in Java Message Service (JMS)

Hi,

in Weblogic 12.2.1.4 we have a foreign JMS provider named ForeignServer-0 with initial context factory set to org.apache.activemq.jndi.ActiveMQInitialContextFactory.

Destination RESTFUL_QUEUE has local jndi name jms.RESTFUL_QUEUE and remote jndi name - RESTFUL_QUEUE.

Connection factory XAConnectionFactory has local jndi name jms.XAConnectionFactory and remote - XAConnectionFactory.

In our java MDB (Eclipse) we have @ActivationConfigProperty as follows:

@MessageDriven(activationConfig = {

      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

      @ActivationConfigProperty(propertyName = "destinationJndiName", propertyValue = "RESTFUL_QUEUE"),

      @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),

      @ActivationConfigProperty(propertyName="connectionFactoryJndiName", propertyValue="XAConnectionFactory")

      })

At Weblogic server start there is an error:

<BEA-010061> <The Message-Driven EJB RestfulServiceMDB is unable to connect to the JMS destination RESTFUL_QUEUE. The Error was:

The destination for the MessageDrivenBean RestfulServiceMDB could not be resolved at this time. Please ensure the destination is available at the JNDI name RESTFUL_QUEUE.

What am I doing wrong?


Thank you,

Vitaly