Re: persistence not working

2008-09-03 Thread Eugene79
ok, thanks. I got the durable java client to work. But I still need to get it to work in ruby. There is absolutely no documentation on that. For that matter, I did not find *any* documentation of the ruby Stomp package. Can anyone help here? thanks, Eugene Eugene79 wrote: > > Hi, > > I am i

Re: persistence not working

2008-09-03 Thread Bruce Snyder
On Wed, Sep 3, 2008 at 6:03 PM, Eugene79 <[EMAIL PROTECTED]> wrote: > > k. Can somebody point me to *any* sample code to do this. Java, ruby, > anything. ActiveMQ documentation is practically non-existent. Here are links to the source for the producer and consumer in the ActiveMQ examples: ht

Re: persistence not working

2008-09-03 Thread Jim Gomes
Check here: http://remark.wordpress.com/articles/publish-subscribe-with-activemq-and-nms/ Google is also great for searching for samples. http://www.google.com On Wed, Sep 3, 2008 at 5:03 PM, Eugene79 <[EMAIL PROTECTED]> wrote: > > k. Can somebody point me to *any* sample code to do this.

Re: persistence not working

2008-09-03 Thread Eugene79
k. Can somebody point me to *any* sample code to do this. Java, ruby, anything. ActiveMQ documentation is practically non-existent. Eugene79 wrote: > > Hi, > > I am investigating ActiveMQ as a message broker solution for our > application. I set it up on my machine and tried sample ruby

Re: persistence not working

2008-09-03 Thread Jim Gomes
Sorry, I thought you might do a Google search on those keywords. In any case, here are some links: http://activemq.apache.org/how-do-durable-queues-and-topics-work.html Also, look to your documentation for your Session interface. That is where the CreateDurableConsumer() API should reside. You

Re: jaas Authentication Problem

2008-09-03 Thread NabiL
Thanks for your help. But i want to use the Master&Slave configuration with Shared file system. That's means i have to specify the same location data directory. Is that correct ? Thanks in advance. NabiL Dejan Bosanac-3 wrote: > > It looks like you have a shared storage between your master a

Re: REST Post & Get from Java

2008-09-03 Thread yesnid
Hello All, It seems that my attempt to read from a queue on the server is working, but it only does so once, on the server, command window I see a message: "INFO TransportConnector - Connector vm://localhost Started" I read the message from the queue however a subsequent read does n

Re: Failover ActiveMQ

2008-09-03 Thread Bruce Snyder
On Wed, Sep 3, 2008 at 2:55 PM, greenapple <[EMAIL PROTECTED]> wrote: > > Thanks for your response Bruce, > > My question is regarding messages that were on the master before the slave > connected. Is there a way to sync those? > > Assume the following: > 1. Master starts up > 2. Client publish 20

Re: Failover ActiveMQ

2008-09-03 Thread greenapple
Thanks for your response Bruce, My question is regarding messages that were on the master before the slave connected. Is there a way to sync those? Assume the following: 1. Master starts up 2. Client publish 20 messages 3. Slave starts up 4. Messages from now onwards are replicated My question:

Re: Failover ActiveMQ

2008-09-03 Thread Bruce Snyder
On Wed, Sep 3, 2008 at 2:41 PM, greenapple <[EMAIL PROTECTED]> wrote: > > Simple question: > > If a simple master/slave failover is configured with ActiveMQ 5.1. The > master starts up. A while later the slave starts up and connects. By the > time the slave connects, the master would have many mess

Failover ActiveMQ

2008-09-03 Thread greenapple
Simple question: If a simple master/slave failover is configured with ActiveMQ 5.1. The master starts up. A while later the slave starts up and connects. By the time the slave connects, the master would have many messages. Is there a way to sync the data between the slave and the master including

PeopleSoft and ActiveMQ?

2008-09-03 Thread shetc
Anyone have experience integrating PeopleSoft with ActiveMQ via PS's JMS Connector inside the Integration Broker? If so, I'd appreciate hearing about your experience. Thanks! -- View this message in context: http://www.nabble.com/PeopleSoft-and-ActiveMQ--tp19297711p19297711.html Sent from the Ac

