com.github.marschall.jakartajmsadapter.JakartaQueueReceiver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jakarta-jms-adapter Show documentation
Show all versions of jakarta-jms-adapter Show documentation
Adapts a javax.jms JMS provider to a jakarta.jms JMS provider.
The newest version!
package com.github.marschall.jakartajmsadapter;
import jakarta.jms.JMSException;
import jakarta.jms.Queue;
import jakarta.jms.QueueReceiver;
final class JakartaQueueReceiver extends JakartaMessageConsumer implements QueueReceiver {
private final javax.jms.QueueReceiver javaxQueueReceiver;
JakartaQueueReceiver(javax.jms.QueueReceiver javaxQueueReceiver) {
super(javaxQueueReceiver);
this.javaxQueueReceiver = javaxQueueReceiver;
}
@Override
public Queue getQueue() throws JMSException {
try {
return new JakartaQueue(this.javaxQueueReceiver.getQueue());
} catch (javax.jms.JMSException e) {
throw JMSExceptionUtil.adaptException(e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy