Hello,
I'm actually using Spring to access an EJB service.
I have overloaded the Class SimpleRemoteStatelessSessionProxyFactoryBean to intercept every remote invocation.
Indeed, I'd like to add a new argument to the method invoked, but I don't know how to modify arguments of the Object MethodInvocation: the method setArguments doesn't exist for this interface.
Can anyone help me ?Code:Protected Object invoke(MethodInvocation invocation) throws Throwable { if(invocation.getMethod().getName().equals("executeOperation")) { ... } return super.invoke(invocation); }
Thanks in advance.


Reply With Quote