I think you can solve this by having ConnectionFactory in binding like
below

 

<binding.jms name="jmsbinding"
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFa
ctory" 

                 jndiURL="tcp://localhost:61616" >

               

  <destination name="DestQueueA" />

               <connectionFactory name="ConnectionFactory"
create="always" >      

                 <property name="UserName"
type="xsd:string">user</property>      

                 <property name="Password"
type="xsd:string">pwd</property>   

                </connectionFactory>

               

                <response>

                  <destination name="ResQueueA" />

                                <connectionFactory
name="ConnectionFactory" create="always" >      

 
<property name="UserName" type="xsd:string"> user </property>      

 
<property name="Password" type="xsd:string"> pwd </property>   

                                 </connectionFactory>                

                    </response>

</binding.jms >

 

Though I never tried the above example.

 

Thanks,

-Nagamohan

 

From: Blue Diamond [mailto:gvnan...@gmail.com] 
Sent: Friday, March 19, 2010 12:34 PM
To: user@tuscany.apache.org
Subject: Username/Password in JMS Binding

 

Hi,

 

Is there a way to give username/password values to create a connection
to a JMS server while defining JMS binding type?

 

I am not able to see any credential specific property
(element/attribute) in <binding.jms/> that allows these values to be
passed to the initialContextFactory.


Is there any example available?

 

Thanks,

Anil

Reply via email to