org.objectweb.jonas_ejb.container
Class JMessageEndpointProxy

java.lang.Object
  extended by org.objectweb.jonas_ejb.container.JMessageEndpointProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class JMessageEndpointProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

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)

Field Summary
protected  JMdbEndpointFactory bf
           
protected  JMessageEndpoint ep
           
protected  javax.ejb.MessageDrivenBean mdb
           
protected  org.objectweb.transaction.jta.TransactionManager tm
           
 
Constructor Summary
JMessageEndpointProxy(JMdbEndpointFactory bf, javax.ejb.MessageDrivenBean mdb, JMessageEndpoint ep)
          constructor
 
Method Summary
 java.lang.Object invoke(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] aobj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bf

protected JMdbEndpointFactory bf

ep

protected JMessageEndpoint ep

mdb

protected javax.ejb.MessageDrivenBean mdb

tm

protected org.objectweb.transaction.jta.TransactionManager tm
Constructor Detail

JMessageEndpointProxy

public JMessageEndpointProxy(JMdbEndpointFactory bf,
                             javax.ejb.MessageDrivenBean mdb,
                             JMessageEndpoint ep)
constructor

Parameters:
bf - The MDB Endpoint Factory
sess - The JMS Session
mdb - The Message Driven Bean
thpool - The Thread Pool
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object obj,
                               java.lang.reflect.Method method,
                               java.lang.Object[] aobj)
                        throws java.lang.Throwable,
                               java.lang.NoSuchMethodException,
                               javax.resource.ResourceException,
                               java.lang.Exception
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable
java.lang.NoSuchMethodException
javax.resource.ResourceException
java.lang.Exception