Return-Path: X-Original-To: apmail-tuscany-user-archive@www.apache.org Delivered-To: apmail-tuscany-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5AFAF9ABF for ; Fri, 18 Nov 2011 14:27:10 +0000 (UTC) Received: (qmail 32530 invoked by uid 500); 18 Nov 2011 14:27:10 -0000 Delivered-To: apmail-tuscany-user-archive@tuscany.apache.org Received: (qmail 32491 invoked by uid 500); 18 Nov 2011 14:27:10 -0000 Mailing-List: contact user-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@tuscany.apache.org Delivered-To: mailing list user@tuscany.apache.org Received: (qmail 32483 invoked by uid 99); 18 Nov 2011 14:27:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 14:27:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simonslaws@googlemail.com designates 209.85.220.53 as permitted sender) Received: from [209.85.220.53] (HELO mail-dy0-f53.google.com) (209.85.220.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 14:27:03 +0000 Received: by dyf17 with SMTP id 17so463918dyf.26 for ; Fri, 18 Nov 2011 06:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=c39R5ET1Q/lmVJq8Ob0MM4YS8fzbP2iflShiLtpb+zw=; b=osylGuMv2PsEnbJFNPUMmCvjz7niTp0EJKCRpNnRCTRsJ5XLYoHDAoGlpEy1aDifDi CRKq1fBt7u46RLFGxJiQ4YHRmz5EolN0lwqwHU0kV9xRPEykJgXS+ya/Z6+hfjG9FciA 9XyBpR3sfIX9Ip5Tpfv+P7jfRgQWyCN0WkPls= MIME-Version: 1.0 Received: by 10.182.2.164 with SMTP id 4mr750276obv.49.1321626402423; Fri, 18 Nov 2011 06:26:42 -0800 (PST) Received: by 10.182.11.105 with HTTP; Fri, 18 Nov 2011 06:26:42 -0800 (PST) In-Reply-To: <14315_1321518754_4EC4C6A2_14315_5213_2_9EB67C5D0D55FC4DBEC4F7E6F41EF88D47BAF5@wancyexmbx01.ancy.fr.sopra> References: <9EB67C5D0D55FC4DBEC4F7E6F41EF88D479F3A@wancyexmbx01.ancy.fr.sopra> <9EB67C5D0D55FC4DBEC4F7E6F41EF88D47A321@wancyexmbx01.ancy.fr.sopra> <14315_1321518754_4EC4C6A2_14315_5213_2_9EB67C5D0D55FC4DBEC4F7E6F41EF88D47BAF5@wancyexmbx01.ancy.fr.sopra> Date: Fri, 18 Nov 2011 14:26:42 +0000 Message-ID: Subject: Re: binding.jms and security From: Simon Laws To: user@tuscany.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Nov 17, 2011 at 8:32 AM, Ruault Gaetan wro= te: > > Hi, > > > I have a service defined like this : > > =A0=A0=A0 =A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 initialContextFactory=3D"com.parnasse.socle.hornetq.client.jndi.HornetQCl= ientInitialContextFactory" > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 jndiURL=3D"jnp://pmwebi:1099"> > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 > > > and i need to connect to the jndiurl=A0=A0 with=A0 login/password. > > i have added=A0=A0 requires=3D"authentication"=A0=A0 in > > and defined my definitions.xml=A0 like this: > > =A0=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 targetNamespace=3D"http://www.osoa.org/x= mlns/sca/1.0" > =A0=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 xmlns:sca=3D"http://www.osoa.org/xmlns/s= ca/1.0" > =A0=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 xmlns:tuscany=3D"http://tuscany.apache.o= rg/xmlns/sca/1.0"> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0 =A0=A0=A0 constrains=3D"sca:binding.jms"> > =A0=A0=A0 > > > =A0=A0=A0 =A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0 provides=3D"authentication" > =A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0 appliesTo=3D"sca:binding.jms"> > =A0=A0=A0=A0 > > =A0 > > > but i don' understand how i can add user/password. > Where can i set=A0=A0 user/password for connection ? > Do i need=A0 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 --=20 Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com