Class JmsQueueNameFactory


  • public class JmsQueueNameFactory
    extends Object
    This class can be used to generate uniformly-formatted JMS queue names for usage in Java, Spring, or Camel code. In the constructor, location is an optional parameter. If it is null, then the names that are generated will not include a field for the location. Generated queue names are of the form: $instanceid.$location.$component.$endpoint $instanceid.$component.$endpoint i.e.: OpenNMS.HQ.RPC.SNMP OpenNMS.Syslogd.BroadcastSyslog
    Author:
    jwhite, Seth
    • Constructor Detail

      • JmsQueueNameFactory

        public JmsQueueNameFactory​(String component,
                                   String endpoint,
                                   String location)
      • JmsQueueNameFactory

        public JmsQueueNameFactory​(String component,
                                   String endpoint)
    • Method Detail

      • getLocation

        public String getLocation()
      • getComponent

        public String getComponent()
      • getName

        public String getName()
      • getNameWithoutLocation

        public String getNameWithoutLocation()
      • getNameWithLocation

        public String getNameWithLocation​(String location)
      • getProperties

        public Properties getProperties()
        This method will return both queue name variants in a Properties list so that you can easily use it with a PropertiesComponent in a Spring context.