Re: Certificate unknown error AFTER failover enabled

2012-08-24 Thread bryce
I'm sorry. I just realized Thread.setSslContext is wrong. I meant SslContext.setCurrentSslContext -- View this message in context: http://activemq.2283324.n4.nabble.com/Certificate-unknown-error-AFTER-failover-enabled-tp4655212p4655544.html Sent from the ActiveMQ - User mailing list archive at

Re: Certificate unknown error AFTER failover enabled

2012-08-23 Thread bryce
I created a new JIRA (linking to the old one) here: https://issues.apache.org/jira/browse/AMQ-3989 Please vote for it so Apache will look at the issue. Thanks. -- View this message in context: http://activemq.2283324.n4.nabble.com/Certificate-unknown-error-AFTER-failover-enabled-tp4655212p46

Re: Certificate unknown error AFTER failover enabled

2012-08-23 Thread bryce
Yes it is related to that JIRA. The JIRA says that 5.7 fixes this is, BUT I have re-tested my test code with the 5.7 snapshot and setKeyAndTrustManagers does not work. I find two workaround: one using System.setProperty, the other using Thread.setSslContext. But these are workarounds and I'd rathe

Re: Certificate unknown error AFTER failover enabled

2012-08-23 Thread Gary Tully
I think this is a case of https://issues.apache.org/jira/browse/AMQ-3785 On 22 August 2012 16:12, bryce wrote: > The problem is now solved... > > It turns out that ActiveMQSslConnectionFactory.setKeyAndTrustManagers does > not work (at least in this context). > > Replacing that the following does

Re: Certificate unknown error AFTER failover enabled

2012-08-22 Thread bryce
The problem is now solved... It turns out that ActiveMQSslConnectionFactory.setKeyAndTrustManagers does not work (at least in this context). Replacing that the following does work: System.setProperty("javax.net.ssl.keyStore",KEY_STORE_FILE_NAME); System.setProperty("javax.net.ssl.keyStorePasswor

Re: Certificate unknown error AFTER failover enabled

2012-08-20 Thread bryce
Sorry, the previous post was truncated by the forum. Here it is again: 1. Create an embedded ActiveMQ TCP broker with failover enabled 2. Connect to the embedded ActiveMQ TCP broker with failover URL 3. Stop connection and embedded ActiveMQ TCP broker 4. Create an embedded ActiveMQ SSL broker w

Re: Certificate unknown error AFTER failover enabled

2012-08-20 Thread bryce
Attached is a ZIP file with all necessary code, libraries, and certificates. The project can be opened in Netbeans. Make sure to change the running directory to the folder enclosed in the ZIP file. Everything else is specified as a relative path. The code is very simple and demonstrates the test

Re: Certificate unknown error AFTER failover enabled

2012-08-17 Thread Timothy Bish
On Fri, 2012-08-17 at 12:22 -0700, bryce wrote: > I might try to post some test code later. For now... > > Does failover work with SSL? > > I ask because once I disable SSL it works fine. > Its just work just fine with SSL, that's why a test case would be of use here. > > > -- > View thi

Re: Certificate unknown error AFTER failover enabled

2012-08-17 Thread bryce
I might try to post some test code later. For now... Does failover work with SSL? I ask because once I disable SSL it works fine. -- View this message in context: http://activemq.2283324.n4.nabble.com/Certificate-unknown-error-AFTER-failover-enabled-tp4655212p4655257.html Sent from the Activ

Re: Certificate unknown error AFTER failover enabled

2012-08-17 Thread Dejan Bosanac
Hi, can you create a test case that demonstrates it and raise a Jira? Regards -- Dejan Bosanac Senior Software Engineer | FuseSource Corp. dej...@fusesource.com | fusesource.com skype: dejan.bosanac | twitter: @dejanb blog: http://www.nighttale.net ActiveMQ in Action: http://www.manning.com/snyd