|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_ejb.container.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 javax.ejb.MessageDrivenBean |
mdb
|
protected javax.resource.spi.endpoint.MessageEndpoint |
mep
|
protected boolean |
released
|
protected org.objectweb.transaction.jta.TransactionManager |
tm
|
protected int |
txattr
|
protected javax.transaction.xa.XAResource |
xar
|
Constructor Summary | |
---|---|
JMessageEndpoint(JMdbEndpointFactory bf,
javax.ejb.MessageDrivenBean mdb)
constructor |
Method Summary | |
---|---|
void |
deliverTimeout(javax.ejb.Timer timer)
Deliver a timeout to the bean |
java.security.Identity |
getCallerIdentity()
Deprecated. @exception java.lang.IllegalStateException always |
java.security.Principal |
getCallerPrincipal()
|
javax.ejb.EJBHome |
getEJBHome()
Is disallowed. |
javax.ejb.EJBLocalHome |
getEJBLocalHome()
Is disallowed. |
java.util.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. |
javax.ejb.TimerService |
getTimerService()
Get access to the EJB Timer Service. |
javax.transaction.UserTransaction |
getUserTransaction()
Obtains the transaction demarcation interface. |
javax.transaction.xa.XAResource |
getXAResource()
|
boolean |
isCallerInRole(java.security.Identity role)
Deprecated. @throws java.lang.IllegalStateException for message driven bean because there is no security context available |
boolean |
isCallerInRole(java.lang.String roleLink)
Test if the caller has a given role. |
void |
setProxy(javax.resource.spi.endpoint.MessageEndpoint mep)
|
void |
setReleasedState(boolean state)
|
void |
setRollbackOnly()
Marks the current transaction for rollback. |
void |
setXAResource(javax.transaction.xa.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 javax.ejb.MessageDrivenBean mdb
protected javax.resource.spi.endpoint.MessageEndpoint mep
protected int txattr
protected org.objectweb.transaction.jta.TransactionManager tm
protected javax.transaction.xa.XAResource xar
protected boolean released
Constructor Detail |
---|
public JMessageEndpoint(JMdbEndpointFactory bf, javax.ejb.MessageDrivenBean mdb)
bf
- The MDB Endpoint Factorymdb
- The Message Driven BeanMethod Detail |
---|
public void setProxy(javax.resource.spi.endpoint.MessageEndpoint mep)
public javax.transaction.xa.XAResource getXAResource()
public void setXAResource(javax.transaction.xa.XAResource xa)
public boolean getReleasedState()
public void setReleasedState(boolean state)
public javax.ejb.TimerService getTimerService() throws java.lang.IllegalStateException
getTimerService
in interface javax.ejb.EJBContext
java.lang.IllegalStateException
- Thrown if the instance is not allowed to
use this methodpublic java.security.Identity getCallerIdentity()
getCallerIdentity
in interface javax.ejb.EJBContext
public java.security.Principal getCallerPrincipal()
getCallerPrincipal
in interface javax.ejb.EJBContext
java.lang.IllegalStateException
- if there is no principalpublic boolean isCallerInRole(java.security.Identity role)
isCallerInRole
in interface javax.ejb.EJBContext
public boolean isCallerInRole(java.lang.String roleLink)
isCallerInRole
in interface javax.ejb.EJBContext
java.lang.IllegalStateException
- for message driven bean because
there is no security context availablepublic void setRollbackOnly()
setRollbackOnly
in interface javax.ejb.EJBContext
java.lang.IllegalStateException
- if the instance is not associated
with a transactionpublic boolean getRollbackOnly()
getRollbackOnly
in interface javax.ejb.EJBContext
public javax.ejb.EJBHome getEJBHome()
getEJBHome
in interface javax.ejb.EJBContext
java.lang.IllegalStateException
- Always.public javax.ejb.EJBLocalHome getEJBLocalHome()
getEJBLocalHome
in interface javax.ejb.EJBContext
java.lang.IllegalStateException
- Always.public java.util.Properties getEnvironment()
getEnvironment
in interface javax.ejb.EJBContext
public javax.transaction.UserTransaction getUserTransaction() throws java.lang.IllegalStateException
getUserTransaction
in interface javax.ejb.EJBContext
IllegalStateException:
- Thrown if the instance container does
not make the UserTransaction interface available to the
instance.
java.lang.IllegalStateException
public void deliverTimeout(javax.ejb.Timer timer)
timer
- timer whose expiration caused this notification.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |