JmsHelper (Quartz Parent POM 2.0.1 API)

Quartz Java



org.quartz.jobs.ee.jms Class JmsHelper

java.lang.Object
  extended by 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

Field Summary
static String CREDENTIALS
           
static String INITIAL_CONTEXT_FACTORY
           
static String JMS_ACK_MODE
           
static String JMS_CONNECTION_FACTORY_JNDI
           
static String JMS_DESTINATION_JNDI
           
static String JMS_MSG_FACTORY_CLASS_NAME
           
static String JMS_PASSWORD
           
static String JMS_USE_TXN
           
static String JMS_USER
           
static String PRINCIPAL
           
static String PROVIDER_URL
           
 
Method Summary
static void closeResource(Object resource)
          Closes a resource that has a close() method.
static InitialContext getInitialContext(JobDataMap jobDataMap)
           
static JmsMessageFactory getMessageFactory(String factoryName)
          Creates the JmsMessageFactory
static boolean isDestinationSecure(JobDataMap jobDataMap)
           
static boolean useTransaction(JobDataMap jobDataMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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.