public class CacheJndiTmFactory extends Object implements javax.cache.configuration.Factory<TransactionManager>
Factory<TransactionManager>
interface that is using JNDI names to find TM.
Note that create()
method iterates by JNDI names and returns the first found
TransactionManager
instance at context.
Constructor and Description |
---|
CacheJndiTmFactory()
Creates uninitialized jndi TM lookup.
|
CacheJndiTmFactory(String... jndiNames)
Creates generic TM lookup with given jndi names.
|
Modifier and Type | Method and Description |
---|---|
TransactionManager |
create() |
Map<?,?> |
getInitialContextEnvironment()
Gets initial context environment map.
|
String[] |
getJndiNames()
Gets a list of JNDI names.
|
void |
setInitialContextEnvironment(Map<?,?> environment)
Sets initial context environment map that will be used
in
InitialContext.InitialContext(Hashtable) constructor. |
void |
setJndiNames(String... jndiNames)
Sets JNDI names used by this TM factory.
|
public CacheJndiTmFactory()
public CacheJndiTmFactory(String... jndiNames)
jndiNames
- JNDI names that is used to find TM.public String[] getJndiNames()
public void setJndiNames(String... jndiNames)
jndiNames
- JNDI names that is used to find TM.public Map<?,?> getInitialContextEnvironment()
public void setInitialContextEnvironment(Map<?,?> environment)
InitialContext.InitialContext(Hashtable)
constructor.environment
- Initial context environment map.public TransactionManager create()
create
in interface javax.cache.configuration.Factory<TransactionManager>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023