org.quartz.jobs.ee.jms
Class JmsHelper
java.lang.Object
org.quartz.jobs.ee.jms.JmsHelper
public class JmsHelper
- extends java.lang.Object
Utility class that aids in the processing of JMS based jobs and sending
of javax.jms.Message
- Author:
- Weston M. Price
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_CONTEXT_FACTORY
public static final java.lang.String INITIAL_CONTEXT_FACTORY
- See Also:
- Constant Field Values
PROVIDER_URL
public static final java.lang.String PROVIDER_URL
- See Also:
- Constant Field Values
PRINCIPAL
public static final java.lang.String PRINCIPAL
- See Also:
- Constant Field Values
CREDENTIALS
public static final java.lang.String CREDENTIALS
- See Also:
- Constant Field Values
JMS_CONNECTION_FACTORY_JNDI
public static final java.lang.String JMS_CONNECTION_FACTORY_JNDI
- See Also:
- Constant Field Values
JMS_DESTINATION_JNDI
public static final java.lang.String JMS_DESTINATION_JNDI
- See Also:
- Constant Field Values
JMS_USER
public static final java.lang.String JMS_USER
- See Also:
- Constant Field Values
JMS_PASSWORD
public static final java.lang.String JMS_PASSWORD
- See Also:
- Constant Field Values
JMS_ACK_MODE
public static final java.lang.String JMS_ACK_MODE
- See Also:
- Constant Field Values
JMS_USE_TXN
public static final java.lang.String JMS_USE_TXN
- See Also:
- Constant Field Values
JMS_MSG_FACTORY_CLASS_NAME
public static final java.lang.String JMS_MSG_FACTORY_CLASS_NAME
- See Also:
- Constant Field Values
getInitialContext
public static javax.naming.InitialContext getInitialContext(JobDataMap jobDataMap)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
isDestinationSecure
public static boolean isDestinationSecure(JobDataMap jobDataMap)
closeResource
public static void closeResource(java.lang.Object resource)
- Closes a resource that has a
close()
method.
- Parameters:
resource
- the resource to close.
useTransaction
public static boolean useTransaction(JobDataMap jobDataMap)
getMessageFactory
public static JmsMessageFactory getMessageFactory(java.lang.String factoryName)
throws JmsJobException
- Creates the
JmsMessageFactory
- Parameters:
factoryName
-
- Returns:
-
- Throws:
JmsJobException
Copyright 2001-2019, Terracotta, Inc.