0 Replies Latest reply on Jul 27, 2007 6:45 AM by sys user

    How to connect to a secured queue from MDB?

    sys user Master

      I've asked this question weeks ago but didn't get any reply. Please help!

      I have a secured queue which was configured correctly since I can read the messages from a jms client by creating the connection with username/password . Now I need to have a MDB to read it. I really don't know how to do it. I have the following annotation in the MDB:

      @MessageDriven(mappedName = "jms/QueueListner", activationConfig = {
       @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
       ,@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
       ,@ActivationConfigProperty(propertyName="destination", propertyValue="/queue/test")
       ,@ActivationConfigProperty(propertyName="providerAdapterJNDI", propertyValue="java:/DefaultJMSProvider")
      // ,@ActivationConfigProperty(propertyName="user", propertyValue="qreader")
      // ,@ActivationConfigProperty(propertyName="pass", propertyValue="qpassword")
      })
      

      The two remarked lines were added by myself. But I don't know the property name keywords of username/password.