org.quartz.ee.jta
Class UserTransactionHelper
java.lang.Object
org.quartz.ee.jta.UserTransactionHelper
- public class UserTransactionHelper
- extends java.lang.Object
A helper for obtaining a handle to a UserTransaction...
- Author:
- James House
Constructor Summary |
UserTransactionHelper(java.lang.String userTxURL)
Create a UserTransactionHelper instance with the given settings. |
Method Summary |
java.lang.String |
getUserTxLocation()
|
javax.transaction.UserTransaction |
lookup()
|
void |
setUserTxLocation(java.lang.String userTxURL)
Set the JNDI URL at which the Application Server's UserTransaction can
be found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_USER_TX_LOCATION
public static final java.lang.String DEFAULT_USER_TX_LOCATION
- See Also:
- Constant Field Values
UserTransactionHelper
public UserTransactionHelper(java.lang.String userTxURL)
throws SchedulerConfigException
Create a UserTransactionHelper instance with the given settings.
getUserTxLocation
public java.lang.String getUserTxLocation()
setUserTxLocation
public void setUserTxLocation(java.lang.String userTxURL)
- Set the JNDI URL at which the Application Server's UserTransaction can
be found. If not set, the default value is "java:comp/UserTransaction" -
which works for nearly all application servers.
lookup
public javax.transaction.UserTransaction lookup()
throws SchedulerException
- Throws:
SchedulerException