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) .

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?

Probably somebody can point me into the right direction or to an answer
in the documentation. Thanks in advance!

Best regards,
 Michael

Reply via email to