Package org.apache.camel.component.sjms
Class SjmsTemplate
java.lang.Object
org.apache.camel.component.sjms.SjmsTemplate
-
Constructor Summary
ConstructorDescriptionSjmsTemplate
(jakarta.jms.ConnectionFactory connectionFactory, boolean transacted, int acknowledgeMode) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.Connection
jakarta.jms.Session
createSession
(jakarta.jms.Connection connection) void
execute
(jakarta.jms.Session session, SessionCallback sessionCallback) execute
(SessionCallback sessionCallback, boolean startConnection) jakarta.jms.ConnectionFactory
jakarta.jms.Message
void
send
(jakarta.jms.MessageProducer producer, jakarta.jms.Message message) void
send
(org.apache.camel.Exchange exchange, String destinationName, MessageCreator messageCreator, boolean isTopic) void
setDestinationCreationStrategy
(DestinationCreationStrategy destinationCreationStrategy) void
setExplicitQosEnabled
(boolean explicitQosEnabled) void
setPreserveMessageQos
(boolean preserveMessageQos) void
setQoSSettings
(int deliveryMode, int priority, long timeToLive)
-
Constructor Details
-
SjmsTemplate
public SjmsTemplate(jakarta.jms.ConnectionFactory connectionFactory, boolean transacted, int acknowledgeMode)
-
-
Method Details
-
getConnectionFactory
public jakarta.jms.ConnectionFactory getConnectionFactory() -
setDestinationCreationStrategy
-
setQoSSettings
public void setQoSSettings(int deliveryMode, int priority, long timeToLive) -
setExplicitQosEnabled
public void setExplicitQosEnabled(boolean explicitQosEnabled) -
setPreserveMessageQos
public void setPreserveMessageQos(boolean preserveMessageQos) -
execute
- Throws:
Exception
-
execute
- Throws:
Exception
-
send
public void send(org.apache.camel.Exchange exchange, String destinationName, MessageCreator messageCreator, boolean isTopic) throws Exception - Throws:
Exception
-
send
public void send(jakarta.jms.MessageProducer producer, jakarta.jms.Message message) throws Exception - Throws:
Exception
-
receive
public jakarta.jms.Message receive(String destinationName, String messageSelector, boolean isTopic, long timeout) throws Exception - Throws:
Exception
-
createConnection
- Throws:
Exception
-
createSession
- Throws:
Exception
-