private void setMessageProperties(JmsMessageImpl msg) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setMessageProperties", msg.getClass() + "@" + System.identityHashCode(msg));

        // Get properties from the pass through properties
        String prodProp = (String) passThruProps.get(JmsraConstants.PRODUCER_DOES_NOT_MODIFY_PAYLOAD_AFTER_SET);
        String consProp = (String) passThruProps.get(JmsraConstants.CONSUMER_DOES_NOT_MODIFY_PAYLOAD_AFTER_GET);

        // Check property values & assign message attributes accordingly
        msg.producerWontModifyPayloadAfterSet = prodProp.equalsIgnoreCase(ApiJmsConstants.WILL_NOT_MODIFY_PAYLOAD);
        msg.consumerWontModifyPayloadAfterGet = consProp.equalsIgnoreCase(ApiJmsConstants.WILL_NOT_MODIFY_PAYLOAD);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setMessageProperties");
    }
private void setMessageProperties ( JmsMessageImpl msg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setMessageProperties" , msg . getClass ( ) + "@" + System . identityHashCode ( msg ) ) ; String prodProp = ( String ) passThruProps . get ( JmsraConstants . PRODUCER_DOES_NOT_MODIFY_PAYLOAD_AFTER_SET ) ; String consProp = ( String ) passThruProps . get ( JmsraConstants . CONSUMER_DOES_NOT_MODIFY_PAYLOAD_AFTER_GET ) ; msg . producerWontModifyPayloadAfterSet = prodProp . equalsIgnoreCase ( ApiJmsConstants . WILL_NOT_MODIFY_PAYLOAD ) ; msg . consumerWontModifyPayloadAfterGet = consProp . equalsIgnoreCase ( ApiJmsConstants . WILL_NOT_MODIFY_PAYLOAD ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setMessageProperties" ) ; }
Use to propagate session/connection properties to a JMS message.

@param msg