----- "James Strachan" <[EMAIL PROTECTED]> wrote: > On 6/1/07, Doug Steigerwald <[EMAIL PROTECTED]> > wrote: > > I'm currently trying to set up ActiveMQ to use MySQL as the data > store. ActiveMQ connects to the > > database and creates some tables if it needs to, but nothing is > stored in the ACTIVEMQ_MSGS table > > when I send messages via stomp (we're going to be using perl and an > extended Net::Stomp to connect > > and post messages). We're only using queues at the moment. > > > > Am I missing something? We've been impressed with the performance > we've seen when testing ActiveMQ > > using Kaha, but we really want a MySQL data store. > > Are you sure you're sending a peristent message? Try adding the > persistent header with stomp. (We should make persistence the > default; > can't remember what it is currently)... > > see the stomp headers supported... > > http://activemq.apache.org/stomp.html
The default for Stomp in 4.1.1 and 4.2-SNAPSHOT is non-persistent With Net::Stomp, you need do something like this: $stomp->send( { destination => '/queue/myqueue', persistent => 'true', body => $body } ); Unfortunately, the Net::Stomp documentation does not mention how to add headers to messages. > -- > James > ------- > http://macstrac.blogspot.com/ Tom