I've not had a chance to play around with ActiveMessaging yet.

The default acknowledgement mode in the stomp ruby client is mant to
be auto-ack...

http://svn.codehaus.org/stomp/trunk/ruby/test/test_client.rb

so I'd have thought ActiveMessaging would be using that. I took a
quick peek at the code and couldn't see any issues. I wonder if its
worth using a socket sniffer to show the commands that ActiveMessaging
is executing on the wire - as Stomp is easy to parse and read...

http://stomp.codehaus.org/Protocol

then we can just grep for the SUBSCRIBE commands and see what
acknowledgement mode its using by default - then at least we'll know
if its a bug in ActiveMessaging or in ActiveMQ.


On 7/4/06, gard <[EMAIL PROTECTED]> wrote:

Hi,

I am experiencing that messages are not removed from the queue when using
Stomp(Ruby) standalone and when using the ActiveMessaging plugin for Rails.
I assume this has to do with the client not acknowledging the message. Is
there anywhere I need to configure this in the amq config file? I havent
found anything about this in the documentation for amq.

The message is received in the client but it is not removed from the amq
queue. So if the client is restarted the message is redelivered which is not
desired.

I am using incubator-activemq-4.0.1 and the latest ActiveMessaging trunk.

Sample client producer ------
begin
  load '../../config/messaging.rb'
rescue MissingSourceFile
  puts "error"
end
class CatchallProd

  include ActiveMessaging::MessageSender

  publishes_to :catchall_service

  def say_hello
    publish :catchall_service, "<say>Hello World!</say>"
  end

end

p = CatchallProd.new
p.say_hello

----------------------------------
Sample consumer ---------------

class CatchallServiceProcessor < ActiveMessaging::Processor
  subscribes_to :catchall_service
  def on_message(message)
    puts "received: " + message
 end
end

------------------------------ messaging.rb
ActiveMessaging::Gateway.define do |s|
  s.queue :catchall_service, '/queue/Catchall Service'
end
--
View this message in context: 
http://www.nabble.com/Stomp-and-ActiveMessaging-does-not-remove-messages-from-Queue-tf1889402.html#a5165844
Sent from the ActiveMQ - User forum at Nabble.com.




--

James
-------
http://radio.weblogs.com/0112098/

Reply via email to