What if an interceptor in the stack has a call back to a previous interceptor that was removed as a result of the update? Maintain multiple version of the stack until all old references complete? ----- Original Message ----- From: "Rickard Öberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 02, 2001 3:20 PM Subject: Re: [JBoss-dev] JMX service architecture: next gen++
> marc fleury wrote: > > > a stack of ObjectNames and in each "message interceptor mbean" there is a > > > > ObjectName name = message.getNextInterceptorInStack(); > > server.invoke(name, mi) // equivalent dynamic invocation > > ... > > > > whatever there are tons of ways to do that (maybe self contained in MI) > > > Good point. I had missed the "send stack along in invoke" option. That > is indeed superior. Very lightweight and simple. > > The stack could indeed done as: > class InterceptorStack > { > List interceptors; > int idx = 0; > InterceptorStack(List aList) > { > interceptors=aList; > } > > ObjectName getNextInterceptor() > { > return (ObjectName)interceptors.get(idx++); > } > } > --- > So many MI's would be sharing the same list, but with different indices > into it. > > Updating the list would be to simply replace it at the gates. MI's > already in progress using the old version get to finish with that old > version. > > Nice. > > /Rickard > > -- > Rickard Öberg > Software Development Specialist > xlurc - Xpedio Linköping Ubiquitous Research Center > Author of "Mastering RMI" > Email: [EMAIL PROTECTED] > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development