Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to listen to remote Topic in MDB 3.0

 
Nivetha Shri
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

Am using Jboss-4.2.3GA bundled with EJB-3.0

Am using MDB and I want to listen to a remote topic bound in a different system.

Am using the below specified annotation and it creates a new topic.
Is there any means through which i can specify the ip adresss of the remote system where my topic is bound?

@MessageDriven(name = "Sample", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/MyTopic"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "AUTO_ACKNOWLEDGE"),
})
@ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "myParameter= 'xxx'")

Also, is there any means through which i can specify the message selector dynamically in MDB?

Any help will be of great use..

Regards
Nivetha
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic