0 Replies Latest reply: Oct 18, 2011 4:23 AM by 894976 RSS

    BEA-010061 + BEA-010096 JCaps queue set up via annotations

    894976
      Hi,
      I was trying to set up jcaps queue but unable to do so. Have created a wl jms queue and it works.Was trying to port over the configuration from the xmls to annotations.
      Spec: WL v 10

      xmls:

      ejb.xml:
      <message-driven>
      <ejb-name>xxxBean</ejb-name>
      <ejb-class>xxxClass</ejb-class>
      <transaction-type>Bean</transaction-type>
      <activation-config>
      <activation-config-property>
      <activation-config-property-name>destinationType</activation-config-property-name>
      <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
      </activation-config-property>
      </activation-config>
      <resource-ref>
      <res-ref-name>jms/SeebeyondFactory</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>
      <resource-ref>
      <res-ref-name>jms/QCF</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>
      </message-driven>

      weblogic.ejb.xml:

      <weblogic-enterprise-bean>
      <ejb-name>xxxBean</ejb-name>
      <message-driven-descriptor>
      <pool>
      <max-beans-in-free-pool>1</max-beans-in-free-pool>
      <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
      </pool>
      <destination-jndi-name>SeeBeyond.Queues.TestQ</destination-jndi-name>
      <connection-factory-jndi-name>SeeBeyond.QueueConnectionFactories.QueueConnectionFactory</connection-factory-jndi-name>
      </message-driven-descriptor>
      <resource-description>
      <res-ref-name>jms/SeebeyondFactory</res-ref-name>
      <jndi-name>SeeBeyond.QueueConnectionFactories.QueueConnectionFactory</jndi-name>
      </resource-description>
      <resource-description>
      <res-ref-name>jms/QCF</res-ref-name>
      <jndi-name>javax.jms.QueueConnectionFactory</jndi-name>
      </resource-description>
      </weblogic-enterprise-bean>

      Code:

      @MessageDriven(mappedName = "SeeBeyond.Queues.TestQ", activationConfig = {
      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
      @ActivationConfigProperty(propertyName="connectionFactoryJndiName",propertyValue="SeeBeyond.QueueConnectionFactories.QueueConnectionFactory"),
      @ActivationConfigProperty(propertyName="destinationJndiName", propertyValue="Queues.TestQ"),
      @ActivationConfigProperty(propertyName="destinationName", propertyValue="Queues.TestQ")
      })
      Error:

      <Oct 17, 2011 10:19:29 AM SGT> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB:xxxMDB is unable to connect to the JMS destination: SeeBeyond.Queues.TestQ. The Error was:
      weblogic.jms.common.InvalidDestinationException: [JMSClientExceptions:055142]Foreign destination, Queue[Queue.TestQ]>

      <Oct 17, 2011 10:19:39 AM SGT> <Warning> <EJB> <BEA-010096> <The Message-Driven EJB: xxxMDB is unable to connect to the JMS destination or bind to JCA
      resource adapter: SeeBeyond.Queues.TestQ. Connection failed after 2 attempts. The MDB will attempt to reconnect/rebind every 10 seconds.
      This log message will repeat every 600 seconds until the condition clears.>


      What should be the right annotation? Thanks.