# File lib/activemessaging/trace_filter.rb, line 9 def process message, routing unless ( routing[:destination].name == @queue ) then ActiveMessaging.logger.debug "Trace: direction = #{routing[:direction]} publisher=#{routing[:publisher]} queue=#{routing[:destination].name} @queue=#{@queue}" if routing[:direction].to_sym==:outgoing then "trace from outgoing" publish @queue, "<sent>"+ "<from>#{routing[:publisher]}</from>" + "<queue>#{routing[:destination].name}</queue>" + "<message>#{message.body}</message>" + "</sent>" end if routing[:direction].to_sym==:incoming then "trace from incoming" publish @queue, "<received>"+ "<by>#{routing[:receiver]}</by>" + "<queue>#{routing[:destination].name}</queue>" + "<message>#{message.body}</message>" + "</received>" end end end
Generated with the Darkfish Rdoc Generator 2.