awslabs / awslabs/amazon-sqs-java-messaging-lib

Library latest version is not compatible with spring version 6.0.x

Open
#254 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
183
Forks
150
PR merge metrics
No merged PRs in 30d

Description

Hi,

im connecting to an weblogic with JMSTemplate and creating connection Factory but weblogic tired to use javax.jms.ConnectionFactory but JMSTemplate is using the Jakata, how do i resolve this ?

@Primary
@Bean
public JmsTemplate jmsTemplate2() {
JmsTemplate template = new JmsTemplate();
template.setConnectionFactory(jmsConnectionFactory2());
template.setDestinationResolver(jmsDestinationResolver2());
template.setPubSubDomain(false); // false for Queue, true for Topic
return template;
}

@Bean
public TransactionAwareConnectionFactoryProxy jmsConnectionFactory2() {
TransactionAwareConnectionFactoryProxy jmsConnectionFactory = new TransactionAwareConnectionFactoryProxy();
jmsConnectionFactory.setSynchedLocalTransactionAllowed(true);
jmsConnectionFactory.setTargetConnectionFactory(this.connectionFactoryAdapter2());

return jmsConnectionFactory;
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.