-
1. Re: Client side security interceptor
starksm64 Nov 26, 2004 12:03 PM (in response to _alex)Write a client interceptor that when deserialized on the client it introduces additional application specific interceptors based on some local configuration file.
-
2. Re: Client side security interceptor
_alex Nov 30, 2004 1:49 AM (in response to _alex)Thank you. This workaround looks interesting. And acceptable for swing client application. But, I think, the extensibility of this solution looks poor.
Does JBoss have any plans/ideas to develop client container?
Alexander -
3. Re: Client side security interceptor
starksm64 Nov 30, 2004 11:06 AM (in response to _alex)There already is a client container in every proxy so all that is needed is an extension to the proxy factory to expose this via an additional interface on the proxy. More generally, JBossAOP already supports this and much more.
-
4. Re: Client side security interceptor
starksm64 Dec 5, 2004 11:41 AM (in response to _alex)The 4.0.1 and 3.2.7 releases will include an extension to expose the existing client container via the following IClientContainer interface:
package org.jboss.proxy; import java.util.ArrayList; import org.jboss.invocation.InvocationContext; /** An interface implemented by the ClientContainer to provide access to * the client proxy interceptors and InvocationContext. * * @author Scott.Stark@jboss.org * @version $Revision: 1.2 $ */ public interface IClientContainer { /** * Access a copy of the proxy container interceptor stack. * @return ArrayList<org.jboss.proxy.Interceptor> */ public ArrayList getInterceptors(); /** * Set the proxy container interceptor stack. * @param interceptors - ArrayList<org.jboss.proxy.Interceptor> to * install as the new interceptor stack */ public void setInterceptors(ArrayList interceptors); /** * Access the InvocationContext associated with the proxy by the * server side proxy factory. The contents of this will depend on * the proxy factory. * @return The proxy creation time InvocationContext */ public InvocationContext getInvocationContext(); }
Any proxy created by the detached invoker framework will be an instance of IClientContainer so that the proxy can be manipulated in the client. See the testsuite org.jboss.test.invokers.test.MultiInvokersUnitTestCase for an example. The testsuite is part of the source download. -