Interceptor Stack in ejb local
mallsub Apr 25, 2004 7:18 AMALL
We are using interceptor stack for some global context parameters. The context is a thread local and we are populating data in Interceptor Stack and getting data in Server side for stateless session beans. It is working fine with remote interface. However, it is not working with local interfaces -- Do interceptors works with local interfaces? If not, how the interceptors are working for local entity beans that uses interceptor for transactions and security.
We are using stateless session bean and using rmi invoker--
<invoker-proxy-binding-name>foo-context-sharing-stateless-rmi-invoker</invoker-proxy-binding-name>
Do we need to use different invoker-proxy-binding instance of rmi-invoker for local interfaces? We used with inheritedThreadLocal also - still did not work.
I' m attaching our jboss.xml there please help us
<!-- Container Configurations -->
<container-configurations>
<container-configuration extends="Standard Stateless SessionBean">
<container-name>foo-context-sharing-stateless-session-bean</container-name>
<invoker-proxy-binding-name>foo-context-sharing-stateless-rmi-invoker</invoker-proxy-binding-name>
<container-interceptors>
com.foo.abc.jboss.ServerContextInterceptor
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
org.jboss.ejb.plugins.LogInterceptor
org.jboss.ejb.plugins.SecurityInterceptor
org.jboss.ejb.plugins.TxInterceptorCMT
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor
<!-- BMT -->
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor
org.jboss.ejb.plugins.TxInterceptorBMT
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
</container-interceptors>
</container-configuration>
</container-configurations>
<!-- Invoker Proxy Bindings -->
<invoker-proxy-bindings>
<invoker-proxy-binding>
foo-context-sharing-stateless-rmi-invoker
<invoker-mbean>jboss:service=invoker,type=jrmp</invoker-mbean>
<proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
<proxy-factory-config>
<client-interceptors>
org.jboss.proxy.ejb.HomeInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.invocation.InvokerInterceptor
com.foo.abc.jboss.ClientContextInterceptor
org.jboss.proxy.ejb.StatelessSessionInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.invocation.InvokerInterceptor
</client-interceptors>
</proxy-factory-config>
</invoker-proxy-binding>
</invoker-proxy-bindings>