Re: ACKs not being delivered correctly in ActiveMQ 5.1 (QueueSize growing)

2008-08-14 Thread Rob Davies
Hi Sateesh, could you provide a JUnit test case ? thanks, Rob On 15 Aug 2008, at 05:18, sparky2708 wrote: Rob, what is the solution to use in the C# client. I don't believe it has a PooledConnectionFactory and can you please shed some light on why the way that it used to work in 4.1 d

Re: ACKs not being delivered correctly in ActiveMQ 5.1 (QueueSize growing)

2008-08-14 Thread sparky2708
Rob, what is the solution to use in the C# client. I don't believe it has a PooledConnectionFactory and can you please shed some light on why the way that it used to work in 4.1 doesn't work in 5.1? Why should we need to replace the way we establish a connection? rajdavies wrote: > > please

Re: How to recover active connection if it is down when using spring?

2008-08-14 Thread Joe Fernandez
Hiram Chirino wrote: > > On Thu, Aug 14, 2008 at 2:28 PM, Joe Fernandez > <[EMAIL PROTECTED]> wrote: >> >> If for example you start() a connection with 'failover' and you set >> maxReconnectAttempts to 2, start() throws an exception after 2 reconnect >> attempts. That's fine. However, if you th

Re: How to recover active connection if it is down when using spring?

2008-08-14 Thread Hiram Chirino
On Thu, Aug 14, 2008 at 2:28 PM, Joe Fernandez <[EMAIL PROTECTED]> wrote: > > If for example you start() a connection with 'failover' and you set > maxReconnectAttempts to 2, start() throws an exception after 2 reconnect > attempts. That's fine. However, if you then go back and issue the start() >

Re: Unit Testing JMS Applications

2008-08-14 Thread simone_b
Is this supposed to be working with NMS as well? Joe Fernandez wrote: > > Peruse the ActiveMQ source code tree under > > .../activemq-core/src/test > > There are lots of test cases there and there are a couple of > embedded-related test cases in > > .../activemq-core/src/test/java/org/apac

Re: How to recover active connection if it is down when using spring?

2008-08-14 Thread Joe Fernandez
If for example you start() a connection with 'failover' and you set maxReconnectAttempts to 2, start() throws an exception after 2 reconnect attempts. That's fine. However, if you then go back and issue the start() again on the same connection, the 2 reconnect attempts will no longer be attempted.

Re: How to recover active connection if it is down when using spring?

2008-08-14 Thread Hiram Chirino
Not sure I understand? So on failure you want to auto reconnect but you don't want to block until the reconnection happens? Not this is possible when connecting to a remote broker. Perhaps your best bet is to use an embedded broker so that way you never have broker failure. All your operations

Re: Ghost consumers left on unsubscribe

2008-08-14 Thread Hiram Chirino
Ah.. so this from .NET right? Does anybody recall if the NMS client implements/uses the openwire connection KeepAlive stuff? On Wed, Aug 13, 2008 at 6:29 PM, BrianQADC <[EMAIL PROTECTED]> wrote: > > I'm using the standard poller script with activemessaging, and have noticed > occaisional consumer

Re: NMS: Strange behavior when re-connecting after connection abort

2008-08-14 Thread Hiram Chirino
A connection will hold on to messages that's trying to deliver to it's client until the broker detects that the connection has failed. In the last case is you main thread blocked somewhere? On Thu, Aug 14, 2008 at 8:07 AM, SebastianR. <[EMAIL PROTECTED]> wrote: > > Hello, > > First of all my set

Re: Only memory transaction store with JDBC persistence adapter??

2008-08-14 Thread Hiram Chirino
Hi in the case of the Journal implementation, that map of in flight transactions gets repopulated with the transactions when the journal first gets started. The journal re-plays all the journal records and this re-builds the map of non-committed transactions. See the recover() method. BTW.. on a

Re: Only memory transaction store with JDBC persistence adapter??

2008-08-14 Thread Hiram Chirino
Hi Ryan, You could open an issue, but to fix this we really need a new/extended JDBC store implementation. The current implementation was not really designed to support recovering XA transactions. It was always intended that the Journal would be in charge of doing that bit of work. The new impl

Re: How can I get all the connections to the Broker?

2008-08-14 Thread hardtolose
Yes, thank you.. I have been solved this problem.. Use this way: ObjectName conName = new ObjectName("org.apache.activemq:BrokerName=localhost,Type=Connection,*"); Set connections = connection.queryNames(conName, null); can get all the connections to the Broker, and then use ConnectionViewMBe

Not serializable

2008-08-14 Thread Marcus Herou
Hi. I've noticed that the Listener which are stored in the session (from MessageListenerServlet) is not serializable: >From my app servers logs. [15:46:42.393] Failed storing persistent session attribute `mls.listener'. Persistent session values must extend java.io.Serializable. [15:46:42.393] j

Re: Unable to authenticate transport without SSL certificate

2008-08-14 Thread ABV
It's working! As usual my mistake - sender web-app has poper configuration of jms connection factory with user and password, but client webapp hasn't. -- View this message in context: http://www.nabble.com/Unable-to-authenticate-transport-without-SSL-certificate-tp18979774p18981250.html Sent

Re: Unable to authenticate transport without SSL certificate

2008-08-14 Thread ABV
In addition to everything mentioned I was able to use jaasAuthenticationPlugind it is configured in activemq.xml: ... ... transportConnector is changed to tcp and the rest configuration is left the same -- View this message in context: http://www.nabble.com/Unable-to-authenticate

Re: How can I get all the connections to the Broker?

2008-08-14 Thread ABV
Maybe you can use JMX? hardtolose wrote: > > Hi, everybody.. > > I need the connection to get the client's "connectionID" and "remote > Address".. > > Can anybody tell me how to solve this problem? > > Not use local Embedded Broker, but use remote Broker..Many thanks in > advance! > -- V

NMS: Strange behavior when re-connecting after connection abort

2008-08-14 Thread SebastianR.
Hello, First of all my setup: NMS: Yesterdays HEAD SVN revision Broker: external broker running on ActiveMQ 4.1.1 .Net Framework: 2.0 IDE: MS Visual Studio 2008 with C# as programming language I recognize very strange behaviour when it comes to a connection failure. To show this I wrote a littl

Unable to authenticate transport without SSL certificate

2008-08-14 Thread ABV
Hi! I'm trying to get ActiveMQ 4.1.2 working with jaasCertificateAuthenticationPlugin. As a result JaasCertificateAuthenticationBroker class at line 75 throws SecurityException. I'm a bit confused because I was unable to find any info regarding this exception. As well plain SSL connection is est