0 Replies Latest reply on Jul 6, 2010 6:09 AM by ohughes

    MDB and Dynamic Selector Using System Properties

    ohughes

      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