[jboss-user] [EJB 3.0] - Client-interceptor
vummarao
do-not-reply at jboss.com
Sun Aug 26 05:29:53 EDT 2007
Version: jboss-4.2.0 (default config), EJB
I have a requirement of sending in an extra-arg from the client to the server for every remote call, and the Interceptor on the server would validate this extra arg.
I was able to successfully add the Interceptor on the server by adding to the ejb-jar.xml
<ejb-jar>
<assembly-descriptor>
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>
com.acme.MyServerInterceptor
</interceptor-class>
</interceptor-binding>
</assembly-descriptor>
</ejb-jar>
The client side interceptor I have added to the StandardJboss.xml, to the stateless-rmi-invoker proxy-binding, does not get invoked.
The only Interceptors I could see on the client are these
org.jboss.ejb3.remoting.IsLocalInterceptor
org.jboss.aspects.security.SecurityClientInterceptor
org.jboss.aspects.tx.ClientTxPropagationInterceptor
org.jboss.aspects.remoting.InvokeRemoteInterceptor
These interceptors are getting picked up from StatelessSessionClientInterceptors entry of server\default\deploy\ejb3-interceptors-aop.xml
How do I add the client-interceptor, to add this extra arg to the contextData and beable to read this on the server.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078104#4078104
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078104
More information about the jboss-user
mailing list