module Another
  class SimpleJob
  
    include TorqueBox::Injectors
  
    def initialize(opts)
      @options = opts
      @polish     = fetch( Java::pl.softwaremine.ThingThree )
      @response_queue = fetch( '/queue/response' )
      @init_params_queue = fetch( '/queue/init_params' )
      @init_params_queue.publish( @options )
    end
  
    def run()
      $stderr.puts "Another::SimpleJob executing! queue is #{@response_queue} and polish is #{@polish}"
      @response_queue.publish( 'done' ) if @polish
    end
  
  end
end
