Class WeblogicConnector
java.lang.Object
io.helidon.messaging.connectors.jms.JmsConnector
io.helidon.messaging.connectors.wls.WeblogicConnector
- All Implemented Interfaces:
Stoppable
,ConnectorFactory
,IncomingConnectorFactory
,OutgoingConnectorFactory
MicroProfile Reactive Messaging Weblogic JMS connector.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.helidon.messaging.connectors.jms.JmsConnector
JmsConnector.JmsConnectorBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Microprofile messaging Weblogic JMS connector name.Fields inherited from class io.helidon.messaging.connectors.jms.JmsConnector
ACK_MODE_ATTRIBUTE, AWAIT_ACK_ATTRIBUTE, CLIENT_ID_ATTRIBUTE, DESTINATION_ATTRIBUTE, DURABLE_ATTRIBUTE, MESSAGE_SELECTOR_ATTRIBUTE, NAMED_FACTORY_ATTRIBUTE, NON_LOCAL_ATTRIBUTE, PASSWORD_ATTRIBUTE, PERIOD_EXECUTIONS_ATTRIBUTE, POLL_TIMEOUT_ATTRIBUTE, SESSION_GROUP_ID_ATTRIBUTE, SUBSCRIBER_NAME_ATTRIBUTE, TRANSACTED_ATTRIBUTE, TYPE_ATTRIBUTE, USERNAME_ATTRIBUTE
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactory
CHANNEL_NAME_ATTRIBUTE, CONNECTOR_ATTRIBUTE, CONNECTOR_PREFIX, INCOMING_PREFIX, OUTGOING_PREFIX
-
Constructor Summary
ModifierConstructorDescriptionprotected
WeblogicConnector
(Config config, Instance<jakarta.jms.ConnectionFactory> connectionFactories) protected
WeblogicConnector
(Map<String, jakarta.jms.ConnectionFactory> connectionFactoryMap, ScheduledExecutorService scheduler, String thinJarLocation, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletionStage<?>
consumeAsync
(Message<?> m, jakarta.jms.Session session, AtomicReference<MessageMapper> mapper, jakarta.jms.MessageProducer producer, Config config) protected jakarta.jms.MessageConsumer
createConsumer
(Config config, jakarta.jms.Destination destination, SessionMetadata sessionEntry) protected jakarta.jms.Destination
createDestination
(jakarta.jms.Session session, ConnectionContext ctx) protected Optional<? extends jakarta.jms.ConnectionFactory>
Find correct ConnectionFactory for channel.PublisherBuilder<? extends Message<?>>
getPublisherBuilder
(Config mpConfig) SubscriberBuilder<? extends Message<?>,
Void> getSubscriberBuilder
(Config mpConfig) protected SessionMetadata
prepareSession
(Config config, jakarta.jms.ConnectionFactory factory) Methods inherited from class io.helidon.messaging.connectors.jms.JmsConnector
builder, configBuilder, create, createMessage, createProducer, sendingErrorHandler, stop
-
Field Details
-
CONNECTOR_NAME
Microprofile messaging Weblogic JMS connector name.- See Also:
-
-
Constructor Details
-
WeblogicConnector
-
WeblogicConnector
protected WeblogicConnector(Map<String, jakarta.jms.ConnectionFactory> connectionFactoryMap, ScheduledExecutorService scheduler, String thinJarLocation, ExecutorService executor)
-
-
Method Details
-
getPublisherBuilder
- Specified by:
getPublisherBuilder
in interfaceIncomingConnectorFactory
- Overrides:
getPublisherBuilder
in classJmsConnector
-
getSubscriberBuilder
- Specified by:
getSubscriberBuilder
in interfaceOutgoingConnectorFactory
- Overrides:
getSubscriberBuilder
in classJmsConnector
-
createConsumer
protected jakarta.jms.MessageConsumer createConsumer(Config config, jakarta.jms.Destination destination, SessionMetadata sessionEntry) throws jakarta.jms.JMSException - Overrides:
createConsumer
in classJmsConnector
- Throws:
jakarta.jms.JMSException
-
getFactory
Description copied from class:JmsConnector
Find correct ConnectionFactory for channel.- Overrides:
getFactory
in classJmsConnector
- Parameters:
ctx
- Channel's context- Returns:
- appropriate connection factory
-
createDestination
protected jakarta.jms.Destination createDestination(jakarta.jms.Session session, ConnectionContext ctx) - Overrides:
createDestination
in classJmsConnector
-
prepareSession
protected SessionMetadata prepareSession(Config config, jakarta.jms.ConnectionFactory factory) throws jakarta.jms.JMSException - Overrides:
prepareSession
in classJmsConnector
- Throws:
jakarta.jms.JMSException
-
consumeAsync
protected CompletionStage<?> consumeAsync(Message<?> m, jakarta.jms.Session session, AtomicReference<MessageMapper> mapper, jakarta.jms.MessageProducer producer, Config config) - Overrides:
consumeAsync
in classJmsConnector
-