Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MDB and Password protected JMS Queue  RSS feed

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

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.

Thanks,
Saravanan
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!