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

JMS Call to Differente Servers  RSS feed

 
Jose Coqueiro
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,

I'd like to know if there is a way to say to MDB's which server it must communicate to.
For example, MDB A communicate to server 192.0.0.5:1099 and the MDB B communicate to server 192.1.1.6:1099. MDB A can communicate only to the specified server.
Is it possbible, separate the server communication among MDB's?

thanks!!!
 
ntumba lobo
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
an MDB doesnt really communicate with a server but rather listen to a destination.
In the MDB you configure which destination it should listen to.
This destination is created by a connection factory (CF) in your application server and this is this CF
that holds the physical info about the jms broker.

So basically you have
MDB1 -> destination1 -> CF1 (192.0.0.5:1099)
MDB2 -> destination2 -> CF2 (192.1.1.6:1099)

Hope that helps
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!