1 Reply Latest reply on Sep 25, 2006 7:12 AM by Juha Moisio

    Partly annotated MDB

    Juha Moisio Newbie

      I have problem with partly annotated MDB.

      In class level I have

      
       @ActivationConfigProperty(propertyName="messagingType", propertyValue="javax.jms.MessageListener"),
       @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
       @ActivationConfigProperty(propertyName="destination", propertyValue="SonicJMS/Queues/fromCustomer"),
       @ActivationConfigProperty(propertyName="acknowledgeMode", propertyValue="AUTO_ACKNOWLEGDE"),
      
      


      and in XML

      
       <activation-config-property>
       <activation-config-property-name>brokerURL</activation-config-property-name>
       <activation-config-property-value>@BROKER_URL@</activation-config-property-value>
       </activation-config-property>
      
       <activation-config-property>
       <activation-config-property-name>Username</activation-config-property-name>
       <activation-config-property-value>Administrator</activation-config-property-value>
       </activation-config-property>
      
       <activation-config-property>
       <activation-config-property-name>Password</activation-config-property-name>
       <activation-config-property-value>Administrator</activation-config-property-value>
       </activation-config-property>
      
      


      I get "Inauthentic Client" from Sonic JCA. If I put Username and Password to Annotations, it works. BrokerURL works from both.

      I'm using JBoss 4.0.4.GA and EJB3 RC9.


      -Juha-



        • 1. Re: Partly annotated MDB
          Juha Moisio Newbie

          Tha BrokerURL doesn't work either. I though it works because in Sonic JCA Adapter, when BrokerURL is null, it is defaulted to tcp://localhost:2506 and on my devel server SonicMQ is installed to default port.... I noticed this when I tried to run app on production server where SonicMQ is running on different port.


          -Juha-