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") })