| java.lang.Object com.mockrunner.ejb.Configuration
Configuration | public class Configuration (Code) | | Global configuration options regarding EJB and JNDI.
Usually you do not have to change these options.
|
Configuration | public Configuration()(Code) | | |
Configuration | public Configuration(String userTransactionJNDIName)(Code) | | |
Configuration | public Configuration(String userTransactionJNDIName, boolean bindMockUserTransactionToJNDI)(Code) | | |
getBindMockUserTransactionToJNDI | public boolean getBindMockUserTransactionToJNDI()(Code) | | Get if the mock transaction should be bound to JNDI.
if the mock transaction should be bound to JNDI |
getUserTransactionJNDIName | public String getUserTransactionJNDIName()(Code) | | Get the JNDI name for the user transaction.
the JNDI name for the user transaction |
setBindMockUserTransactionToJNDI | public void setBindMockUserTransactionToJNDI(boolean bindMockUserTransactionToJNDI)(Code) | | Set if the mock transaction should be bound to JNDI.
When the
com.mockrunner.mock.ejb.EJBMockObjectFactory creates a
com.mockrunner.mock.ejb.MockUserTransaction ,
it tries to rebind the transaction to the JNDI tree with the
specified name
Configuration.setUserTransactionJNDIName , the name
javax.transaction.UserTransaction (which is used
by MockEJB and Weblogic) and the name
java:comp/UserTransaction (which is the standard name),
if this option is true .
If this option is false , a mock transaction is created
but not bound to JNDI.
Default is true .
Parameters: bindMockUserTransactionToJNDI - should the mock transaction be bound to JNDI |
|
|