2 Replies Latest reply on Nov 12, 2009 7:41 AM by Juha Moisio

    JBoss AS 5.10: @ResourceAdapter annotation not working

    Juha Moisio Newbie

      If I specify @ResourceAdapter("sonic-jms-ra.rar") annotation to MDB,
      JBoss still tries to use DefaultJMSProvider and ra is null (ra=null)


      @MessageDriven(name="AS2MessageListener" , activationConfig =
      
       {
       @ActivationConfigProperty(propertyName = "messagingType", propertyValue = "javax.jms.MessageListener"),
       @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
       @ActivationConfigProperty(propertyName = "destination", propertyValue = "SonicJMS/Queues/toas2"),
       @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "AUTO_ACKNOWLEGDE"),
       @ActivationConfigProperty(propertyName = "connectionFactory", propertyValue = "SonicJMS/default/MDBQueueConnectionFactory")
       }
      )
      @ResourceAdapter(value = "sonic-jms-ra.rar")
      @TransactionAttribute(TransactionAttributeType.REQUIRED)
      public class MessageListenerBean implements MessageListener {
      




      DEPLOYMENTS IN ERROR:
       Deployment "jboss.j2ee:ear=AS2Service-EAR.ear,jar=AS2Service-EJB.jar,name=AS2MessageListener,service=EJB3" is in error due to the following reason(s): java.beans.IntrospectionException: No property found for: connectionFactory on JavaBean: org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@a3c7ef(ra=null destination=SonicJMS/Queues/toas2 destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandlerDLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)