@Beta public class JmsMessagingVdmConverter extends Object
MessageFactoryMapper
objects to pick the right MessageFactory
based on the message
type.
Multiple MessageFactoryMapper
objects can be configured, and each MessageFactoryMapper
can have
mappings for the same message type. In this case, the mapping of the most recently added MessageFactoryMapper
is used.Constructor and Description |
---|
JmsMessagingVdmConverter()
Creates a converter instance with the built-in mappings from
VdmMessages added. |
JmsMessagingVdmConverter(MessageFactoryMapper... messageFactoryMappers)
Creates a converter instance with the built-in mappings from
VdmMessages added, plus the provided
MessageFactoryMapper instances on top. |
Modifier and Type | Method and Description |
---|---|
void |
addMessageFactoryMappers(MessageFactoryMapper... messageFactoryMappers)
Augment existing converter with provided
MessageFactoryMapper instances. |
Message |
fromJmsMessage(javax.jms.Message incomingMessage)
Translates JMS messages into Messaging VDM objects.
|
public JmsMessagingVdmConverter()
VdmMessages
added.public JmsMessagingVdmConverter(@Nonnull MessageFactoryMapper... messageFactoryMappers)
VdmMessages
added, plus the provided
MessageFactoryMapper
instances on top. Note that in case of duplicate mappings, the one from the
right-most MessageFactoryMapper
will be used.messageFactoryMappers
- Mapping classes that implement the MessageFactoryMapper
interface and map message types to
message factory class names.public void addMessageFactoryMappers(@Nonnull MessageFactoryMapper... messageFactoryMappers)
MessageFactoryMapper
instances. Note that in case of duplicate
mappings, the one from the right-most MessageFactoryMapper
will be used.messageFactoryMappers
- Mapping classes that implement the MessageFactoryMapper
interface and map message types to
message factory class names.@Nullable public Message fromJmsMessage(@Nullable javax.jms.Message incomingMessage) throws MessagingException
incomingMessage
- The original JMS message.MessagingException
- If there are problems parsing the JMS message or converting it to a Messaging VDM object.Copyright © 2019 SAP SE. All rights reserved.