Commit Graph

29 Commits

Author SHA1 Message Date
Timothy Bish 85da157238 https://issues.apache.org/jira/browse/AMQ-6350
Allow for PooledConnectionFactory restart after being stopped.
(cherry picked from commit 0706fd0bc1)
2016-07-11 18:21:43 -04:00
Timothy Bish 4c45398575 https://issues.apache.org/jira/browse/AMQ-6290
Close failed connection on start if the reconnect on exception flag is
enabled.  
(cherry picked from commit 2e64abc38a)

Conflicts:
	activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionSecurityExceptionTest.java
2016-05-11 16:16:09 -04:00
Timothy Bish 48f314ef5a https://issues.apache.org/jira/browse/AMQ-5510
https://issues.apache.org/jira/browse/AMQ-5534

PooledConnectioFactory added reconnection support but can break if the
holder of the connection adds their own ExceptionListener as the
PooledConnection doesn't protect the internal ExceptionListener from
replacement which leads to cases where the loaned Connection is not
automatically closed so that the next create returns the same failed
connection.
(cherry picked from commit b65c0d1be4)
2016-04-20 09:49:37 -04:00
Christopher L. Shannon (cshannon) 7c7c505057 https://issues.apache.org/jira/browse/AMQ-5990
Disabling JMX for the Commons Pool implementation inside of
PooledConnectionFactory.  In the future if we want JMX we should
enable our own JMX stats that are independent of Commons Pool.
2015-10-01 18:08:37 +00:00
Timothy Bish 9ef4259297 https://issues.apache.org/jira/browse/AMQ-5616
Use ConcurrentMap in declarations
2015-04-28 11:15:08 -04:00
Jeff Genender 4441001c42 Updated API for commons-pool2 2015-04-16 16:01:39 +02:00
Jeff Genender 6d6ed4eaaf AMQ-5721 - Update ActiveMQ to use commons-pool2 instead of commons-pool.AMQ-5636 will need it. The JMS pool and other components should use it as well. 2015-04-16 16:01:39 +02:00
Timothy Bish e6597c4604 https://issues.apache.org/jira/browse/AMQ-4441
Cleanup the test suite, disble unused broker features and add timeouts
etc.
2015-02-18 12:55:54 -05:00
Timothy Bish f91abd3d46 https://issues.apache.org/jira/browse/AMQ-5564
Fixed session in the pool losing their reference to the anonymous
producer created when useAnonymousProducers is true.  The anonymous
producer stays live for the life of the pooled session.

Also added some synchronization safety to some methods that could get
into NPE trouble.
2015-02-05 17:50:43 -05:00
Dejan Bosanac b53d8ea295 https://issues.apache.org/jira/browse/AMQ-5534 - generic jms pool reconnection 2015-01-22 12:51:11 +01:00
Dejan Bosanac 9f53e2bcae adding missing licences 2014-12-29 12:25:04 +01:00
Timothy Bish 1ee5108be6 Disable JMX on the test brokers as it's not needed in these tests,
prevents some failures and speeds things up a little.
2014-07-30 09:40:09 -04:00
Timothy Bish b432173cfc https://issues.apache.org/jira/browse/AMQ-5268
Explicity set the properties from the generic JMS pooled
connectionfactory as the introspection based tools can easily get stuck
on getters that cause recursion or on inner types that have methods
which allow chaining.
2014-07-10 19:03:31 -04:00
Timothy Bish c6d0aaa81b https://issues.apache.org/jira/browse/AMQ-5258
Fixed, early created connection is closed so that it can expire or error
out as needed.
2014-07-07 14:29:21 -04:00
Timothy Bish 577b29c0e5 https://issues.apache.org/jira/browse/AMQ-5224
Support for XAConnectionFactory that do not implement ConnectionFactory
2014-06-13 12:30:17 -04:00
Timothy Bish 459593c427 https://issues.apache.org/jira/browse/AMQ-5224
Ensure PooledConnectionFactory implements QueueConnectionFactory and
TopicConnectionFactory
2014-06-13 11:18:24 -04:00
Timothy Bish 9ae22642dc https://issues.apache.org/jira/browse/AMQ-5224
Fix some JavaDocs
2014-06-13 11:09:56 -04:00
Timothy Bish 878e3a16ca https://issues.apache.org/jira/browse/AMQ-5226
Ensure that connections are returned when created and then handed out as
FIFO after that.
2014-06-13 10:30:39 -04:00
Timothy Bish f395c70608 https://issues.apache.org/jira/browse/AMQ-5015
Refactor the way sessions are pooled.  We don't need to keep the
PooledSession instances around since the state is unique to the session
it wraps we only need to keep the Session instances in the SessionPool
and create a new PooledSession on borrow to manage that session.  This
allows the PooledSession to have a real closed state that protects
against multiple close calls placing duplicate PooledSession instances
into the SessionPool.  This also simplifies the code in the
XaConnectionPool since it doesn't need to try and reset state in
PouledSessions before placing them back as it gets a fresh wrapper each
time with the correct state.
2014-06-12 19:12:56 -04:00
Timothy Bish 77713d9d1a Convert the JUnit 4 test so that the ignore is honoered. 2014-06-09 10:24:58 -04:00
gtully 736ffc9b96 test case that shows something is wrong with start logic on pooled connection factory, the vm test variant was getting serialized on the broker vm transport server 2014-06-09 14:21:24 +01:00
Timothy Bish be0311bea0 Add a couple tests for concurrent create an unique connections being
created.
2014-06-04 12:19:34 -04:00
Timothy Bish 9f78f82378 https://issues.apache.org/jira/browse/AMQ-5189
Set all session properties back using a session listener close event so
that the returned session is not modified after it's already been
re-dispatched from the pool.
2014-05-29 10:33:09 -04:00
Christian Posta dc607bbf35 Enhancement for https://issues.apache.org/jira/browse/AMQ-5076 -- pooled session creation blocks 2014-02-27 08:41:16 -07:00
gtully 95d20e5b47 https://issues.apache.org/jira/browse/AMQ-4991 - fix npe and reinstate test 2014-01-24 13:31:44 +00:00
Timothy Bish 2a7c349976 https://issues.apache.org/jira/browse/AMQ-4968
Add non-caching mode for Session producers.
2014-01-13 14:05:04 -05:00
Timothy Bish d872994260 polish 2013-11-04 16:51:09 -05:00
gtully 4f108cead5 fix up missing license headers - keep mr. rat happy :-) 2013-10-10 11:41:58 +01:00
gtully b66559ee07 https://issues.apache.org/jira/browse/AMQ-4757 activemq-jms-pool a generic jms xa pool derived from activemq-pool which activemq-pool now extends with amq specifics 2013-09-30 23:09:25 +01:00