The problem I am facing is that:
I have 2 services in my composite. One for which I don't want to apply any
security policy but for the other, it should be secured. But thought I don't
specify a requires attribute to my 2nd service, the policy gets engaged to
that as well. Am I doing something wrong or is it implemented that way in
Tuscany 1.6? Any limitations?


Here's my definitions.xml:
*
*
*
*
*<?xml version="1.0" encoding="ASCII"?>*
*
*
*<definitions xmlns="http://www.osoa.org/xmlns/sca/1.0"*
*  targetNamespace="http://ca.com/ucf"; xmlns:sca="
http://www.osoa.org/xmlns/sca/1.0"*
*  xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; xmlns:ucf="
http://ca.com/ucf";>*
*
*
*  <sca:intent name="authToken" constrains="sca:binding.jms sca:binding.ws">
*
*    <description>Authentication and Authorization Intent on WS and
JMS</description>*
*  </sca:intent>*
*
*
*  <sca:policySet name="JMSTokenAuthenticationPolicySet"
provides="ucf:authToken"*
*    appliesTo="sca:binding.jms">*
*    <ucf:JMSAuthTokenPolicy tokenName="ucf:AuthToken"/>*
*  </sca:policySet>*
*
*
*  <sca:policySet name="WSTokenAuthenticationPolicySet"
provides="ucf:authToken"*
*    appliesTo="sca:binding.ws">*
*    <ucf:WSAuthTokenPolicy tokenName="ucf:AuthToken"/>*
*  </sca:policySet>*
*</definitions>*



And here's my composite file.

*
*
*<?xml version="1.0" encoding="UTF-8"?>*
*<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"; xmlns:ucf="
http://ca.com/ucf"*
*           targetNamespace="http://ca.com/ucf/BrokerService"*
*           name="BrokerService_Server_Composite">  *
*   <component name="BrokerServiceComponent">    *
*      <implementation.java
class="com.ca.ucf.broker.sca.server.BrokerServiceImpl"/>    *
*      <service name="BrokerService" requires="ucf:authToken">      *
*         <interface.java interface="com.ca.ucf.remote.sca.BrokerService"/>
     *
*         <binding.sca/>      *
*         <binding.ws uri="http://garan10-xp:8020/ucf/BrokerService"/>    *
*      </service>  *
*   </component>    *
*   <component name="SecurityServiceComponent">    *
*      <implementation.java
class="com.ca.ucf.remote.sca.security.SecurityServiceImpl"/>    *
*      <service name="SecurityService">      *
*         <interface.java
interface="com.ca.ucf.remote.sca.SecurityService"/>      *
*         <binding.sca/>      *
*         <binding.ws uri="http://garan10-xp:8020/ucf/SecurityService"/>
*
*      </service>  *
*   </component>  *
*</composite>*

Reply via email to