|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.integration.console.session.AbstractSessionManager
public abstract class AbstractSessionManager
Abstract manager that provides some helpful methods used by concrete SessionManager implementations
| Constructor Summary | |
|---|---|
AbstractSessionManager()
|
|
| Method Summary | |
|---|---|
protected void |
bindToJNDI(String businessKey,
org.drools.runtime.StatefulKnowledgeSession session)
Bind given session into JNDI under given JNDI name as business key |
protected Context |
createSubcontext(Context ctx,
Name name)
Utility method to create subcontext in JNDI if needed |
protected int |
getPersistedSessionId(String location)
Retrieves session id from serialized file named jbpmSessionId.ser from given location. |
protected org.drools.runtime.StatefulKnowledgeSession |
lookUpInJNDI(String businessKey)
Looks up session from JNDI by given business key |
protected void |
persistSessionId(String location,
int ksessionId)
Stores gives ksessionId in a serialized file in given location under jbpmSessionId.ser file name |
protected void |
removeFromJNDI(String businessKey)
Removes object bound to given business key from JNDI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jbpm.integration.console.session.SessionManager |
|---|
disposeSession, getSession, getSession, getSession |
| Constructor Detail |
|---|
public AbstractSessionManager()
| Method Detail |
|---|
protected int getPersistedSessionId(String location)
location - directory where jbpmSessionId.ser file should be
protected void persistSessionId(String location,
int ksessionId)
location - directory where serialized file should be storedksessionId - value of ksessionId to be storedprotected org.drools.runtime.StatefulKnowledgeSession lookUpInJNDI(String businessKey)
businessKey - JNDI name to look up
protected void removeFromJNDI(String businessKey)
businessKey - JNDI name to be unbound
protected void bindToJNDI(String businessKey,
org.drools.runtime.StatefulKnowledgeSession session)
businessKey - JNDI name to bind the sessionsession - session to be bind into JNDI
protected Context createSubcontext(Context ctx,
Name name)
throws NamingException
ctx - parent contextname - JNDI name including subcontexts
NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||