JBoss Community

MDB and Dynamic Selector Using System Properties

created by Osian Hughes in Beginner's Corner - View the full discussion

Hi,

 

I am about to write my first MDB, but I have a requirement for a dynamic selector being built to restrict the messages that is coming to a particular instance of JBossAS within a cluster.  I have seen that it is possible in the configuration files to pass a property, such as ${hostname} (or something similar) into the selector through the use of -D when launching jboss.

 

What I would like to know, is if this is possible through Annotations, as I want to avoid the use of configuration files if possible, but if not, then hey ho ;-)

 

Thanks,
Osh

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community