activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Active MQ broker is created even without config
Date Sat, 16 Feb 2013 00:51:37 GMT
On 02/15/2013 05:57 PM, newUser06 wrote:
> 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.

Have you tried using the "vm://localhost?create=false" uri for the 
second application?

> 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.
>


-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message