This example shows you how to create a new JMS header for the ServiceMessageObject object inside a Custom Mediation primitive.
import com.ibm.websphere.sibx.smobo.JMSHeaderType; import com.ibm.websphere.sibx.smobo.ServiceMessageObjectFactory;
. . . ServiceMessageObjectFactory smoFactory = ServiceMessageObjectFactory.eINSTANCE; JMSHeaderType jmsHeader = smoFactory.createJMSHeaderType();This code sample creates a new JMS header. An exception occurs if the code sample fails.