Re: persistence not working

2008-09-03 Thread Eugene79
uhhh... ok. So how do I set that up? semog wrote: > > Hi Eugene, > The feature you want to use in your situation is called Durable Consumer. > The Persistence feature is used to ensure that the message will be > delivered if the broker crashes or is rebooted. The Durable Consumer > feature i

Re: Virtual Topics & Network of Brokers

2008-09-03 Thread carbon60
I should add that this is ActiveMQ 5.1.0, Spring 2.5.5. Thanks, A. -- View this message in context: http://www.nabble.com/Virtual-Topics---Network-of-Brokers-tp19294934p19295192.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

REST Post & Get from Java

2008-09-03 Thread yesnid
Hello All, I know this is a basic question, but could some one post a simple java code example that sends and receives a messages to the broker? I am required to do this from my java application via rest and I am having some difficulty interpreting the examples that do this from the web examples

Virtual Topics & Network of Brokers

2008-09-03 Thread Adam Sherman
I hate to post such a vague question, but I'm totally confused at this point and could really use some direction. I have design where I need to have multiple brokers peered with each- other, as in the "network of brokers" paradigm. The design requires that I use the "virtual topics" feature

Re: Configuring HTTP and REST

2008-09-03 Thread James Strachan
If you download ActiveMQ and boot up the broker you can run the examples http://activemq.apache.org/version-5-web-samples.html 2008/9/3 yesnid <[EMAIL PROTECTED]>: > > > > oliverw wrote: >> >> I've seen numerous threads about http://activemq.apache.org/rest.html but >> never a real answer on how

Re: Configuring HTTP and REST

2008-09-03 Thread yesnid
oliverw wrote: > > I've seen numerous threads about http://activemq.apache.org/rest.html but > never a real answer on how to configure ActiveMQ in order to get what's > described on the aforementioned documentation page. What's the status on > this? > I agree, I am confused as to how to prop

Re: taking a message on one queue and distributing it to other queues

2008-09-03 Thread James Strachan
2008/9/3 ilango_g <[EMAIL PROTECTED]>: > > Hi > I am trying to write a simple fan out app (or a distribution list maybe?) > that will take a message on a queue and send it to various queues > > > Any tips, pointers, sample code is appreciated. e.g. from("activemq:SomeQueue"). to("activemq:Bar")

Re: taking a message on one queue and distributing it to other queues

2008-09-03 Thread Joe Fernandez
What about implementing a "Recipient List" integration pattern via Camel? http://activemq.apache.org/camel/recipient-list.html Joe Get a free ActiveMQ user guide @ http://www.ttmsolutions.com ilango_g wrote: > > Hi > I am trying to write a simple fan out app (or a distribution list maybe?)

Re: Failing to read messages, AMQ5.0.0, Stomp

2008-09-03 Thread Dejan Bosanac
Try setting activemq.prefetchSize header value to 1 on a SUBSCRIBE command and see if that helps. Cheers -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net jpo

Re: jaas Authentication Problem

2008-09-03 Thread Dejan Bosanac
It looks like you have a shared storage between your master and slave, which you shouldn't have in "pure master-slave configuration". Try setting data directory for your slave to c:/amq_slave_data Cheers -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in

Re: JNDI and LDAP

2008-09-03 Thread Joe Fernandez
Sorry about the late response to your post, but I was just playing around with the concept of storing ActiveMQ admin objects in a LDAP directory service and I remembered this post. The ActiveMQ administered objects (i.e., ActiveMQConnectionFactory, ActiveMQTopic, and ActiveMQQueue) all implement

Re: onMessage method of MessageListener is never called?

2008-09-03 Thread James Strachan
2008/9/3 Eugeny N Dzhurinsky <[EMAIL PROTECTED]>: > On Wed, Sep 03, 2008 at 02:10:12PM +0100, James Strachan wrote: >> If I had a dollar for every time someone's stumbled on this one in JMS... >> >> http://activemq.apache.org/i-am-not-receiving-any-messages-what-is-wrong.html > > Oh :) > Really, th

Re: onMessage method of MessageListener is never called?

