@ Override protected Object performInvocation ( Exchange exchange , final Object serviceObject , Method m , Object [ ] paramArray ) throws Exception { // This retrieves the appropriate method from the wrapper class m = serviceObject . getClass ( ) . getMethod ( m . getName ( ) , m . getParameterTypes ( ) ) ; return super . performInvocation ( exchange , serviceObject , m , paramArray ) ; }
This invokes the target operation . We override this method to deal with the fact that the serviceObject is actually an EJB wrapper class . We need to get an equivalent method on the serviceObject class in order to invoke the target operation .