On Thu, Nov 17, 2011 at 8:32 AM, Ruault Gaetan <[email protected]> wrote:
>
> Hi,
>
>
> I have a service defined like this :
>
>         <service name="HelloWorldService">
>                 <interface.java interface="helloworld.HelloWorldService"/>
>                 <binding.jms requires="authentication"
> initialContextFactory="com.parnasse.socle.hornetq.client.jndi.HornetQClientInitialContextFactory"
>                              jndiURL="jnp://pmwebi:1099">
>
>                     <destination name="/queue/DefaultQueue" create="never"/>
>                 </binding.jms>
>         </service>
>
>
> and i need to connect to the jndiurl   with  login/password.
>
> i have added   requires="authentication"   in <binding.jms>
>
> and defined my definitions.xml  like this:
>
> <sca:definitions xmlns="http://www.osoa.org/xmlns/sca/1.0";
>              targetNamespace="http://www.osoa.org/xmlns/sca/1.0";
>              xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
>              xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0";>
>
> <!-- sca:binding -->
>     <intent name="authentication"
>              constrains="sca:binding.jms">
>     </intent>
>
>
>     <sca:policySet name="specialAuthenticationPolicy"
>             provides="authentication"
>             appliesTo="sca:binding.jms">
>      </sca:policySet>
>
>  </sca:definitions>
>
>
> but i don' understand how i can add user/password.
> Where can i set   user/password for connection ?
> Do i need  add tuscany module in my dependencies ?
>
>
> thanks for your help.
>
>
>

Hi Ruault

I just looked at the 1.x code and we don't have usename/password
authentication for he JMS bindings access to JNDI. To add it a policy
provider would have to be created to read the username/password from
the policy configuration in the definitions.xml file and push that
into the JNDI api as appropriate.

Regards

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to