Display Name - Job Queue Manager
If you have multiple Job Queue Manager instances running against the same database, you may wish to set the display name. This name is displayed in the database, and will allow you to tell which jobs belong to which Job Queue Manager instance.
If you do not set the display name, it will automatically be set to: <hostname>[<ip>]/queuedJobService
(where <hostname>
is the local host name, and <ip>
is the server IP address).
For example: server01[10.12.1.253]/queuedJobService
Set the Display Name
To set the display name:
- Go to the Tomcat instance that is running Job Queue Manager and open <tomcat_home>\webapps\queuedjobservice\WEB-INF\config\common\service-config.xml in a text editor.
Make a backup copy of this file before making any changes.
-
Locate the following section:
XML<bean id="jobQueueManager" class="au.com.str.jobqueue.server.springImpl.queue.SpringJobQueueManager" scope="singleton"> <property name="jobLocator" ref="jobLocator"/> <property name="jobExecutorList"> <list> <ref bean="xtabWorker1" /> </list> </property> <property name="platformHealthMonitor" ref="platformHealthMonitor"/> <property name="platformReconnectFrequency" value="10000"/> </bean>
-
Add the
displayName
property and set the value to your preferred name. For example:XML<property name="displayName" value="My Job Queue Manager"/>
XML<bean id="jobQueueManager" class="au.com.str.jobqueue.server.springImpl.queue.SpringJobQueueManager" scope="singleton"> <property name="jobLocator" ref="jobLocator"/> <property name="jobExecutorList"> <list> <ref bean="xtabWorker1" /> </list> </property> <property name="platformHealthMonitor" ref="platformHealthMonitor"/> <property name="platformReconnectFrequency" value="10000"/> <property name="displayName" value="My Job Queue Manager"/> </bean>
- Save your changes.
- Restart the Tomcat server that is running Job Queue Manager.