Commit Graph

54 Commits

Author SHA1 Message Date
Timothy A. Bish 7a7d55180e Add some defensive checks in cleanup method to avoid possible NPE
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1428632 13f79535-47bb-0310-9956-ffa450edef68
2013-01-03 22:06:43 +00:00
Timothy A. Bish e06c23e22a fix and test for: https://issues.apache.org/jira/browse/AMQ-4225
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1428053 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 21:15:28 +00:00
Timothy A. Bish 49f16ce0eb fix and test for: https://issues.apache.org/jira/browse/AMQ-4225
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1425162 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 22:05:48 +00:00
Hiram R. Chirino bfbe90b399 rename the activemq-leveldb module to activemq-leveldb-store to be consistent with other store modules. Move more spring/xbean support bits into the activemq-spring module.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1406726 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 17:26:31 +00:00
Timothy A. Bish 8b84374cdb fix issue introduced in https://issues.apache.org/jira/browse/AMQ-4019 for XA connections.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1406657 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 14:34:47 +00:00
Timothy A. Bish a59c9baaf5 fixes for: https://issues.apache.org/jira/browse/AMQ-4019
Refactoring the pools code to use commons-pool for more of the work and allowing us to
expose more stats info as well as enabling async connection pool cleanup of expired 
connections if so desired.  Added some additional tests.  We should continue to add some
more tests and perhaps add some more functionality to the Session pool in ConnectionPool
to let the commons-pool clean up Idle sessions after a time or to maintain the certain 
number of idle sessions etc.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1383746 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 03:44:48 +00:00
Claus Ibsen dd2556bc91 AMQ-4004: The option maximumActive has been name a more descriptive name to not confuse end users. The old name is kept but is @deprecated to be backwards compatible.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1378859 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 08:54:15 +00:00
Claus Ibsen 8fc47c6abf AMQ-4003: Add option to PooledConnectionFactory to control if connection should be created on startup or not
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1378853 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 08:37:44 +00:00
Gary Tully b496c0a38c https://issues.apache.org/jira/browse/AMQ-3997 - Memory leak in activemq-pool. Apply patch from claus with thanks, removes duplicate listener registration
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1378098 13f79535-47bb-0310-9956-ffa450edef68
2012-08-28 12:11:58 +00:00
Timothy A. Bish c7fcceac0e Disable use of JMX on the embedded broker, test doesn't need it.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1369148 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 18:22:56 +00:00
Gary Tully 4e011e0a85 ensure speedy stop of broker on connection close
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1350572 13f79535-47bb-0310-9956-ffa450edef68
2012-06-15 11:03:53 +00:00
Bosanac Dejan d1aeb04fc6 https://issues.apache.org/jira/browse/AMQ-3863 - xa session pooling problem
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1343171 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 09:28:18 +00:00
Bosanac Dejan 974f6896a4 fixing licenses
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1327985 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 15:15:19 +00:00
Timothy A. Bish 6687d567c7 Apply Fix For: https://issues.apache.org/jira/browse/AMQ-3680
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1325943 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 20:54:35 +00:00
Torsten Mielke 3a84de9199 AMQ-3752: repeated call to PooledConnection.setClientID() with the same client id are ignored and don't raise an exception.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1296094 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 09:03:23 +00:00
Timothy A. Bish 5886b66ed3 apply patch for: https://issues.apache.org/jira/browse/AMQ-3588
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1200532 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 20:28:20 +00:00
Timothy A. Bish 77f9b87294 Add missing license header and a tearDown method to ensure the created BrokerService gets stopped.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1200489 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 19:28:59 +00:00
Timothy A. Bish bfd1be561d fix for: https://issues.apache.org/jira/browse/AMQ-2643
track pooled sessions in the parent ConnectionPool and ensure 
they get closed and returned to the pool.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1180038 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 13:51:44 +00:00
Timothy A. Bish 26b69e42bf Turn off JMX for these tests to avoid instance already exists exceptions when creating a brokerService.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1178622 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 22:32:54 +00:00
Timothy A. Bish f0e6f26623 fix for: https://issues.apache.org/jira/browse/AMQ-3506
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1173648 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 13:56:11 +00:00
Timothy A. Bish 5ac1540c63 apply fix for: https://issues.apache.org/jira/browse/AMQ-3482 to return default behavior to blocking.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1164058 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 13:02:28 +00:00
Timothy A. Bish cf914d16af apply patch for: https://issues.apache.org/jira/browse/AMQ-3482
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1163815 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 21:07:28 +00:00
Timothy A. Bish 320d87cfce Apply patch for: https://issues.apache.org/jira/browse/AMQ-3457
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1158694 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 13:29:35 +00:00
Timothy A. Bish d226f5089f fix for: https://issues.apache.org/jira/browse/AMQ-2349
fix for: https://issues.apache.org/jira/browse/AMQ-2716

When a PooledConnection is closed the Temp Destinations of the contained Connection should be removed.

