|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.ejb21.JMessageEndpoint
public class JMessageEndpoint
Generic interposed class for Message Endpoints This class presents these interfaces, depending on object reached: MessageDrivenContext interface to the bean instance
Field Summary | |
---|---|
protected JMdbEndpointFactory |
bf
|
protected MessageDrivenBean |
mdb
|
protected MessageEndpoint |
mep
|
protected boolean |
released
|
protected TransactionManager |
tm
|
protected int |
txattr
|
protected XAResource |
xar
|
Constructor Summary | |
---|---|
JMessageEndpoint(JMdbEndpointFactory bf,
MessageDrivenBean mdb)
constructor |
Method Summary | |
---|---|
void |
deliverTimeout(Timer timer)
Deliver a timeout to the bean |
Identity |
getCallerIdentity()
Deprecated. @exception java.lang.IllegalStateException always |
Principal |
getCallerPrincipal()
|
EJBHome |
getEJBHome()
Is disallowed. |
EJBLocalHome |
getEJBLocalHome()
Is disallowed. |
Properties |
getEnvironment()
Deprecated. Use the JNDI naming context java:comp/env instead. |
boolean |
getReleasedState()
|
boolean |
getRollbackOnly()
Tests if the transaction has been marked for rollback only. |
TimerService |
getTimerService()
Get access to the EJB Timer Service. |
UserTransaction |
getUserTransaction()
Obtains the transaction demarcation interface. |
XAResource |
getXAResource()
|
boolean |
isCallerInRole(Identity role)
Deprecated. @throws java.lang.IllegalStateException for message driven bean because there is no security context available |
boolean |
isCallerInRole(String roleLink)
Test if the caller has a given role. |
Object |
lookup(String name)
Lookup object with given name. |
void |
setProxy(MessageEndpoint mep)
|
void |
setReleasedState(boolean state)
|
void |
setRollbackOnly()
Marks the current transaction for rollback. |
void |
setXAResource(XAResource xa)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JMdbEndpointFactory bf
protected MessageDrivenBean mdb
protected MessageEndpoint mep
protected int txattr
protected TransactionManager tm
protected XAResource xar
protected boolean released
Constructor Detail |
---|
public JMessageEndpoint(JMdbEndpointFactory bf, MessageDrivenBean mdb)
bf
- The MDB Endpoint Factorymdb
- The Message Driven BeanMethod Detail |
---|
public void setProxy(MessageEndpoint mep)
public XAResource getXAResource()
public void setXAResource(XAResource xa)
public boolean getReleasedState()
public void setReleasedState(boolean state)
public TimerService getTimerService() throws IllegalStateException
getTimerService
in interface EJBContext
IllegalStateException
- Thrown if the instance is not allowed to
use this methodpublic Identity getCallerIdentity()
getCallerIdentity
in interface EJBContext
public Principal getCallerPrincipal()
getCallerPrincipal
in interface EJBContext
IllegalStateException
- if there is no principalpublic boolean isCallerInRole(Identity role)
isCallerInRole
in interface EJBContext
public boolean isCallerInRole(String roleLink)
isCallerInRole
in interface EJBContext
IllegalStateException
- for message driven bean because
there is no security context availablepublic void setRollbackOnly()
setRollbackOnly
in interface EJBContext
IllegalStateException
- if the instance is not associated
with a transactionpublic boolean getRollbackOnly()
getRollbackOnly
in interface EJBContext
public EJBHome getEJBHome()
getEJBHome
in interface EJBContext
IllegalStateException
- Always.public EJBLocalHome getEJBLocalHome()
getEJBLocalHome
in interface EJBContext
IllegalStateException
- Always.public Properties getEnvironment()
getEnvironment
in interface EJBContext
public UserTransaction getUserTransaction() throws IllegalStateException
getUserTransaction
in interface EJBContext
IllegalStateException
- Thrown if the instance container does
not make the UserTransaction interface available to the
instance.public void deliverTimeout(Timer timer)
timer
- timer whose expiration caused this notification.public Object lookup(String name)
lookup
in interface EJBContext
name
- given name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |