Results 1 to 3 of 3

Thread: How to configure broker user name and password through xml

  1. #1
    Join Date
    May 2012
    Location
    NY
    Posts
    23

    Default How to configure broker user name and password through xml

    The javax.jms.ConnectionFactory has a parameterized metho

    Code:
    createConnection(username, password);
    How do I configure this through xml? My connection factory bean looks like this

    Code:
    <bean id="subCachingConnectionFactory"class="org.springframework.jms.connection.CachingConnectionFactory">
    		<property name="targetConnectionFactory" ref="subConnectionFactory" />
    		<property name="reconnectOnException" value="true"/>
    		<property name="sessionCacheSize" value="1" />
    </bean>

  2. #2
    Join Date
    May 2012
    Location
    NY
    Posts
    23

    Default

    Got the answer! We can use the UserCredentialsConnectionFactoryAdapter for this

  3. #3
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,028

    Default

    Please don't ask the same question in two threads...

    http://forum.springsource.org/showth...e-and-password
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •