public void setPropertiesInMessage ( JsMessage jsMsg , SIBUuid12 destinationUuid , SIBUuid12 producerConnectionUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setPropertiesInMessage" , new Object [ ] { jsMsg , destinationUuid , producerConnectionUuid } ) ; SIMPUtils . setGuaranteedDeliveryProperties ( jsMsg , _messageProcessor . getMessagingEngineUuid ( ) , null , null , null , destinationUuid , ProtocolType . PUBSUBINPUT , GDConfig . PROTOCOL_VERSION ) ; if ( jsMsg . getConnectionUuid ( ) == null ) { //defect 278038: //The producerSession will have set this in the msgItem for pub sub //destinations. However, the field may not have been set in the //jsMsg if the msg was not persisted before this point. //Since the message is going off the box, we have no choice but to set it now. jsMsg . setConnectionUuid ( producerConnectionUuid ) ; } //NOTE: the 'bus' field is not set in this method as it should //only be set once the message has been stored if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setPropertiesInMessage" ) ; }
Sets properties in the message that are common to both links and non - links .