org.ow2.jonas.lib.ejb21
Class JMessageEndpointProxy

java.lang.Object
  extended by org.ow2.jonas.lib.ejb21.JMessageEndpointProxy
All Implemented Interfaces:
InvocationHandler

public class JMessageEndpointProxy
extends Object
implements 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  MessageDrivenBean mdb
           
protected  TransactionManager tm
           
 
Constructor Summary
JMessageEndpointProxy(JMdbEndpointFactory bf, MessageDrivenBean mdb, JMessageEndpoint ep)
          constructor
 
Method Summary
 Object invoke(Object obj, Method method, 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 MessageDrivenBean mdb

tm

protected TransactionManager tm
Constructor Detail

JMessageEndpointProxy

public JMessageEndpointProxy(JMdbEndpointFactory bf,
                             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 Object invoke(Object obj,
                     Method method,
                     Object[] aobj)
              throws Throwable,
                     NoSuchMethodException,
                     ResourceException,
                     Exception
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable
NoSuchMethodException
ResourceException
Exception


Copyright © 2010 OW2 Consortium. All Rights Reserved.