1

I am trying to integrate Cyber Ark (security management) with Spring and we use Mule as our ESB

<jms:connector 
                        name="jmsConnector"
                        jndiProviderUrl="${tibjmsURL}"
                        connectionFactoryJndiName="${tibjmsConnFactory}"
                        username="${tibjndiUser}" 
                        jndiInitialFactory="${tibjndiInitialFactoryClassName}"                                         
                        specification="1.1"
                        createMultipleTransactedReceivers="true"
                        numberOfConcurrentTransactedReceivers="1"
           >

           <spring:property name="password">
                <ref bean="idsJmsPassword"/>
           </spring:property>

I am trying to get my password from the cyber ark and that is injected as a spring bean.Any one done this before? How do i inject a password into the JMS connector (tag show in the code)?Currently it loads it from a property file.

Charles
  • 50,943
  • 13
  • 104
  • 142
Sunil M
  • 95
  • 1
  • 11

1 Answers1

1

I've tested your configuration above with Mule 3.1.2 and, provided you fix the ref element to be in the Spring namespace:

<spring:ref bean="idsJmsPassword"/>

and provided idsJmsPassword is actually a String, I confirm setPassword() is called on org.mule.transport.jms.JmsConnector with the value of idsJmsPassword.

This should then allow you to achieve your goal.

David Dossot
  • 33,403
  • 4
  • 38
  • 72