activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From newUser06 <bhuvanalakshm...@gmail.com>
Subject Re: Active MQ broker is created even without config
Date Fri, 15 Feb 2013 22:57:37 GMT
Thank you for trying to reproduce. I removed the plugins and tried but still
no luck.

I changed the broker URL from vm://localhost to tcp://localhost:61616 and i
was able to get connection in my second application without any issues.

Configuration used in second application to create a connectionfactory to a
broker which was already created my first application 

BEFORE 

<bean id="springJmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory"
		destroy-method="stop">
		<property name="connectionFactory">
			<bean class="org.apache.activemq.ActiveMQConnectionFactory">
				<property name=&quot;brokerURL&quot; value=&quot;&lt;b>vm://localhost*"
/>
 				<property name="sendTimeout" value="300000" />
				<property name="prefetchPolicy">
					<bean class="org.apache.activemq.ActiveMQPrefetchPolicy">
						<property name="topicPrefetch" value="100"/>					
					</bean>
				</property>
			</bean>
		</property>
	</bean>


AFTER 

<bean id="springJmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory"
		destroy-method="stop">
		<property name="connectionFactory">
			<bean class="org.apache.activemq.ActiveMQConnectionFactory">
				<property name=&quot;brokerURL&quot;
value=&lt;b>"tcp://localhost:61616"* />
 				<property name="sendTimeout" value="300000" />
				<property name="prefetchPolicy">
					<bean class="org.apache.activemq.ActiveMQPrefetchPolicy">
						<property name="topicPrefetch" value="100"/>					
					</bean>
				</property>
			</bean>
		</property>
	</bean> 	


I dont actually understand why it worked, Is there a difference can you
please help me understand it ? Thanks again for the quick reply. 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Active-MQ-broker-is-created-even-without-config-tp4663390p4663564.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message