GeeCON Prague 2014*
The moose likes JBoss/WildFly and the fly likes How to listen to remote Topic in MDB 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to listen to remote Topic in MDB 3.0" Watch "How to listen to remote Topic in MDB 3.0" New topic
Author

How to listen to remote Topic in MDB 3.0

Nivetha Shri
Greenhorn

Joined: Nov 13, 2008
Posts: 10
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
 
GeeCON Prague 2014
 
subject: How to listen to remote Topic in MDB 3.0