set a jms message listener for the topic or queue . concode_field_sep Session subSession concode_elem_sep MessageProducer producer concode_elem_sep Connection connection concode_elem_sep Session pubSession concode_elem_sep MessageConsumer consumer concode_elem_sep String username concode_field_sep void set concode_elem_sep Context getInitialContext concode_elem_sep Connection initTopic concode_elem_sep void onMessage concode_elem_sep void onException concode_elem_sep void close concode_elem_sep Connection initQueue concode_elem_sep String writeMessage
void function ( ) { if ( consumer instanceof TopicSubscriber ) { TopicSubscriber loc0 = ( TopicSubscriber ) consumer ; loc0 . setMessageListener ( this ) ; } else if ( consumer instanceof QueueReceiver ) { QueueReceiver loc0 = ( QueueReceiver ) consumer ; loc0 . setMessageListener ( this ) ; } }