Spring 2 sample + ActiveMQ 4.1.1 on Java 1.6u1 locks up client

2007-06-25 Thread gmatthews
Spring chapter 17.6 contains a tiny example, which doesn't work for me. The server portion seems to receive a message from the client, but the client blocks and never seems to get the result. http://static.springframework.org/spring/docs/2.0.x/reference/remoting.html#remoting-jms I have been suc

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

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: memor

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 = (ActiveMQSession)sessi

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.

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 >

Re: Orphan connections from .NET clients

2007-06-25 Thread Dris
Can you post a piece of code like the one in your original post, but including your cleanup code (I can't see the calls to dispose etc. in the original post). I will compile it and run it on my set up (4.1.1 + some fairly recent version of NMS) and see what happens. Chris -- View this message

Re: making ExceptionListener#onException behave based on Exception type

2007-06-25 Thread Timothy Bish
[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 same than using typeid. Not sure what you

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: 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: About Blob Message

2007-06-25 Thread [EMAIL PROTECTED]
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 appreciate your help. Thanks James.Strachan wrote: > > On 6/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I still h

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

making ExceptionListener#onException behave based on Exception type

2007-06-25 Thread olivier . renaud
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 of exception that occured. So, I set my implementation of ExceptionListener for the Connection, so that my impleme

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: JMX Console and deleted messages

2007-06-25 Thread Manuel Teira
James Strachan escribió: On 6/25/07, Manuel Teira <[EMAIL PROTECTED]> wrote: Hello. I've found that the JMX exposed operation browseAsTable() for a Queue MBean, is giving me access to already delivered and deleted messages of the queue. I wonder if this is a bug, since those messages should be

Re: JMX Console and deleted messages

2007-06-25 Thread James Strachan
On 6/25/07, Manuel Teira <[EMAIL PROTECTED]> wrote: Hello. I've found that the JMX exposed operation browseAsTable() for a Queue MBean, is giving me access to already delivered and deleted messages of the queue. I wonder if this is a bug, since those messages should be stored somewere, producing

JMX Console and deleted messages

2007-06-25 Thread Manuel Teira
Hello. I've found that the JMX exposed operation browseAsTable() for a Queue MBean, is giving me access to already delivered and deleted messages of the queue. I wonder if this is a bug, since those messages should be stored somewere, producing undesired memory consumption. I'm using amq 4.2

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, r

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 err

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 > session

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 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 connecti

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) {