Announcement Announcement Module
Collapse
No announcement yet.
How to configure broker user name and password through xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Got the answer! We can use the UserCredentialsConnectionFactoryAdapter for this

    Comment


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

      http://forum.springsource.org/showth...e-and-password

      Comment

      Working...
      X