|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.ejb21.JSessionSwitch org.ow2.jonas.lib.ejb21.JStatefulSwitch
public class JStatefulSwitch
JStatefulSwitch is the implementation of JSessionSwitch dedicated to the Stateful Session Bean.
Field Summary |
---|
Fields inherited from class org.ow2.jonas.lib.ejb21.JSessionSwitch |
---|
bf, mylocal, myremote, mytimer |
Constructor Summary | |
---|---|
JStatefulSwitch(JStatefulFactory bf)
constructor. |
Method Summary | |
---|---|
void |
bindICtx(Transaction tx,
JStatefulContext bctx)
At each create, bind the Context to the transaction |
boolean |
canPassivate()
|
void |
delistConnections(Transaction tx)
delist all connections of the list at postInvoke. |
void |
enlistConnections(Transaction tx)
enlist all connection of the list at preInvoke. |
JSessionContext |
getICtx(Transaction tx)
At each business method, get a BeanContext to run it |
long |
getLastAccessTime()
|
List<IResourceChecker> |
getResources()
|
int |
getSessionId()
|
JStatefulContext |
getStatefulContext()
|
boolean |
isInTransaction()
This is used for remove on stateful session beans only. |
boolean |
isPassivated()
|
void |
noLongerUsed()
This Session is no longer used: - unexport Remote Object - return the Session in the pool |
boolean |
passivate()
Passivate this instance |
void |
releaseICtx(RequestCtx req,
boolean discard)
Release the Context after use. |
void |
saveBeanTx()
Keep the bean opened transaction for later use in other methods. |
void |
saveOpenResources()
Save the open resources. |
void |
setConnectionList(List cl)
Save the Connection List after a create method. |
void |
setMustCommit(boolean mc)
set a flag to remember that the transaction must be committed |
void |
timeoutExpired(Object arg)
The session timeout has expired |
void |
txCompleted()
End of Transaction |
Methods inherited from class org.ow2.jonas.lib.ejb21.JSessionSwitch |
---|
getBeanFactory, getLocal, getRemote, startTimer, stopTimer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JStatefulSwitch(JStatefulFactory bf) throws RemoteException
bf
- The Bean Factorysid
- the unique statefulSession ident
RemoteException
Method Detail |
---|
public int getSessionId()
public boolean canPassivate()
public boolean isPassivated()
public boolean passivate()
public void setConnectionList(List cl)
public void enlistConnections(Transaction tx)
enlistConnections
in class JSessionSwitch
public void delistConnections(Transaction tx)
delistConnections
in class JSessionSwitch
public void timeoutExpired(Object arg)
arg
- Not Used.public JStatefulContext getStatefulContext()
public JSessionContext getICtx(Transaction tx)
getICtx
in class JSessionSwitch
tx
- The Transaction Context
public void bindICtx(Transaction tx, JStatefulContext bctx)
tx
- The current Transaction Contextbctx
- The Context to bindpublic void releaseICtx(RequestCtx req, boolean discard)
releaseICtx
in class JSessionSwitch
tx
- The current Transaction Contextdiscard
- if true, instance must be discardedpublic void noLongerUsed()
noLongerUsed
in class JSessionSwitch
public void txCompleted()
public boolean isInTransaction()
public void setMustCommit(boolean mc)
setMustCommit
in class JSessionSwitch
public void saveBeanTx()
saveBeanTx
in class JSessionSwitch
public void saveOpenResources()
public long getLastAccessTime()
public List<IResourceChecker> getResources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |