Active MQ 5.3 not starting up when migrated from ActiveMq 5.2.

2009-11-12 Thread ajitgirish
Hi, I am facing one issue when we migrate our application from ActiveMq5.2 to ActiveMq5.3. We are using the same configuration xml file that we used for the earlier version. With the older version the broker used to start without any issues , but with the latest version the Mq is not getting s

Re: Out of Memory on 5.3

2009-11-12 Thread afei
the test scene: after accumulate a large of messages(about 5 millions) in queue,begin to consume it. i do a modifications,look at the attach ( http://old.nabble.com/file/p26328726/Queue.java Queue.java ),it look like ok. the test xml configuration. Gary Tully wrote: > > https://issues.apache.o

Broker goes down when database is restarted

2009-11-12 Thread au.pg
Hi, When I database is idle for too long or I manually restart database, broker is shutting down. Does it not automatically try to reconnect? Am I missing anything? I am setting validationQuery and testOnBorrow to true in broker-config.xml datasource bean. Do I need to do anything else to tell

Re: hasFrameToRead always returns false after first message

2009-11-12 Thread Roger Hoover
I don't know about the PHP stomp client that you're using but the STOMP protocol and AMQ broker support what you want. I wrote a twisted python STOMP client that can concurrently process stomp messages and ack them in any order. A potential issue with the approach you've described is that STOMP h

Re: hasFrameToRead always returns false after first message

2009-11-12 Thread jwotman
OK. I see now that the stomp client does not allow reading of next message until the message already read has been acknowledged. This does not match with what we need. Ideally, we'd like to "browse" the queue with Stomp and then acknowledge messages out of order when and if the operation connec

Re: "Could not correlate acknowledgment with dispatched message"

2009-11-12 Thread Daroo
Ok, I've just created JIRA case for this and attached an unit test which bases on the sample client code from my first post here. Link to JIRA: https://issues.apache.org/activemq/browse/AMQ-2489 Hope this helps. Gary Tully wrote: > > it looks like a bug. Best approach is to open a jira issue

PUT Request to Apache for file upload doesn't fail for a negative case

2009-11-12 Thread cko1986
Hi All, I am making a PUT request to Apache to upload a file into a particular directory. That works well. Here's where it fails. If the directory doesn't exist, I expect an error from the server. However, Apache takes the non-existing directory and truncates the path after that and uploads the

Re: Stomp Connection Dispatcher Fails on NPE

2009-11-12 Thread bwillis
New ticket has been created for this issue : https://issues.apache.org/activemq/browse/AMQ-2480 Dejan Bosanac wrote: > > Hi, > > can you open a jira for this, so it doesn't get lost? It would be great if > you could create a reproducible test case as well. > > Cheers > -- > Dejan Bosanac -

ActiveMQ STOMP: No strict FIFO breaks on unsubscribe/subscribe

2009-11-12 Thread Martin Baum
ActiveMQ STOMP: No strict FIFO on unsubscribe/subscribe Hi, I'm using ActiveMQ 5.3 with Stomp adaptor. I access the adaptor with this php-module: http://pecl.php.net/package/stomp. I am using durable messages. I think I am using durable queues - they last through server restarts. In my Stomp

Re: hasFrameToRead always returns false after first message

2009-11-12 Thread jwotman
Hi Dejan: Thanks for the correction. However, I'm getting the same result. I created /queue/testqueue and added two messages via the admin console on activemq. I used the following as per your post: while ($message = $con->readFrame()) { print_r($message); } th

Re: NegativeArraySizeException after ActiveMQ 5.3 restart

2009-11-12 Thread M
Gary, I believe the messages may have been from ActiveMQ 5.2.0 when I was running ActiveMQ 5.3.0. I will monitor the logs after any additional restarts. --- On Tue, 11/10/09, Gary Tully wrote: > From: Gary Tully > Subject: Re: NegativeArraySizeException after ActiveMQ 5.3 restart > To: users

Re: "Could not correlate acknowledgment with dispatched message"

2009-11-12 Thread Gary Tully
it looks like a bug. Best approach is to open a jira issue for this and if possible, convert one of the existing unit test cases into something that demonstrates your problem and attach it to the jira. Ie: change the test case to use a message listener instead of a sync receive. My assumption is t

Re: "Could not correlate acknowledgment with dispatched message"

2009-11-12 Thread Daroo
Thanx for the response but it still doesn’t clarify why I am getting this strange exception. I understand the difference between INDIVIDAUAL and CLIENT ACK modes, but my sample code fails in both cases. Unit tests you pointed me out are unfortunately not relevant in this case, because consumers t

Re: "Could not correlate acknowledgment with dispatched message"

2009-11-12 Thread Gary Tully
This is where I wold expect INDIVIDUAL_ACK to be different from CLIENT ACK. For a given session message.acknowledge with CLIENT_ACK will ack all messages received, but the activemq INDIVIDUAL_ACK mode, just an individual message should be acknowledged. To see if it is actually a problem, I guess a

Re: ActiveMQ Consumer / Producer Connection Listener

2009-11-12 Thread Boarder
Actually, I was wrong thinking that the Stomp events couldn't be catched in ActiveMQ. I've written my conclusions at http://stackoverflow.com/questions/1702755/activemq-consumer-producer-connection-listener/1721658#1721658. Thanks again for your help. -- View this message in context: http://ol

Exception on local to remote jms bridge

2009-11-12 Thread jeff yung
I am trying to connect the local activemq queue to remote jboss queue with bridge. It shows nullpointerexception: ERROR | Failed to initialize the JMSConnector java.lang.NullPointerException at javax.naming.InitialContext.getURLScheme(InitialContext.java:228) at javax.naming.Initi

Re: Out of Memory on 5.3

2009-11-12 Thread Gary Tully
https://issues.apache.org/activemq/browse/AMQ-2483 is tracking this.Could you attach your test case and/or configuration to the jira issue. thx. It should be possible to reuse an existing task for some of the iterations, but it is important that no wakeup request is ignored so that the the destinat

Re: Karaf + ActiveMQ

2009-11-12 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks Guillaume, I already managed to deploy the activemq bundles. The commands are the problem I had and I gave up on them. The servicemix features currently are not usable with karaf I think, but thats ok. I did write my own feature file to easily

Re: Karaf + ActiveMQ

2009-11-12 Thread Guillaume Nodet
You should be able to deploy the activemq core bundle without too much problems. The commands for activemq that are part of servicemix can't be easily deployed, unless you use the latest snapshots. So use karaf 1.0 + activemq 5.3, and if you really need the commands, grab the latest servicemix sn

Activemq Broker attribute TotalDequeueCount is very small

2009-11-12 Thread SelvarajAM
I am using embedded Activemq broker (5.3 Version), Flex client and STOMP protocol for the communication. Below is the xml configuration we use http://www.springframework.org/schema/beans"; xmlns:amq="http://activemq.apache.org/schema/core"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins

Re: hasFrameToRead always returns false after first message

2009-11-12 Thread Dejan Bosanac
Hi, you don't need to use hasFrameToRead() explicitly, it is used from readFrame(). So you can do something like, while ($msg = $con->readFrame()) { // do you stuff } BTW. Be sure to check PHP Stomp Client 1.0.0 released here http://stomp.fusesource.org/documentation/php/index.html Cheers