Hi James,

The Configuration Spring that we use for the beans declaration  of the
Producer is the following : 

<beans>
        <bean id="producteur" class="parcours.dude.jmsactivemq102.Producteur"
singleton="false">              
                <property name="jmsTemplate" ref="jmsTemplateProducer" />
                <property name="appelDudeLogger" ref="appelDudeLogger" />
        </bean>
        <bean id="jndiTemplateProducer"
class="org.springframework.jndi.JndiTemplate">
                <property name="environment">
                        <props>
                                <prop
key="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</prop>
                                <prop 
key="java.naming.provider.url">${urlJMSProducteur}</prop>
                        </props>
                </property>
        </bean>
        <bean id="jmsTemplateProducer"
class="org.springframework.jms.core.JmsTemplate102">
                <property name="connectionFactory" 
ref="jmsConnectionFactoryProducer" />
                <property name="defaultDestination" ref="jmsQueueProducer" />
                <property name="pubSubDomain" value="false" />
                <property name="receiveTimeout" value="1" />
                <property name="deliveryPersistent" value="true" />
        </bean>
        <bean id="jmsConnectionFactoryProducer"
class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName" value="ConnectionFactory" />
                <property name="jndiTemplate" ref="jndiTemplateProducer" />
        </bean>
        
        <bean id="singleConnectionFactory102"
class="org.springframework.jms.connection.SingleConnectionFactory102">
                <property name="targetConnectionFactory"
ref="jmsConnectionFactoryProducer" /> 
        </bean>
        
        <bean id="jmsQueueProducer"
class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName" value="dynamicQueues/DUDE.QUEUE" />
                <property name="jndiTemplate" ref="jndiTemplateProducer" />
        </bean>
</beans>


James.Strachan wrote:
> 
> 2009/1/19 omoumen <[email protected]>:
>>
>> Non, we don't use PooledConnectionFactory.
>> We use JMS (jmsTemplate102) of Spring for sending and receiving the
>> message.
>> we don't programming any thing about pooling, if ther's any management of
>> pooling, it's encapsulate in ActiveMQ or Spring.
> 
> Please read that document again :). You should use
> PooledConnectionFactory if using ActiveMQ with JmsTemplate
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://fusesource.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Lock-in-ActiveMQ-and-Weblogic-tp21542855p21545675.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Reply via email to