org.quartz.jobs.ee.jms
Class JmsHelper
java.lang.Object
org.quartz.jobs.ee.jms.JmsHelper
public class JmsHelper
- extends 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 String INITIAL_CONTEXT_FACTORY
- See Also:
- Constant Field Values
PROVIDER_URL
public static final String PROVIDER_URL
- See Also:
- Constant Field Values
PRINCIPAL
public static final String PRINCIPAL
- See Also:
- Constant Field Values
CREDENTIALS
public static final String CREDENTIALS
- See Also:
- Constant Field Values
JMS_CONNECTION_FACTORY_JNDI
public static final String JMS_CONNECTION_FACTORY_JNDI
- See Also:
- Constant Field Values
JMS_DESTINATION_JNDI
public static final String JMS_DESTINATION_JNDI
- See Also:
- Constant Field Values
JMS_USER
public static final String JMS_USER
- See Also:
- Constant Field Values
JMS_PASSWORD
public static final String JMS_PASSWORD
- See Also:
- Constant Field Values
JMS_ACK_MODE
public static final String JMS_ACK_MODE
- See Also:
- Constant Field Values
JMS_USE_TXN
public static final String JMS_USE_TXN
- See Also:
- Constant Field Values
JMS_MSG_FACTORY_CLASS_NAME
public static final String JMS_MSG_FACTORY_CLASS_NAME
- See Also:
- Constant Field Values
getInitialContext
public static InitialContext getInitialContext(JobDataMap jobDataMap)
throws NamingException
- Throws:
NamingException
isDestinationSecure
public static boolean isDestinationSecure(JobDataMap jobDataMap)
closeResource
public static void closeResource(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(String factoryName)
throws JmsJobException
- Creates the
JmsMessageFactory
- Parameters:
factoryName
-
- Returns:
-
- Throws:
JmsJobException
Copyright 2001-2011,
Terracotta, Inc.