Public Member Functions | |
JMessageDrivenBean (JMdbFactory bf, Session sess, MessageDrivenBean mdb, ThreadPool thpool) | |
TimerService | getTimerService () throws IllegalStateException |
synchronized void | onMessage (Message message) |
Session | getSession () throws JMSException |
void | start () throws JMSException |
void | run () |
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) |
Protected Attributes | |
int | txattr |
int | timerTxAttr |
Christophe Ney (Easier Enhydra integration)
Definition at line 65 of file JMessageDrivenBean.java.
|
constructor
Definition at line 96 of file JMessageDrivenBean.java. References org.objectweb.jonas_ejb.container.JFactory.getTimerTxAttribute(), org.objectweb.jonas_ejb.container.JMdbFactory.getTransactionAttribute(), org.objectweb.jonas_ejb.container.JFactory.getTransactionManager(), org.objectweb.jonas_ejb.container.JMessageDrivenBean.timerTxAttr, and org.objectweb.jonas_ejb.container.JMessageDrivenBean.txattr. |
Here is the call graph for this function:
|
Deliver a timeout to the bean
Definition at line 375 of file JMessageDrivenBean.java. References org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), org.objectweb.jonas_ejb.container.JFactory.postInvoke(), org.objectweb.jonas_ejb.container.JFactory.preInvoke(), org.objectweb.jonas_ejb.container.RequestCtx.sysExc, and org.objectweb.jonas_ejb.container.JMessageDrivenBean.timerTxAttr. Referenced by org.objectweb.jonas_ejb.container.JMdbFactory.notifyTimeout(). |
Here is the call graph for this function:
|
Obtains the java.security.Identity of the caller. disallowed in messagedriven bean method because there is no security context
Definition at line 238 of file JMessageDrivenBean.java. |
|
Obtain the java.security.Principal that identifies the caller. throws a java.lang.IllegalStateException for message driven bean because there is no security context available (EJB v2.0, chapter 14.5.1)
Definition at line 249 of file JMessageDrivenBean.java. |
|
Is disallowed. There is no home for message driven bean.
Definition at line 326 of file JMessageDrivenBean.java. |
|
Is disallowed. There is no local home for message driven bean.
Definition at line 335 of file JMessageDrivenBean.java. |
|
Definition at line 344 of file JMessageDrivenBean.java. |
|
Tests if the transaction has been marked for rollback only.
Definition at line 297 of file JMessageDrivenBean.java. |
|
Return the ServerSession's Session. This must be a Session created by the same Connection which will be dispatching messages to it. The provider will assign one or more messages to the Session and then call start on the ServerSession.
Definition at line 192 of file JMessageDrivenBean.java. |
|
Get access to the EJB Timer Service.
Definition at line 117 of file JMessageDrivenBean.java. References org.objectweb.jonas_ejb.container.JMdbFactory.getTimerService(). |
Here is the call graph for this function:
|
Obtains the transaction demarcation interface.
Definition at line 357 of file JMessageDrivenBean.java. References org.objectweb.jonas_ejb.container.JFactory.isTxBeanManaged(). |
Here is the call graph for this function:
|
Test if the caller has a given role.
Definition at line 269 of file JMessageDrivenBean.java. |
|
Test if the caller has a given role.
Definition at line 259 of file JMessageDrivenBean.java. |
|
A message has been received by the Session. Basically, we have to do: preInvoke + onMessage + postInvoke. No exception should be returned to the caller.
Definition at line 132 of file JMessageDrivenBean.java. References org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), org.objectweb.jonas_ejb.container.RequestCtx.currTx, org.objectweb.jonas_ejb.container.RequestCtx.mustCommit, org.objectweb.jonas_ejb.container.JFactory.postInvoke(), org.objectweb.jonas_ejb.container.JFactory.preInvoke(), org.objectweb.jonas_ejb.container.RequestCtx.sysExc, and org.objectweb.jonas_ejb.container.JMessageDrivenBean.txattr. |
Here is the call graph for this function:
|
Process messages by calling run method on Session. When finished, return the object in the pool. Definition at line 216 of file JMessageDrivenBean.java. References org.objectweb.jonas_ejb.container.JFactory.myClassLoader(), and org.objectweb.jonas_ejb.container.JMdbFactory.releaseServerSession(). |
Here is the call graph for this function:
|
Marks the current transaction for rollback. Should be used only if the instance is associated with a transaction
Definition at line 280 of file JMessageDrivenBean.java. |
|
Cause the session's run method to be called to process messages that were just assigned to it.
Definition at line 203 of file JMessageDrivenBean.java. References org.objectweb.jonas_ejb.container.ThreadPool.addRunnable(). |
Here is the call graph for this function:
|
Transactional attribute for ejbTimeout method. default is TX_REQUIRES_NEW Definition at line 83 of file JMessageDrivenBean.java. Referenced by org.objectweb.jonas_ejb.container.JMessageDrivenBean.deliverTimeout(), and org.objectweb.jonas_ejb.container.JMessageDrivenBean.JMessageDrivenBean(). |
|
Transactional attribute for onMessage method. TX_NOT_SUPPORTED, TX_REQUIRED or TX_NOT_SET (= bean managed) Definition at line 77 of file JMessageDrivenBean.java. Referenced by org.objectweb.jonas_ejb.container.JMessageDrivenBean.JMessageDrivenBean(), and org.objectweb.jonas_ejb.container.JMessageDrivenBean.onMessage(). |