mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
ACS-1170 : Release Gytheio 0.12 - ACS 7.0 compatible (#250)
- upgrade Gytheio - move jms bean to messaging-context.xml
This commit is contained in:
@@ -33,7 +33,6 @@ import javax.jms.ConnectionFactory;
|
||||
import org.alfresco.encryption.AlfrescoKeyStore;
|
||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.ActiveMQSslConnectionFactory;
|
||||
import org.apache.camel.component.jms.JmsComponent;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
@@ -81,12 +80,6 @@ public class ConnectionFactoryConfiguration
|
||||
return createConnectionFactory();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public JmsComponent jms()
|
||||
{
|
||||
return JmsComponent.jmsComponent(activeMqConnectionFactory());
|
||||
}
|
||||
|
||||
protected ConnectionFactory createConnectionFactory()
|
||||
{
|
||||
return new ActiveMQConnectionFactory(username, password, brokerUrl);
|
||||
|
@@ -34,6 +34,12 @@
|
||||
<property name="transacted" value="${messaging.transacted}" />
|
||||
<property name="transactionManager" ref="messagingTransactionManager" />
|
||||
</bean>
|
||||
|
||||
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
|
||||
<property name="connectionFactory" ref="pooledConnectionFactory" />
|
||||
<property name="transacted" value="${messaging.transacted}" />
|
||||
<property name="transactionManager" ref="messagingTransactionManager" />
|
||||
</bean>
|
||||
|
||||
<bean id="CAMEL_PROPAGATION_MANDATORY" class="org.apache.camel.spring.spi.SpringTransactionPolicy">
|
||||
<property name="transactionManager" ref="messagingTransactionManager" />
|
||||
|
Reference in New Issue
Block a user