Just use the userName (uppercase N) and password property. This applies to JNDI as well as spring.
Example tomcat config: <Resource name="jms/ConnectionFactory" auth="Container" type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory" brokerURL="tcp://localhost:61616" userName="sudip" password="verySecret" useEmbeddedBroker="false"/> Mario On 11/2/07, sudip <[EMAIL PROTECTED]> wrote: > > The activemq server I am using requires username and password for connection. > I have setup jndi resource in tomcat for the connectionFactory. How do I > provide these auth parameters via tomcat config files or spring config > files?