You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Ruault Gaetan <gr...@sopragroup.com> on 2011/11/10 14:37:47 UTC
binding.jms and security
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.