[jboss-user] [Messaging, JMS & JBossMQ] - How to connect to a secured queue from MDB?

jsnhsu do-not-reply at jboss.com
Fri Jul 27 06:45:48 EDT 2007


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")
  | 		, at ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
  | 		, at ActivationConfigProperty(propertyName="destination", propertyValue="/queue/test")
  | 		, at ActivationConfigProperty(propertyName="providerAdapterJNDI", propertyValue="java:/DefaultJMSProvider")
  | //		, at ActivationConfigProperty(propertyName="user", propertyValue="qreader")
  | //		, at 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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068154#4068154

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068154



More information about the jboss-user mailing list