• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to listen to remote Topic in MDB 3.0

Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..

You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic