public final class JmsPublish extends Object implements org.mule.runtime.api.lifecycle.Disposable
Destination| Constructor and Description |
|---|
JmsPublish(JmsSessionManager jmsSessionManager,
org.mule.runtime.api.scheduler.SchedulerService schedulerService) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
publish(JmsConfig config,
JmsTransactionalConnection connection,
String destination,
DestinationTypeDescriptor destinationType,
JmsMessageBuilder messageBuilder,
PublisherParameters overrides,
org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction,
org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy sendCorrelationId,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
Operation that allows the user to send a
Message to a JMS Destination |
public JmsPublish(JmsSessionManager jmsSessionManager, org.mule.runtime.api.scheduler.SchedulerService schedulerService)
@Throws(value=JmsPublisherErrorTypeProvider.class) public void publish(@Config JmsConfig config, @Connection JmsTransactionalConnection connection, @Summary(value="The name of the Destination where the Message should be sent") String destination, @Optional(defaultValue="QUEUE") @Summary(value="The type of the Destination") DestinationTypeDescriptor destinationType, @Summary(value="A builder for the message that will be published") @ParameterGroup(name="Message",showInDsl=true) JmsMessageBuilder messageBuilder, @ParameterGroup(name="Publish Configuration") PublisherParameters overrides, org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction, @ConfigOverride org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy sendCorrelationId, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback) throws JmsExtensionException
Message to a JMS Destinationconfig - the current DefaultJmsProducerConfigconnection - the current JmsConnectiondestination - the name of the Destination where the Message should be sentdestinationType - the DestinationType of the destinationmessageBuilder - the DefaultJmsMessageBuilder used to create the Message to be sentoverrides - Parameter Group with overriding parameters from the configurationtransactionalAction - Transactional Action for the operation. Indicates if the publish must be executed or not in a
transaction.sendCorrelationId - options on whether to include an outbound correlation id or notcorrelationInfo - the current message's correlation infoJmsExtensionException - if an error occurs trying to publish a messagepublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2023. All rights reserved.