|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.res.session.impl.IlrSessionFactoryBase ilog.rules.res.session.IlrEJB3SessionFactory
public class IlrEJB3SessionFactory
IlrEJB3SessionFactory
is a session factory for EJB3 rule sessions.
This class provides access to enterprise beans through the common rule session
interfaces.
Constructor Summary | |
---|---|
IlrEJB3SessionFactory()
Equivalent to IlrEJB3SessionFactory(Hashtable) called with a
null parameter value. |
|
IlrEJB3SessionFactory(Hashtable<?,?> jndiProperties)
Creates an EJB3 rule session factory, saving initial JNDI context creation properties. |
Method Summary | |
---|---|
IlrManagementSession |
createManagementSession()
Management sessions are not available when using the EJB packaging, this method always throws an UnsupportedOperationException . |
IlrStatefulSession |
createStatefulSession(IlrPath rulesetPath,
Serializable userData,
Map<String,Object> initParameters,
boolean forceUptodate)
Finds a reference to an initialized stateful EJB3 rule session bean. |
IlrStatefulSession |
createStatefulSession(IlrPath rulesetPath,
Serializable userData,
Map<String,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. |
String |
getStatefulLocalJndiName()
Returns the JNDI name for the local stateful session. |
String |
getStatefulRemoteJndiName()
Returns JNDI name for the remote stateful session. |
String |
getStatelessLocalJndiName()
Returns the JNDI name for the local stateless session. |
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(String statefulLocalJndiName)
Sets the JNDI name for the local stateful session. |
void |
setStatefulRemoteJndiName(String statefulRemoteJndiName)
Sets the JNDI name for the remote stateful session. |
void |
setStatelessLocalJndiName(String statelessLocalJndiName)
Sets JNDI name for the local stateless session. |
void |
setStatelessRemoteJndiName(String statelessRemoteJndiName)
Sets the JNDI name for the remote stateless session. |
Methods inherited from class ilog.rules.res.session.impl.IlrSessionFactoryBase |
---|
createRequest, createTraceDAOFactory, isInterceptorEnabled, setInterceptorEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrEJB3SessionFactory(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.
Method Detail |
---|
public IlrStatelessSession createStatelessSession() throws IlrSessionCreationException
IlrSessionCreationException
- if an error occurred while searching
for the Bean.
public IlrStatefulSession createStatefulSession(IlrPath rulesetPath, Serializable userData, Map<String,Object> initParameters, boolean forceUptodate) throws IlrSessionCreationException
createStatefulSession
in interface IlrSessionFactory
createStatefulSession
in class ilog.rules.res.session.impl.IlrSessionFactoryBase
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
- Initalization 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, Serializable userData, Map<String,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
- Initalization 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 enabled
public 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 String getStatelessLocalJndiName()
public void setStatelessLocalJndiName(String statelessLocalJndiName)
statelessLocalJndiName
- The JNDI name.public String getStatelessRemoteJndiName()
public void setStatelessRemoteJndiName(String statelessRemoteJndiName)
statelessRemoteJndiName
- The JNDI name.public String getStatefulLocalJndiName()
public void setStatefulLocalJndiName(String statefulLocalJndiName)
statefulLocalJndiName
- The JNDI name.public String getStatefulRemoteJndiName()
public void setStatefulRemoteJndiName(String statefulRemoteJndiName)
statefulRemoteJndiName
- The JNDI name.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |