On Thu, Aug 28, 2008 at 10:04 AM, Tammo van Lessen <[EMAIL PROTECTED]>wrote:
> Matthieu Riou wrote: > > On Thu, Aug 28, 2008 at 6:55 AM, Giorgio M. <[EMAIL PROTECTED] > >wrote: > > > >> Ok, hence can i use interceptor in order to capture a service invocation > >> message? i mean, can i capture single atomic service start event (that > >> compose with the other service the process) instead of the more generic > >> process start event? I need to intercept every single invocation (every > >> single invoke within the BPEL process) and if the user is not > >> authorized, generate an error and stop the process execution. Can I do > >> it with Message Exchange Interceptors?? > >> > > > > Check the method createPartnerRoleChannel in BindingContextImpl. This get > > called anytime a process that uses a new service is deployed. You'll > > probably have to subclass ODEServer to plug in your implementation tough. > > Apropos, is there a reason why we don't use dependency injection? I > think it would ease such configuration issues a lot, though it would > require quite huge refactorings. > We've rejected the option so far for the "lots of dependencies" reason mentioned by Paul. And also the size of the refactoring. Plus for the server itself we don't really need it, that would only be useful to wire up the IL. Plus we already have enough XML :) If one of us had the time I think I'd rather clean up the IL instantiation and configuration code to make it easier to configure it programmatically or through a little script (Rhino for example as we already have it). It could even be Spring friendly for those who would want to use it. I might need to do something like that at some point with SimPEL and the embedded IL as it would be nice to mix and match messaging layers and decouple the messaging stuff from the lifecycle stuff. So if someone want to have some fun with this, be my guest :) Matthieu > > Tammo >
