amazon-sqs-java-messaging-lib icon indicating copy to clipboard operation
amazon-sqs-java-messaging-lib copied to clipboard

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

Open abdulwhd964 opened this issue 9 months ago • 1 comments

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;
}

abdulwhd964 avatar Mar 12 '25 09:03 abdulwhd964

I don't think this library has anything to do with weblogic. It would only be used when you are trying to connect with AWS SQS. And because Oracle open sources the JEE stuff, but didn't grant the package of javax.jms, everything had to upgrade to jakarta.jms, which means you're using old libraries.

benlamonica avatar Mar 18 '25 21:03 benlamonica