org.objectweb.jonas_ejb.container.JMessageEndpoint Class Reference

Collaboration diagram for org.objectweb.jonas_ejb.container.JMessageEndpoint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JMessageEndpoint (JMdbEndpointFactory bf, MessageDrivenBean mdb)
TimerService getTimerService () throws IllegalStateException
Identity getCallerIdentity ()
Principal getCallerPrincipal ()
boolean isCallerInRole (Identity role)
boolean isCallerInRole (java.lang.String roleLink)
void setRollbackOnly ()
boolean getRollbackOnly ()
EJBHome getEJBHome ()
EJBLocalHome getEJBLocalHome ()
Properties getEnvironment ()
UserTransaction getUserTransaction () throws IllegalStateException
void deliverTimeout (Timer timer)

Detailed Description

Generic interposed class for Message Endpoints This class presents these interfaces, depending on object reached: MessageDrivenContext interface to the bean instance
Author:
Philippe Coq, Philippe Durieux

Christophe Ney (Easier Enhydra integration)

Definition at line 61 of file JMessageEndpoint.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JMessageEndpoint.JMessageEndpoint JMdbEndpointFactory  bf,
MessageDrivenBean  mdb
 

constructor

Parameters:
bf The MDB Endpoint Factory
mdb The Message Driven Bean

Definition at line 85 of file JMessageEndpoint.java.

References org.objectweb.jonas_ejb.container.JMdbEndpointFactory.getTransactionAttribute(), and org.objectweb.jonas_ejb.container.JFactory.getTransactionManager().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_ejb.container.JMessageEndpoint.deliverTimeout Timer  timer  ) 
 

Deliver a timeout to the bean

Parameters:
timer timer whose expiration caused this notification.

Definition at line 297 of file JMessageEndpoint.java.

References org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), org.objectweb.jonas_ejb.container.JMessageEndpoint.getRollbackOnly(), org.objectweb.jonas_ejb.container.JFactory.postInvoke(), org.objectweb.jonas_ejb.container.JFactory.preInvoke(), and org.objectweb.jonas_ejb.container.RequestCtx.sysExc.

Referenced by org.objectweb.jonas_ejb.container.JMdbEndpointFactory.notifyTimeout().

Here is the call graph for this function:

Identity org.objectweb.jonas_ejb.container.JMessageEndpoint.getCallerIdentity  ) 
 

Obtains the java.security.Identity of the caller. disallowed in messagedriven bean method because there is no security context

Deprecated:
Exceptions:
java.lang.IllegalStateException always

Definition at line 140 of file JMessageEndpoint.java.

Principal org.objectweb.jonas_ejb.container.JMessageEndpoint.getCallerPrincipal  ) 
 

Returns:
the java.security.Principal that identifies the caller.
Exceptions:
IllegalStateException if there is no principal

Definition at line 149 of file JMessageEndpoint.java.

References org.objectweb.jonas_ejb.container.JFactory.dd, org.objectweb.jonas_ejb.container.PrincipalFactory.getCallerPrincipal(), org.objectweb.jonas_ejb.container.JFactory.getContainer(), org.objectweb.jonas_ejb.container.JContainer.getPrincipalFactory(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getRunAsRole(), org.objectweb.security.context.SecurityCurrent.getSecurityContext(), and org.objectweb.security.context.SecurityCurrent.setSecurityContext().

Here is the call graph for this function:

EJBHome org.objectweb.jonas_ejb.container.JMessageEndpoint.getEJBHome  ) 
 

Is disallowed. There is no home for message driven bean.

Exceptions:
IllegalStateException Always.

Definition at line 248 of file JMessageEndpoint.java.

EJBLocalHome org.objectweb.jonas_ejb.container.JMessageEndpoint.getEJBLocalHome  ) 
 

Is disallowed. There is no local home for message driven bean.

Exceptions:
IllegalStateException Always.

Definition at line 257 of file JMessageEndpoint.java.

Properties org.objectweb.jonas_ejb.container.JMessageEndpoint.getEnvironment  ) 
 

Deprecated:
Use the JNDI naming context java:comp/env instead.
Returns:
properties for the bean.

Definition at line 266 of file JMessageEndpoint.java.

boolean org.objectweb.jonas_ejb.container.JMessageEndpoint.getRollbackOnly  ) 
 

Tests if the transaction has been marked for rollback only.

Returns:
True if transaction has been marked for rollback.

Definition at line 218 of file JMessageEndpoint.java.

References org.objectweb.jonas_ejb.container.JFactory.isTxBeanManaged().

Referenced by org.objectweb.jonas_ejb.container.JMessageEndpoint.deliverTimeout().

Here is the call graph for this function:

TimerService org.objectweb.jonas_ejb.container.JMessageEndpoint.getTimerService  )  throws IllegalStateException
 

Get access to the EJB Timer Service.

Returns:
the EJB Timer Service
Exceptions:
IllegalStateException Thrown if the instance is not allowed to use this method

Definition at line 124 of file JMessageEndpoint.java.

References org.objectweb.jonas_ejb.container.JMdbEndpointFactory.getTimerService().

Here is the call graph for this function:

UserTransaction org.objectweb.jonas_ejb.container.JMessageEndpoint.getUserTransaction  )  throws IllegalStateException
 

Obtains the transaction demarcation interface.

Returns:
The UserTransaction interface that the enterprise bean instance can use for transaction demarcation.
Exceptions:
IllegalStateException: Thrown if the instance container does not make the UserTransaction interface available to the instance.

Definition at line 279 of file JMessageEndpoint.java.

References org.objectweb.jonas_ejb.container.JFactory.isTxBeanManaged().

Here is the call graph for this function:

boolean org.objectweb.jonas_ejb.container.JMessageEndpoint.isCallerInRole java.lang.String  roleLink  ) 
 

Test if the caller has a given role.

Exceptions:
java.lang.IllegalStateException for message driven bean because there is no security context available

Definition at line 187 of file JMessageEndpoint.java.

boolean org.objectweb.jonas_ejb.container.JMessageEndpoint.isCallerInRole Identity  role  ) 
 

Test if the caller has a given role.

Deprecated:
Exceptions:
java.lang.IllegalStateException for message driven bean because there is no security context available

Definition at line 177 of file JMessageEndpoint.java.

void org.objectweb.jonas_ejb.container.JMessageEndpoint.setRollbackOnly  ) 
 

Marks the current transaction for rollback. Should be used only if the instance is associated with a transaction

Exceptions:
java.lang.IllegalStateException if the instance is not associated with a transaction

Definition at line 198 of file JMessageEndpoint.java.

References org.objectweb.jonas_ejb.container.JFactory.isTxBeanManaged().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:32 2005 for JOnAS by  doxygen 1.3.9.1