tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruault Gaetan <grua...@sopragroup.com>
Subject binding.jms and security
Date Thu, 10 Nov 2011 13:37:47 GMT
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.



Mime
View raw message