Hi Michael Some comments in line...
Regards Simon On Fri, Oct 31, 2008 at 4:34 PM, Michael Frey <[EMAIL PROTECTED]> wrote: > Hi, > > as part of my thesis I'm working on my own policy extension based upon > the JDKLoggingPolicy. So far, I have a few questions about policies and > interceptors: > > I've tried to bind the JDKLoggingPolicy to a reference or a service by > setting the requires attribute in the composite. I've noticed that the > JDKLoggingPolicy constrains to "implementation.java", but I'm still > confused why it is not possible to "bind" the policy to a > service/reference instead of a implementation. The JDKLoggingPolicy has > all the necessary classes (JDKLoggingServicePolicyProvider and > JDKLoggingReferencePolicyProvider) . Not sure what you mean by "bind" here. You can add the requires attribute to the composite, composite, reference, service etc and, during model processing, the policy that satisfies the specified intent will be associated with various artifacts in the in memory SCA model but utilmately, in order to effect the specified QoS behaviour, they have to be associate with a specific binding or a specific implementation. Implementations and bindings are the things that are really active ar tuntime. I can give you more detail on what is going on under the covers if that helps. > > > I've also tried to determine the address of a client in a web service > based application. I had a look on the msg object in the invocation > chain which is passed through the interceptors of the chain. I've > accessed via msg.getFrom().getURI() the URI but all I get is a "/". If I > access the "web service application" through the tomcat manager I get a > " AddServiceComponent/$self$.AddService". I've expected to read some > kind of address in the URI field. Has somebody an idea how to get the > hostname or ip of the client inside the policy? Hmmm, tricky. The target URI is calculated inside the binding and probably isn't in the message directly. at the point at which the policy has access to it. Let me put it in the debugger and see what's available. As an aside we're having a bit or a reoganization of how policies are appplied to bindings at the moment. If this turns out to be an issue we can look at it in that context. Any help gratefully received of course ;-) I can give more details on this as well. > > > Probably somebody can point me into the right direction or to an answer > in the documentation. Thanks in advance! > > Best regards, > Michael >
