Package org.apache.nifi.jms.processors
Class JMSPublisher
java.lang.Object
org.apache.nifi.jms.processors.JMSWorker
org.apache.nifi.jms.processors.JMSPublisher
Generic publisher of messages to JMS compliant messaging system.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceImplementations of this interface usemethods to set strongly typed properties.invalid reference
javax.jms.Messagestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionThis map helps us avoid using JmsPropertySetterEnum.valueOf and dealing with IllegalArgumentException on failed lookup.Fields inherited from class org.apache.nifi.jms.processors.JMSWorker
jmsTemplate, processLog -
Constructor Summary
ConstructorsConstructorDescriptionJMSPublisher(org.springframework.jms.connection.CachingConnectionFactory connectionFactory, org.springframework.jms.core.JmsTemplate jmsTemplate, ComponentLog processLog) -
Method Summary
Modifier and TypeMethodDescriptionprivate static jakarta.jms.DestinationbuildDestination(jakarta.jms.Session session, String destinationName) private voidlogUnbuildableDestination(String destinationName, String headerName) (package private) void(package private) void(package private) void(package private) voidsetMessageHeaderAndProperties(jakarta.jms.Session session, jakarta.jms.Message message, Map<String, String> flowFileAttributes)
-
Field Details
-
propertySetterMap
This map helps us avoid using JmsPropertySetterEnum.valueOf and dealing with IllegalArgumentException on failed lookup.
-
-
Constructor Details
-
JMSPublisher
JMSPublisher(org.springframework.jms.connection.CachingConnectionFactory connectionFactory, org.springframework.jms.core.JmsTemplate jmsTemplate, ComponentLog processLog)
-
-
Method Details
-
publish
-
publish
-
publish
-
setMessageHeaderAndProperties
void setMessageHeaderAndProperties(jakarta.jms.Session session, jakarta.jms.Message message, Map<String, String> flowFileAttributes) throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-
logUnbuildableDestination
-
buildDestination
private static jakarta.jms.Destination buildDestination(jakarta.jms.Session session, String destinationName) throws jakarta.jms.JMSException - Throws:
jakarta.jms.JMSException
-