ActiveMQ windows service using JDBC persistence

2012-02-13 Thread Remella
Hello, I have an ActiveMQ broker running as a Windows service. Its using jdbcPersistenceAdapter with Oracle data source and Oracle's Universal Connection Pooling (UCP). When the database is down (due to network problems or scheduled maintenance), the ActiveMQ windows service shuts down completely.

Re: ActiveMQ CPP: Getting text from a Text Message without making temporary

2012-02-13 Thread stephenju
Cool. That's good to know. I didn't know std::string is reference counted. I came from some really old implementation of STL and it wasn't like that. Thank you so much. Now I am not so afraid of copying strings. :) -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-C

Re: ActiveMQ CPP: Getting text from a Text Message without making temporary

2012-02-13 Thread Timothy Bish
On Mon, 2012-02-13 at 14:26 -0800, stephenju wrote: > Just went through the source files and find it actually makes 4 copies of the > text. > > MarshallingSupport::readString32() makes 1 from the stream. > ActiveMQTextMessage::getText() then make another one to store in its data > member. Then it

Re: ActiveMQ CPP: Getting text from a Text Message without making temporary

2012-02-13 Thread stephenju
Just went through the source files and find it actually makes 4 copies of the text. MarshallingSupport::readString32() makes 1 from the stream. ActiveMQTextMessage::getText() then make another one to store in its data member. Then it makes yet another one as return value. Finally, the assignment i

Re: Multicast and ActiveMQ

2012-02-13 Thread Matt Pavlovich
I recommend using Queues, since Durable Subscriptions can't scale on the consumer side (JMS spec only allows for one connection per subscriptionId). Another option would be to use a Camel route to help filter the messages based on your selector, so you only get messages into queues as needed.

Re: ActiveMQ CPP: Getting text from a Text Message without making temporary

2012-02-13 Thread stephenju
Thanks for the warning. Yes, our connections are compressed. So this is a no go I guess. -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-Getting-text-from-a-Text-Message-without-making-temporary-tp4384039p4385205.html Sent from the ActiveMQ - User mailing list

Re: ActiveMQ CPP: Getting text from a Text Message without making temporary

2012-02-13 Thread Timothy Bish
On Mon, 2012-02-13 at 23:57 +0400, Ivan Pechorin wrote: > 2012/2/13 stephenju > > > Is there a way to access the text bytes without creating a temporary > > std::string? I am dealing with some large text messages and try not to > > allocate memory when making copies. For example, when I get the

Re: ActiveMQ Master/slave with MySQLCluster backend

2012-02-13 Thread Gary Tully
That seems very reasonable. The locker implementation can specified via configuration, it would be great if you could provide an implementation that you can verify with your setup. note the interface: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/

Re: ActiveMQ CPP: Getting text from a Text Message without making temporary

2012-02-13 Thread Ivan Pechorin
2012/2/13 stephenju > Is there a way to access the text bytes without creating a temporary > std::string? I am dealing with some large text messages and try not to > allocate memory when making copies. For example, when I get the message: > > std::string reply = myMessage->getText(); > > getText(

Re: Choosing the right HA option

2012-02-13 Thread Matt Pavlovich
Hi Zagan- The shared filesystem is usually faster (10-100x) than the shared database approach. I believe its also simpler to manage. A queuing system is going to thrash the Oracle database, and require a lot of db maintenance (or at least it did when I last used it with Oracle 9). I recomm

Re: ActiveMQ Master/slave with MySQLCluster backend

2012-02-13 Thread Christian Hilgers
Am 01.02.2012 17:57, schrieb Christian Hilgers: Any Updates/comments here? Am 31.01.2012 14:13, schrieb Gary Tully: This need some work. On 5.6, a single broker can deal with a failover of the jdbc store. The difficulty is locking in the master/slave case, or peer cluster case. The current lo

ActiveMQ CPP: Getting text from a Text Message without making temporary

2012-02-13 Thread stephenju
Is there a way to access the text bytes without creating a temporary std::string? I am dealing with some large text messages and try not to allocate memory when making copies. For example, when I get the message: std::string reply = myMessage->getText(); getText() makes a copy of its data on retu

Re: Does apollo support cluster and BDB HA?

2012-02-13 Thread Hiram Chirino
Hi, 2012/2/12 SuoNayi > Hi all, >Just to want to ensure whether apollo 1.0 supports cluster(network > broker like activemq) or not? > Not yet. >With BDB storage does apollo support BDB cluster for HA? > > We have not investigated this yet. We probably just need to expose additional

Re: Restarting ActiveMq removes/cleans all persisted messages/queues/topics

2012-02-13 Thread Zagan
Iam facing the same problem using MySQL database for persistence -- View this message in context: http://activemq.2283324.n4.nabble.com/Restarting-ActiveMq-removes-cleans-all-persisted-messages-queues-topics-tp3728577p4383951.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Producer flow control

2012-02-13 Thread Hervé BARRAULT
Hi, i have looked to the documentation of the producer flow control functionality (http://activemq.apache.org/producer-flow-control.html). I see that it is based on the storage size but in my case, i think not being able to use the size. I have a queue where i put messages two kind of messages :

Re: Multicast and ActiveMQ

2012-02-13 Thread Hervé BARRAULT
Hi, is there no advice to send a message to multiple consumers using activeMQ ? Regards Hervé On 2/2/12, Hervé BARRAULT wrote: > Hi, > I would multicast messages to different (dynamically determined) consumers. > > I'm asking myself if it is more efficient to use multiple queues or use a > topic

Re: CLIENT_ACKNOWLEDGEMENT equivalent for producers

2012-02-13 Thread kaustubh khasnis
Hi , Can you please give us some insight upon what will be the overhead of using transactions? Also can you please tell if there are any alternatives? --Kaustubh On Fri, Feb 10, 2012 at 5:03 PM, Gary Tully wrote: > producers can use transactions to batch a send, each send within a > transactio

Choosing the right HA option

2012-02-13 Thread Zagan
Hello again, at the moment I am analysing and evaluating the different Active MQ HA possibilities. At the Active MQ instance level I found * Shared Nothing Master/Slave > two separate instances * Shared Database Master/Slave > two instances, active-passive, sharing the same database * Shared File