activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Singer <Michal.Sin...@expand.com>
Subject Whats minimal use of jencks required for activemq & spring& consumer
Date Sun, 23 Mar 2008 15:59:48 GMT

Hi. I am using activemq 5.1 (snapshot latest). The producer uses regular
activemq API, and the consumer
uses activemq with spring & jmstemplate.
 
I would like to know if the following conifguration will improve performance
or if i need to use the entire,
inbound-outbound configuration of jencks:

1. producer: use org.apache.activemq.pool.PooledConnectionFactory to create
connection
2. consumer: configure using spring -
org.jencks.amqpool.PooledConnectionFactory which contains
ActiveMQConnectionFactory, in the following conifuration: 

<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
    	<!--  <property name="brokerURL"
value="tcp://localhost:61616?wireFormat.maxInactivityDuration=0"/>-->
    	<!--<property name="brokerURL"
value="vm://embeddedbroker?brokerConfig=xbean:WEB-INF/activemq.xml&amp;soTimeout=60000&amp;connectionTimeout=60000"
    		/>-->
    	<property name="brokerURL"
    		value="vm://embeddedbroker?brokerConfig=xbean:WEB-INF/activemq.xml" />
    	<!-- Should a JMS message be copied to a new JMS Message object as part
of the
			 send() method? Our producer does not reuse the message object, then it
can disable the
			copying of the message, which improves throughput. -->
    	<!-- <property name="copyMessageOnSend" value="false"/> -->

    </bean>
     	
 <bean id="pooledConnectionFactory"
  	class="org.jencks.amqpool.PooledConnectionFactory">
  	<property name="maxConnections" value="3" />
  	<property name="connectionFactory" ref="connectionFactory"/>
   </bean>


What will the MDP of jencks provide which activemq & spring does not
provide, using the pool I used?

Thanks, Michal
-- 
View this message in context: http://www.nabble.com/Whats-minimal-use-of-jencks-required-for-activemq---spring--consumer-tp16237302s2354p16237302.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message