Messaging Service Message Factory
An adapter must implement the Message interface in the following cases:
● For the sender/inbound message flow
● To generate a response message for synchronous receiver/outbound messages
Do not implement your own class, but use the message factory of the Adapter Framework messaging service.
● The example adapter shows how to access the message factory.

Open XIMessageFactoryImpl.java and search for the character string CS_MSGFCT.
● Instantiation of the message object takes place later and is shown in the example adapter.

Open SPIManagedConnectionFactory.java and search for the character string CS_MSGCRE.
● The adapter must determine the address elements either statically by using a defined connection to an external session or dynamically by using the received external message.
● Synchronous response messages are handled in a different way: the original From address must be set as the To address in the adapter and the other way around.