Re: Please Help: java.lang.OutOfMemoryError after started

2009-10-22 Thread Dan Tran
Just curious, have you set up your JVM's -Xmx param? -Dan OliverLeeYn wrote: > > Today I install ActiveMQ in a computer , but after AMQ started, the > console post the error: > > INFO BrokerService - ActiveMQ JMS Message Broker (localhost, I > D:oliver-1374-1256219225078-1:0) started > Ex

dynamically create transport connector using Spring

2009-10-22 Thread Dan Tran
Hi instead of using the bellow config to allow all remote clients to connect to my embedded broker Is there a way to programmatically create transportConnector to allow a limit number of remote client hosts? Thanks -Dan -- View this message in context: http://www.nabble.co

Re: Installing Activemq-cpp in HP-UX

2009-10-22 Thread Radha Manickam
Hi, I am using Actimemq-cpp version 3.0. Autoconf ==> 2.64 Automake ==> 1.11 libtool ==> 2.2.6 gcc ==> 4.2.3 I have installed all the dependencies. I am able to install Apr and apr-util without any error. But not able to compile activemq-cpp. Thanks. Radha. -- View this message in context: h

Multicast Discovery and network connections

2009-10-22 Thread Ryan Moquin
I've had problems with the multicast discovery in activemq when a network connection isn't present, as well as others. Is that really an expected behavior? Is there any reason that activemq couldn't gracefully handle that situation by just logging a message until the network connection is availab

Re: Help: Error Creating CMS Connection in VC++ 2005 Release Build Only

2009-10-22 Thread Timothy Bish
On Thu, 2009-10-22 at 14:04 -0700, andrewdc wrote: > Hi, Tim. > > I have just tried running vs2005-activemq-example in a release build (I was > able to run that example in debug build with success), and I am getting "Bad > Ptr" right away, the debugger was pointing at Ln 53 of xmemory, the code at

Re: Help: Error Creating CMS Connection in VC++ 2005 Release Build Only

2009-10-22 Thread andrewdc
Hi, Tim. I have just tried running vs2005-activemq-example in a release build (I was able to run that example in debug build with success), and I am getting "Bad Ptr" right away, the debugger was pointing at Ln 53 of xmemory, the code at that line: ::new (_Vptr) _T1(_Val); My code was built on

Inconsistency in camel jms URL attribute interactions

2009-10-22 Thread praveen.sharma
When Camel-jms URL is set as jmsPath=jms:topic:test.MyImgTopic?priority=7&timeToLive=1000 I get what seemed like correct output from the JMS message: jmsExpiration: 1256242649150 jmsTimeStamp: 1256242648150 jmsPriority: 7 jmsDeliveryMode: 2 jmsMsgID: ID:padua-37812-1256242647963-0:0:1:1:1 defa

Re: Inconsistencies in setting broker URL and the information retrieved from JmsMessage

2009-10-22 Thread praveen.sharma
OK, I figured out that JMS URI set on camel endpoint, and not the broker URL, is the one used by JMS Message. For instance jms endpoint used by camel: jms:topic:test.MyImgTopic?priority=7&timeToLive=1000&preserveMessageQos=true are the priorities that I retrieve back: jmsExpiration: 1256242649150

Accessing values for JMS URI attributes set for Camel but do not have a interface to retrieve

2009-10-22 Thread praveen.sharma
I would like to understand the following: How can I get access to other values that are set in JMS URL for camel endpoint but sdo not have an interface to retrieve. For instance, how can I get back "jms.useCompression=true"? -- View this message in context: http://www.nabble.com/Accessing-valu

Inconsistencies in setting broker URL and the information retrieved from JmsMessage

2009-10-22 Thread praveen.sharma
I am discovering some inconsistencies in the values I set on the broker URL (used by the camel endpoint - passed through the spring configuration), and the values I retrieve from the jms message. In particular, I found deliveryMode, priority are incorrect. Can someone help me resolve these incon

Re: How to limit queue by number of messages

2009-10-22 Thread Mitch Granger
To be clearer, I'm looking for something like Websphere MQ's maxdepth property for queues. themitchy wrote: I'm looking for a way to keep queue sizes down to a specific number. For example if a queue gets to 10 messages I would like older message to start disappearing. I'm aware there are

Re: hacking 5.2.0 TopicSubsciption but can't get hold of the Session

2009-10-22 Thread Gary Tully
have a look at http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/plugin/StatisticsBroker.java?view=markupfrom trunk. It sends a message to the replyTo using internal broker apis. 2009/10/22 bravegag > > hi all, > > I was previously asking how to extend t

How to limit queue by number of messages

2009-10-22 Thread themitchy
I'm looking for a way to keep queue sizes down to a specific number. For example if a queue gets to 10 messages I would like older message to start disappearing. I'm aware there are some "Pending Message Limit Strategy" options but these only apply to pending messages on a topic per consumer

Re: Help: Error Creating CMS Connection in VC++ 2005 Release Build Only

2009-10-22 Thread Timothy Bish
On Thu, 2009-10-22 at 09:11 -0700, andrewdc wrote: > I am newbie on acticemq CMS API. I have compiled ActiveMQ CMS v3.0.1 source > in Visual C++ 2005 Express. I am following the CMS examples developing queue > producers and consumers. Everything was working fine in VC++ debug build > however it sto

hacking 5.2.0 TopicSubsciption but can't get hold of the Session

2009-10-22 Thread bravegag
hi all, I was previously asking how to extend the constant message pending limit strategy to send a custom "discarded" message to the replyTo field of the old message before discarding it so a blocked sender can be released. This architecture in general does not make much sense on top of JMS ...

Help: Error Creating CMS Connection in VC++ 2005 Release Build Only

2009-10-22 Thread andrewdc
I am newbie on acticemq CMS API. I have compiled ActiveMQ CMS v3.0.1 source in Visual C++ 2005 Express. I am following the CMS examples developing queue producers and consumers. Everything was working fine in VC++ debug build however it stopped working in the release build. When I debug into the r

Please Help: java.lang.OutOfMemoryError after started

2009-10-22 Thread OliverLeeYn
Today I install ActiveMQ in a computer , but after AMQ started, the console post the error: INFO BrokerService - ActiveMQ JMS Message Broker (localhost, I D:oliver-1374-1256219225078-1:0) started Exception in thread "ActiveMQ Transport: tcp:///127.0.0.1:1379" java.lang.OutOfMemoryError: Java he

Re: "too many open files" error with 5.3 and Stomp

2009-10-22 Thread Dejan Bosanac
Hi guys, did some initial testing on this (will commit my test soon, so we can have it for further testings). I wasn't able to reproduce the exact error you notice, but was getting a "unable to create new native thread" from a stomp broker under load. The test simulates the behavior where produce

Re: Can I set a temporary queue size?

2009-10-22 Thread Gary Tully
At the moment, policy entries are not applied to temp queues. They inherit default values and hence have access to all the memory configured for the broker. One reason why may be that it is hard to know a temp queue name up front so global settings will always be in effect. A temp queue name is key

Re: Installing Activemq-cpp in HP-UX

2009-10-22 Thread Timothy Bish
On Thu, 2009-10-22 at 04:29 -0700, Radha Manickam wrote: > Hi Tim, > > > I have libpthread installed in /usr/lib/. > > I added the path in SHLIB_PATH. > > Even though i got the same error. > > I am compiling using gcc. > Which version of ActiveMQ-CPP are you using? What versions do you have

Re: Firewall, is TCP 61616 sufficient?

2009-10-22 Thread wytten
wytten wrote: > > Is there some other port which needs to be opened in addition to TCP > 61616? I'm talking about the simplest case of using a single broker > configuration. > I still haven't resolved this issue--I can communicate with a broker on my network but not with a broker on the othe

Re: Installing Activemq-cpp in HP-UX

2009-10-22 Thread Radha Manickam
Hi Tim, I have libpthread installed in /usr/lib/. I added the path in SHLIB_PATH. Even though i got the same error. I am compiling using gcc. Radha. Timothy Bish wrote: > > On Thu, 2009-10-22 at 02:47 -0700, Radha Manickam wrote: >> Can anyone help on how to install activemq-cpp in hp-ux

Re: Installing Activemq-cpp in HP-UX

2009-10-22 Thread Timothy Bish
On Thu, 2009-10-22 at 02:47 -0700, Radha Manickam wrote: > Can anyone help on how to install activemq-cpp in hp-ux. > I am using 3.0 version of activemq-cpp. > > When i tried to configure, i got the following error message. > > > checking for time... yes > > checking for ftime... yes > > chec

Re: "too many open files" error with 5.3 and Stomp

2009-10-22 Thread DavidLevy
Hi - it's web, so I can't really tell ... I would say 50-100 STOMP PHP producers/consumers + 2 REST python producers/consumers In 5.3 i was using stomp at first, and then stomp+nio but I think both had the issue. - most of them yes, because it's new PHP scripts PS : the server is a 64bit server

Installing Activemq-cpp in HP-UX

2009-10-22 Thread Radha Manickam
Can anyone help on how to install activemq-cpp in hp-ux. I am using 3.0 version of activemq-cpp. When i tried to configure, i got the following error message. checking for time... yes checking for ftime... yes checking for cppunit-config... /usr/local/bin/cppunit-config checking for Cppunit

Connection handling + TCP CLOSE_WAIT on Linux + Solaris

2009-10-22 Thread a...@frogl
This simple example will show connections accumulating in CLOSE_WAIT on a 2.6.31 Linux kernel (Ubuntu) and Solaris10. This is true for the most recent release 5.3.0 and 5.1.X (which I am currently using). I have read the forum entries relating the issues relating to CLOSE_WAIT, but there seem

Re: encrypt database password in broker-config.xml

2009-10-22 Thread Dejan Bosanac
Hi Guys, great stuff. I created a Jira issue ( https://issues.apache.org/activemq/browse/AMQ-2460) to integrate jasypt with ActiveMQ by default Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/

Re: Active MQ 5.3 - Default persistence store is Kaha ?

2009-10-22 Thread Dejan Bosanac
Hi Serge, it's not old Kaha (http://activemq.apache.org/kaha-persistence.html) store, it's new KahaDB (http://activemq.apache.org/kahadb.html) which improves scalability and recovery of amq message store. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fuseso