Applied patch from AMQ-2349 with modifications to prevent NullPointerExceptions and some other small cleanups.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1142267 13f79535-47bb-0310-9956-ffa450edef68
2011-07-02 18:59:33 +00:00
Gary Tully 101e7110bc https://issues.apache.org/jira/browse/AMQ-3305 - Implement "exactly once" delivery with kahaDB and XA in the event of a failure post prepare.
Fixed up transaction broker recovery processing and kahadb store such that pending recovered
messages and acks wait for and respect the eventual xa transction outcome. Essentially
implementing exactly once delivery semantics on failure. Updated the camel jms to jdbc
test route to validate correct failure recovery processing with geronimo, test pulls in
xa wrappers from jencks and openejb such that NamedXAResources are registered with geronimo.
Additional unit tests added.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1100208 13f79535-47bb-0310-9956-ffa450edef68
2011-05-06 13:27:49 +00:00
Gary Tully 628a0cde01 https://issues.apache.org/jira/browse/AMQ-3251 - javax.jms.TransactionInProgressException: Cannot rollback() inside an XASession. Make session xa aware such that it won't try local rollback, session is returned to the pool
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1086593 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 14:17:45 +00:00
Hiram R. Chirino b0c2a40fb9 Removing svn keywords, they don't have much value and just add additional noise when diffing source trees.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1071259 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 14:08:48 +00:00
Hiram R. Chirino 0bbc0acb84 Removing svn keywords, they don't have much value and just add additional noise when diffing source trees.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1071256 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 13:58:54 +00:00
Bosanac Dejan 8bf987b134 https://issues.apache.org/jira/browse/AMQ-3177 - use slf4j instead of jcl
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1069405 13f79535-47bb-0310-9956-ffa450edef68
2011-02-10 14:24:01 +00:00
Bosanac Dejan f7abc1fd1e https://issues.apache.org/activemq/browse/AMQ-2925 - PooledConnection.getConnection()
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@998963 13f79535-47bb-0310-9956-ffa450edef68
2010-09-20 15:52:34 +00:00
Gary Tully 9353ea50e4 remove dumpStack, system.err trace committed in error: https://issues.apache.org/activemq/browse/AMQ-2376
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@985871 13f79535-47bb-0310-9956-ffa450edef68
2010-08-16 11:06:17 +00:00
Gary Tully 4a23f0d1c1 even more input to doc comment re pooling: https://issues.apache.org/activemq/browse/AMQ-2806
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@958962 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 13:23:30 +00:00
Gary Tully 8f3e831fcf more input to doc comment re pooling: https://issues.apache.org/activemq/browse/AMQ-2806
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@958961 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 13:17:11 +00:00
Gary Tully ff43b7a9aa tidy up doc comment re pooling: resolve https://issues.apache.org/activemq/browse/AMQ-2806
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@958921 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 10:45:06 +00:00
Gary Tully 4dd5b5efb7 resolve: https://issues.apache.org/activemq/browse/AMQ-2376 - add expiryTimeout such that pooled connections can have a determintic life span after which they expire. This allows the pool to be refreshed such that loadbalancing of failover reconnect can ocurr post recovery
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@956541 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 12:15:23 +00:00
Gary Tully d6bd98f4c7 test for pooled connection with inactive timouet on connection, close still works ok
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@941692 13f79535-47bb-0310-9956-ffa450edef68
2010-05-06 12:23:28 +00:00
Bosanac Dejan 76de7c05e6 https://issues.apache.org/activemq/browse/AMQ-2702 - introducing activemq-spring module
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@935952 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 15:05:29 +00:00
Bosanac Dejan b94342f604 https://issues.apache.org/activemq/browse/AMQ-2677 - starting connection in a pool
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@929488 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 11:51:49 +00:00
David Jencks 09fab742ff AMQ-2601 Make amq more blueprint-friendly, move away from spring lifecycle interfaces
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@908182 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 19:56:21 +00:00
Bosanac Dejan 72b73f06cd removing JDBCSpringTest as it is moved to sys tests
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@886833 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 15:57:19 +00:00
Bosanac Dejan 4caad1a058 investigating JDBCSpringTest intermittent failures
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@886751 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 12:12:37 +00:00
Bosanac Dejan 4e1d383555 https://issues.apache.org/activemq/browse/AMQ-2437 - jdbc recovery
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@821106 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 17:30:23 +00:00
Bosanac Dejan 20972bfdaf https://issues.apache.org/activemq/browse/AMQ-1886 - another test, but issue cannot be reproduced with embeded derby
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@820268 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 13:36:49 +00:00
Robert Davies eae5aa09d1 Fix for https://issues.apache.org/activemq/browse/AMQ-2249
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@813053 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 17:15:48 +00:00
Robert Davies 39d6f49b26 Fix for https://issues.apache.org/activemq/browse/AMQ-1614
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@799530 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 07:26:56 +00:00
Gary Tully 1a8fd95e6f expose accessor for internal ActiveMQSession so added value operations are accessible from the pooled session. resolve: https://issues.apache.org/activemq/browse/AMQ-2258
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@778413 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 12:45:33 +00:00
Gary Tully bcbb1ec1de add verifier test for set/get exception listener on pooled connection
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@763947 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 14:32:30 +00:00
Guillaume Nodet 9a1f9c2fe3 AMQ-2095: Make pooled sessions implement XASession for specific transaction management
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@740476 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 22:10:59 +00:00
Guillaume Nodet 1590da28a5 AMQ-1938: The pooled connection factory FactoryBean does not implement DisposableBean, thus leaking connections
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@695754 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 07:38:14 +00:00
Robert Davies eed43a8f05 Patch for https://issues.apache.org/activemq/browse/AMQ-1614
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@692178 13f79535-47bb-0310-9956-ffa450edef68
2008-09-04 18:06:50 +00:00