|
||||||||||
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.JStatelessSwitch
public class JStatelessSwitch
JStatelessSwitch is the implementation of JSessionSwitch dedicated to the Stateless Session Bean.
Field Summary |
---|
Fields inherited from class org.ow2.jonas.lib.ejb21.JSessionSwitch |
---|
bf, mylocal, myremote, mytimer |
Constructor Summary | |
---|---|
JStatelessSwitch(JStatelessFactory bf)
constructor. |
Method Summary | |
---|---|
void |
delistConnections(Transaction tx)
This is not used for stateless |
void |
enlistConnections(Transaction tx)
This is not used for stateless |
JSessionContext |
getICtx(Transaction tx)
get an initialized Bean Context |
MessageContext |
getMsgContext()
|
JServiceEndpoint |
getServiceEndpoint()
|
void |
noLongerUsed()
This Session is no longer used. |
void |
releaseICtx(RequestCtx req,
boolean discard)
release the bean context. |
void |
saveBeanTx()
This do nothing for stateless |
void |
setMustCommit(boolean mc)
This is not used for stateless |
void |
timeoutExpired(Object arg)
The session timeout has expired, or a Timer on this bean has expired. |
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 JStatelessSwitch(JStatelessFactory bf) throws RemoteException
bf
- The Bean Factory
RemoteException
- if the constructor failsMethod Detail |
---|
public void timeoutExpired(Object arg)
arg
- Not Used.public JServiceEndpoint getServiceEndpoint()
public MessageContext getMsgContext()
public JSessionContext getICtx(Transaction tx) throws RemoteException
getICtx
in class JSessionSwitch
tx
- Current transaction (not used)
RemoteException
- if context cannot be obtainedpublic void releaseICtx(RequestCtx req, boolean discard)
releaseICtx
in class JSessionSwitch
tx
- Current transaction (not used)public void noLongerUsed()
noLongerUsed
in class JSessionSwitch
public void setMustCommit(boolean mc)
setMustCommit
in class JSessionSwitch
mc
- Not Used.public void enlistConnections(Transaction tx)
enlistConnections
in class JSessionSwitch
tx
- the transaction objectpublic void delistConnections(Transaction tx)
delistConnections
in class JSessionSwitch
tx
- the transaction objectpublic void saveBeanTx()
saveBeanTx
in class JSessionSwitch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |