Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB and Password protected JMS Queue

Saravanan Viswanathan
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

We have successfully configured a Foreign JMS Server on our Weblogic and would like to configure a MDB to listen on a Queue. The queue is on the foreign server as well and it is password protected. How can I supply the userName and password credentials to the MDB so that weblogic invokes a connection with userName and Password.

Now, its invoking the default
QueueConnection qConnection = qConnectionFactory.createQueueConnection();
instead of the one with userName and password
QueueConnection qConnection = qConnectionFactory.createQueueConnection(userName, password);

Please advise what configuration settings should be done on ejb-jar.xml and weblogic-ejb-jar.xml file or any other place in the weblogic admin console.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic