private static void setProperty ( JmsDestination dest , String longName , int propIntValue , Object value ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setProperty" , new Object [ ] { dest , longName , propIntValue , value } ) ; switch ( propIntValue ) { case PR_INT : dest . setPriority ( ( Integer ) value ) ; break ; case DM_INT : dest . setDeliveryMode ( ( String ) value ) ; break ; case TL_INT : dest . setTimeToLive ( ( Long ) value ) ; break ; case RA_INT : dest . setReadAhead ( ( String ) value ) ; break ; case TN_INT : ( ( JmsTopic ) dest ) . setTopicName ( ( String ) value ) ; break ; case TS_INT : ( ( JmsTopic ) dest ) . setTopicSpace ( ( String ) value ) ; break ; case QN_INT : ( ( JmsQueue ) dest ) . setQueueName ( ( String ) value ) ; break ; case QP_INT : ( ( JmsQueue ) dest ) . setScopeToLocalQP ( ( String ) value ) ; break ; case PL_INT : ( ( JmsQueue ) dest ) . setProducerPreferLocal ( ( String ) value ) ; break ; case PB_INT : ( ( JmsQueue ) dest ) . setProducerBind ( ( String ) value ) ; break ; case GM_INT : ( ( JmsQueue ) dest ) . setGatherMessages ( ( String ) value ) ; break ; case BN_INT : dest . setBusName ( ( String ) value ) ; break ; case BD_INT : ( ( JmsDestInternals ) dest ) . setBlockedDestinationCode ( ( Integer ) value ) ; break ; case DN_INT : ( ( JmsDestinationImpl ) dest ) . setDestName ( ( String ) value ) ; break ; case DD_INT : ( ( JmsDestinationImpl ) dest ) . setDestDiscrim ( ( String ) value ) ; break ; default : throw ( JMSException ) JmsErrorUtils . newThrowable ( JMSException . class , "UNKNOWN_PROPERTY_CWSIA0363" , new Object [ ] { longName } , null , "MsgDestEncodingUtilsImpl.setProperty#1" , null , tc ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setProperty" ) ; }
setProperty Set the given property to the given value on the given JmsDestination .