|
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.IlrSessionFactoryBase ilog.rules.res.session.IlrPOJOSessionFactory
public class IlrPOJOSessionFactory
Use the IlrPOJOSessionFactory
class to create sessions in Java EE
environments.
A IlrPOJOSessionFactory
object retrieves the Execution Unit (XU) connection
factory from JNDI. It uses the application server configured in the XU.
The following code example shows how to set the execution mode to task execution:
IlrSessionFactory sessionFactory = new IlrPOJOSessionFactory(); IlrSessionRequest request = sessionFactory.createRequest(); request.setRulesetPath(IlrPath.parsePath("/myRuleapp/myRuleset"); request.setTaskName("myTask"); IlrStatelessSession session = sessionFactory.createStatelessSession(); IlrSessionResponse response = session.execute(request)
Constructor Summary | |
---|---|
IlrPOJOSessionFactory()
|
Method Summary | |
---|---|
IlrManagementSession |
createManagementSession()
Returns a new management session. |
IlrStatefulSession |
createStatefulSession(IlrPath rulesetPath,
Serializable userData,
Map<String,Object> initParameters,
boolean forceUptodate,
boolean enableInterceptor)
Returns a stateful rule session. |
IlrStatelessSession |
createStatelessSession()
Returns a stateless rule session. |
Methods inherited from class ilog.rules.res.session.IlrSessionFactoryBase |
---|
createRequest, createStatefulSession, createTraceDAOFactory, isInterceptorEnabled, setInterceptorEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrPOJOSessionFactory()
Method Detail |
---|
public IlrStatelessSession createStatelessSession() throws IlrSessionCreationException
IlrSessionFactory
IlrSessionCreationException
- if an error occurred when the
stateless session was created:
public IlrStatefulSession createStatefulSession(IlrPath rulesetPath, Serializable userData, Map<String,Object> initParameters, boolean forceUptodate, boolean enableInterceptor) throws IlrSessionCreationException
IlrSessionFactory
IlrSessionCreationException
- if an error occurred when the
stateful session was created.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
IlrSessionFactory
IlrSessionCreationException
- if an error occurs when the
management session is created.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |