@ Override public void setProducerDoesNotModifyPayloadAfterSet ( String propertyValue ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setProducerDoesNotModifyPayloadAfterSet" , propertyValue ) ; // First of all, convert null and empty to mean the default. if ( ( propertyValue == null ) || ( "" . equals ( propertyValue ) ) ) { jcaManagedConnectionFactory . setProducerDoesNotModifyPayloadAfterSet ( ApiJmsConstants . MIGHT_MODIFY_PAYLOAD ) ; } // Check for valid values else if ( propertyValue . equalsIgnoreCase ( ApiJmsConstants . MIGHT_MODIFY_PAYLOAD ) || propertyValue . equalsIgnoreCase ( ApiJmsConstants . WILL_NOT_MODIFY_PAYLOAD ) ) { jcaManagedConnectionFactory . setProducerDoesNotModifyPayloadAfterSet ( propertyValue ) ; } else { // This is not a legal value -> throw a JMS exception throw ( JMSException ) JmsErrorUtils . newThrowable ( JMSException . class , "INVALID_VALUE_CWSIA0261" , new Object [ ] { "producerDoesNotModifyPayloadAfterSet" , propertyValue } , tc ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setProducerDoesNotModifyPayloadAfterSet" ) ; }
Sets the property that indicates if the producer will modify the payload after setting it .