File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to listen to remote Topic in MDB 3.0
 
Similar Threads
messageListenerInterface doubt
MESSAGE DRIVEN BEAN LISTENING TO A REMOTE QUEUE.
MDB Listenign to remote queue
Singleton MDB in a clustered environment
JBoss and MDB (configuration question)