Skip to content

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

Open
@abdulwhd964

Description

@abdulwhd964

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions