Re: About Blob Message

2007-06-25 Thread James Strachan
On 6/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I still have problem. I appreciate your help. Here is the code that I use to send large file (it's part of the file ConsumerTool.java, it send out file after receiving message from RequestTool.java //begin/ if

Re: Performance problem in ActiveMQ4.2-SNAPSHOT

2007-06-25 Thread James Strachan
On 6/25/07, comchyi [EMAIL PROTECTED] wrote: I find an performance problem in ActiveMQ4.2-SNAPSHOT when i subscribe an topic and consume 50 messages,the problem is that the memory of CPU is consumed increasely all long until the free heap of JVM's memory is zone. The client code like

Re: Orphan connections from .NET clients

2007-06-25 Thread Jim_Cross
Hi Chris, My shutdown code looks like this, but I still get the problem: if (consumer != null) { consumer.Close(); consumer.Dispose(); } if (session != null)

Re: Orphan connections from .NET clients

2007-06-25 Thread Dris
Not really. Actually on looking at it I am closing and disposing of sessions and consumers, and just disposing of producers and connections so I don't have your connection.Stop and connection.Close in mine. I would be surprised if that made a diff though. I had the issue until I added the

ActiveMQ Dropping Connections

2007-06-25 Thread Jan Stette
I'm currently trying to incorporate ActiveMQ 4.1.1 into a project (Java 6, tested on Windows XP so far). We're seeing a lot of cases in the logs where ActiveMQ is apparently dropping and re-establishing connections. This is with only two JVMs, running on a single host, peer transport, setting

Re: Orphan connections from .NET clients

2007-06-25 Thread Jim_Cross
Hmm, very odd - taking out connection.Stop() and connection.Close() still doesn't fix it for me. Also connection.Dispose() just calls Close() anyway, so I'm not sure why that fixed it for you either... Dris wrote: Not really. Actually on looking at it I am closing and disposing of sessions

Brokers authentication in network broker

2007-06-25 Thread Jean-Fabrice [gmail]
Hi list, I'm looking for a way to authenticate two brokers when they connect (using tcp) to each other in a network of brokers topology. I've followed http://activemq.apache.org/security.html but I can't find a way to authenticate / authorize the broker. With such setup, I got the following

Re: ActiveMQ Dropping Connections

2007-06-25 Thread James Strachan
On 6/25/07, Jan Stette [EMAIL PROTECTED] wrote: I'm currently trying to incorporate ActiveMQ 4.1.1 into a project (Java 6, tested on Windows XP so far). We're seeing a lot of cases in the logs where ActiveMQ is apparently dropping and re-establishing connections. This is with only two JVMs,

Re: Brokers authentication in network broker

2007-06-25 Thread Jean-Fabrice [gmail]
2007/6/25, Jean-Fabrice [gmail] [EMAIL PROTECTED]: Hi list, I'm looking for a way to authenticate two brokers when they connect (using tcp) to each other in a network of brokers topology. I succeeded in the mutual authentication using SSL, storing each broker certificate in the truststore of

Re: making ExceptionListener#onException behave based on Exception type

2007-06-25 Thread Timothy Bish
Have you tried casting the CMSException to the various types that you want to handle? [EMAIL PROTECTED] wrote: Hello I'm using ActiveMQ-CPP 2.0.1. In my program, I want to handle exceptions thrown by a Connection object, through its ExceptionListener, and act differently depending on the type

Re: About Blob Message

2007-06-25 Thread James Strachan
On 6/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, In the java code, when I catch error, I have the code: e.printStackTrace(); That is all error messages I have on the screen. Do you have any idea ? I've never seen e.printStackTrace() not generate a stack trace. Are you sure you're

Re: making ExceptionListener#onException behave based on Exception type

2007-06-25 Thread olivier . renaud
Timothy Bish [EMAIL PROTECTED]: Have you tried casting the CMSException to the various types that you want to handle? You mean, using a dynamic_cast ? dynamic_cast needs RTTI too, I think, so the problem is the same than using typeid.

Re: making ExceptionListener#onException behave based on Exception type

2007-06-25 Thread olivier . renaud
Selon Timothy Bish [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Timothy Bish [EMAIL PROTECTED]: Have you tried casting the CMSException to the various types that you want to handle? You mean, using a dynamic_cast ? dynamic_cast needs RTTI too, I think, so the problem is the

Re: Integrating C++ Client with MDB

2007-06-25 Thread emcee21
Tim Bish wrote: Creating a Java client to test with might help you rule out the if its the MDB or the C++ code that is faulty. Its just another Data Point to try and help figure out what's wrong. I had a similar problem, using the Java client but it could easily be the same issue. I

Re: About Blob Message

2007-06-25 Thread [EMAIL PROTECTED]
Hi, I just trim down the code, to let it send a file only. In this case, it shows error pretty clear. Could you look at it for me ? Here is the code of the RequestTool.java that send big file //Start/// try { activeMQSession =

Memory usage always increasing

2007-06-25 Thread Gnanaprakash
Hi, I am running an embedded ActiveMQ 4.1.1 on Jboss 4.0.3. I am doing a stress test with the following configuration. Publisher Threads - 3 Iterations per thread - 10 Sleep time between iterations - 500 ms Consumer Listener Thread - 1 Durable Topic consumer. broker configuration:

Re: Memory usage always increasing

2007-06-25 Thread James Strachan
On 6/25/07, Gnanaprakash [EMAIL PROTECTED] wrote: Hi, I am running an embedded ActiveMQ 4.1.1 on Jboss 4.0.3. I am doing a stress test with the following configuration. Publisher Threads - 3 Iterations per thread - 10 Sleep time between iterations - 500 ms Consumer Listener Thread - 1