Start of Content Area

Function documentation Messaging Service Message Factory  Locate the document in its SAP Library structure

 Use

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.

Features

      The example adapter shows how to access the message factory.

Note

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.

Note

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.

 

 

 

End of Content Area