2008-09-03 Thread Eugeny N Dzhurinsky
On Wed, Sep 03, 2008 at 02:10:12PM +0100, James Strachan wrote: > If I had a dollar for every time someone's stumbled on this one in JMS... > > http://activemq.apache.org/i-am-not-receiving-any-messages-what-is-wrong.html Oh :) Really, that's my case - I didn't start the connection. However at a

Re: onMessage method of MessageListener is never called?

2008-09-03 Thread James Strachan
If I had a dollar for every time someone's stumbled on this one in JMS... http://activemq.apache.org/i-am-not-receiving-any-messages-what-is-wrong.html 2008/9/3 Eugeny N Dzhurinsky <[EMAIL PROTECTED]>: > Hello! > > I am trying to write the test for my application which uses requests and > respon

onMessage method of MessageListener is never called?

2008-09-03 Thread Eugeny N Dzhurinsky
Hello! I am trying to write the test for my application which uses requests and response queues for handling message processing. I recently realized the onMessage is never being called on the MessageConsumer. I wrote the sample code listed below and it is really true - onMessage is just skipped. H

Re: Broker Clustering

2008-09-03 Thread Joe Fernandez
The 'durable subscription' must have been created on broker #2 prior to broker #1 receiving the bunch of messages. As an alternative, you may want to check out 'virtual topics'. http://activemq.apache.org/virtual-destinations.html Joe Get a free ActiveMQ user guide @ http://www.ttmsolutions.c

Re: Master & Slave configuration

2008-09-03 Thread James Strachan
2008/9/3 NabiL <[EMAIL PROTECTED]>: > > Thanks for our help. May the errors occured because I have 2 activemq servers > on the same machine (win XP). I configure the master and slave with shared > file system et i don't specify any Database for persistence !! plz see the > confs > > Master =htt

Re: Master & Slave configuration

2008-09-03 Thread NabiL
Thanks for our help. May the errors occured because I have 2 activemq servers on the same machine (win XP). I configure the master and slave with shared file system et i don't specify any Database for persistence !! plz see the confs Master =http://www.nabble.com/file/p19286978/activemq.xml a

Re: Broker Clustering

2008-09-03 Thread Bastian Preindl
Great, it works that way. Now only the persistency problem is left. Broker #1 receives a bunch of messages from a producer, but Broker #2 is currently unavailable. How can I achieve that Broker #2 keeps the messages until #2 is back up and sends it then (and even keep them persistent if itself go

Re: Broker Clustering

2008-09-03 Thread Joe Fernandez
You have a forwarding bridge being established from machine #2 to machine #1; therefore, messages can only flow from #2 to #1. If you want messages to flow in both directions, either make it a 'duplex' bridge or create a forwarding bridge from #1 to #2. Joe Get a free ActiveMQ user guide @ http:

Re: Broker Clustering

2008-09-03 Thread Bastian Preindl
Hi, on one of the both machines (config file follows) it states: INFO DemandForwardingBridge - Network connection between vm://localhost2#24 and tcp://localhost/127.0.0.1:62001(localhost) has been established. The question is if messages are exchanged in both directions or only from th

Re: Master & Slave configuration

2008-09-03 Thread James Strachan
2008/9/3 NabiL <[EMAIL PROTECTED]>: > > it works fine !! > > I have a problem concerning Master Slave configuration. > > I successfully tested the Master and Slave configuration > http://www.nabble.com/file/p19285414/activemq.xml activemq.xml , but i got > errors when the slave > grab the lock and

Master & Slave configuration

2008-09-03 Thread NabiL
Hi all, I have a problem concerning Master Slave configuration. I successfully tested the Master and Slave configuration http://www.nabble.com/file/p19285443/activemq.xml activemq.xml , but i got errors when the slave grab the lock and begin to start all transports. plz you will find the log a

Master & Slave configuration

2008-09-03 Thread NabiL
it works fine !! I have a problem concerning Master Slave configuration. I successfully tested the Master and Slave configuration http://www.nabble.com/file/p19285414/activemq.xml activemq.xml , but i got errors when the slave grab the lock and begin to start all transports. plz you will find