On Thu, 31 Jan 2002, Bill Burke wrote: > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Luke > > Taylor > > Sent: Thursday, January 31, 2002 9:32 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-dev] TODO: client side interceptors > > > > > > olger Engels wrote: > > > > > > > > I'm glad to see, that jboss will support pluggable interceptors on the > > > client side, now. You can do cool things with that. Think of: > > > > > > ... > > > > > > > > > > o caching interceptor (for getters) > > > > > > How will that work in practice? Aren't the interceptors stateless, > > without being specific to a particular EJB/component instance? > > > > Well, on the server side, the interceptor chain is uniquely attached to each > container. On the client side, you could have a unique interceptor > chain(instances in memory) attached to each and every proxy. I really like > this idea for EntityBeans. Could be kinda cool. Of course, we'd have to > expand on the metadata to describe this type of thing. > > > > o invocation bundeling (send an array of method invocations and > > return an > > > array of results .. all that in one user transaction) > > > > > > I don't quite get that either - interceptors are meant to be transparent > > to the client code. So how could a client make multiple (sequential) > > invocations and have them bundled into a single request? > > > > You're right here. EJBs have no asynchronous interface like CORBA object do. > Plus, in EJB the request is not exposed like in CORBA as well. >
Some interceptors are transparent, others are not .. Let the dynamic proxy implement the remote interface and all additional interfaces of all interceptors, that add non transparent behaviour to the component. We have already three additional apis: o SecurityAssociation o UserTransaction o ejb methods only the last one is directly implemented by the dynamic proxy. security and transactions are somewhat transcendent/magic. A drawback of multiple interfaces is that you have to cast the object to these particular interfaces in order to use them. Holger _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
