public class IlrEJB3SessionFactory
extends ilog.rules.res.session.impl.IlrSessionFactoryBase
IlrEJB3SessionFactory is a session factory for EJB3 rule sessions.
This class provides access to enterprise beans through the common rule session
interfaces.| Constructor and Description |
|---|
IlrEJB3SessionFactory()
Equivalent to
IlrEJB3SessionFactory(Hashtable) called with a
null parameter value. |
IlrEJB3SessionFactory(java.util.Hashtable<?,?> jndiProperties)
Creates an EJB3 rule session factory, saving initial JNDI context
creation properties.
|
| Modifier and Type | Method and Description |
|---|---|
IlrManagementSession |
createManagementSession()
Management sessions are not available when using the EJB packaging,
this method always throws an
UnsupportedOperationException. |
IlrStatefulSession |
createStatefulSession(IlrPath rulesetPath,
java.io.Serializable userData,
java.util.Map<java.lang.String,java.lang.Object> initParameters,
boolean forceUptodate)
Finds a reference to an initialized stateful EJB3 rule session bean.
|
IlrStatefulSession |
createStatefulSession(IlrPath rulesetPath,
java.io.Serializable userData,
java.util.Map<java.lang.String,java.lang.Object> initParameters,
boolean forceUptodate,
boolean enableInterceptor)
Finds a reference to an initialized stateful EJB3 rule session bean.
|
IlrStatelessSession |
createStatelessSession()
Finds a reference to a stateless EJB3 rule session Bean.
|
java.lang.String |
getStatefulLocalJndiName()
Returns the JNDI name for the local stateful session.
|
java.lang.String |
getStatefulRemoteJndiName()
Returns JNDI name for the remote stateful session.
|
java.lang.String |
getStatelessLocalJndiName()
Returns the JNDI name for the local stateless session.
|
java.lang.String |
getStatelessRemoteJndiName()
Returns the JNDI name for the remote stateless session.
|
boolean |
isRemote()
Checks if remote EJBs are being used.
|
void |
setRemote(boolean remote)
Sets the remote flag for this rule session factory.
|
void |
setStatefulLocalJndiName(java.lang.String statefulLocalJndiName)
Sets the JNDI name for the local stateful session.
|
void |
setStatefulRemoteJndiName(java.lang.String statefulRemoteJndiName)
Sets the JNDI name for the remote stateful session.
|
void |
setStatelessLocalJndiName(java.lang.String statelessLocalJndiName)
Sets JNDI name for the local stateless session.
|
void |
setStatelessRemoteJndiName(java.lang.String statelessRemoteJndiName)
Sets the JNDI name for the remote stateless session.
|
public IlrEJB3SessionFactory(java.util.Hashtable<?,?> jndiProperties)
jndiProperties - properties used to create the initial JNDI context. If null,
no properties will be used.public IlrEJB3SessionFactory()
IlrEJB3SessionFactory(Hashtable) called with a
null parameter value.public IlrStatelessSession createStatelessSession() throws IlrSessionCreationException
IlrSessionCreationException - if an error occurred while searching
for the Bean.public IlrStatefulSession createStatefulSession(IlrPath rulesetPath, java.io.Serializable userData, java.util.Map<java.lang.String,java.lang.Object> initParameters, boolean forceUptodate) throws IlrSessionCreationException
createStatefulSession in interface IlrSessionFactorycreateStatefulSession in class ilog.rules.res.session.impl.IlrSessionFactoryBaseIlrSessionCreationException - if an error occurred while searching
for the Bean.rulesetPath - The ruleset path for the session.userData - A serializable object supplied by the user.initParameters - Initialization parameters used by the interceptors if necessary.forceUptodate - Set to true to indicate that the
latest version of the ruleset must be used.public IlrStatefulSession createStatefulSession(IlrPath rulesetPath, java.io.Serializable userData, java.util.Map<java.lang.String,java.lang.Object> initParameters, boolean forceUptodate, boolean enableInterceptor) throws IlrSessionCreationException
IlrSessionCreationException - if an error occurred while searching
for the Bean.rulesetPath - The ruleset path for the session.userData - A serializable object supplied by the user.initParameters - Initialization parameters used by the interceptors if necessary.forceUptodate - Set to true to indicate that the
latest version of the ruleset must be used.enableInterceptor - Set to true to indicate that the interceptors should be enabledpublic IlrManagementSession createManagementSession() throws IlrSessionCreationException
UnsupportedOperationException.IlrSessionCreationException - is never thrown. This method always
throws an UnsupportedOperationException.public boolean isRemote()
true is returned.public void setRemote(boolean remote)
remote - Set to true to use remote beans.public java.lang.String getStatelessLocalJndiName()
public void setStatelessLocalJndiName(java.lang.String statelessLocalJndiName)
statelessLocalJndiName - The JNDI name.public java.lang.String getStatelessRemoteJndiName()
public void setStatelessRemoteJndiName(java.lang.String statelessRemoteJndiName)
statelessRemoteJndiName - The JNDI name.public java.lang.String getStatefulLocalJndiName()
public void setStatefulLocalJndiName(java.lang.String statefulLocalJndiName)
statefulLocalJndiName - The JNDI name.public java.lang.String getStatefulRemoteJndiName()
public void setStatefulRemoteJndiName(java.lang.String statefulRemoteJndiName)
statefulRemoteJndiName - The JNDI name.© Copyright IBM Corp. 1987, 2017