Commit Graph

75 Commits

Author SHA1 Message Date
Matt Pavlovich 30114aa86d [AMQ-9239] jakarta.jms - activemq-jms-pool, activemq-pool changes 2023-08-24 09:45:31 -05:00
gtully 004be56127 AMQ-2659 - make configurable based on xaAckMode, otherwise pure xa case can default to autoack in error. Additional tests 2018-06-13 11:48:43 +01:00
gtully eab9a0d057 [AMQ-6603] pull unnecessary guava dep from the new test 2017-03-01 15:25:57 +00:00
gtully 8641928553 [AMQ-6603] ensure failover does not track consumer creation that fails with an exception, fix and test. Thanks for the test Tadayoshi Sato 2017-02-28 17:17:18 +00:00
Claus Ibsen 960186af89 AMQ-5312: Reduce logging noise for activemq-pool if its stopped. 2014-08-07 14:54:52 +02: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 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
gtully 5c9dcee7ed https://issues.apache.org/jira/browse/AMQ-4757 reinstate brokerUrl prop to allow rar admin-object init of xa pool 2014-01-14 15:57:00 +00: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
gtully c387522217 https://issues.apache.org/jira/browse/AMQ-4426 - default to client ack, so that if a tx aborts we never auto ack or start a local transaction 2013-09-19 16:26:52 +01:00
Gary Tully 55a8ef54b5 allow xapooledconnectionfactory as an admin object - allows xa enlistment at the session level for jms style use cases with the RAR contents. validation of https://issues.apache.org/jira/browse/AMQ-3560 in eap 6.1
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1508958 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 16:54:04 +00:00
Timothy A. Bish 858ab263d4 Fix and test for: https://issues.apache.org/jira/browse/AMQ-4441
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1465723 13f79535-47bb-0310-9956-ffa450edef68
2013-04-08 18:58:11 +00:00
Timothy A. Bish 1b38caacf4 fix junit warnings. https://issues.apache.org/jira/browse/AMQ-4437
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1464584 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 15:00:05 +00:00
Gary Tully a3578eb91b https://issues.apache.org/jira/browse/AMQ-4426 - for cmt, ignore args to create session when tm and no tx, so session_transacted is not passed down to cf, avoid config error ex
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1463908 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 10:35:56 +00:00
Gary Tully 07c3db5eeb https://issues.apache.org/jira/browse/AMQ-4426 - allow objectfactory prop config via jndi, java:/amq/pcf config properties as strings in java:/amq/conf/pfc context
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1463790 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 23:19:42 +00:00
Gary Tully 059fd2f8c4 https://issues.apache.org/jira/browse/AMQ-4426 - queuesender and topicpublisher need to delegate destination tracking, otherwise anonymous publishers return null destination
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1463789 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 23:19:16 +00:00
Gary Tully 670d9d84a7 https://issues.apache.org/jira/browse/AMQ-4426 - fix and tests
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1463528 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 13:26:08 +00:00
Timothy A. Bish e1d4a0f986 fix for: https://issues.apache.org/jira/browse/AMQ-4410
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1461595 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 14:19:36 +00:00
Timothy A. Bish 5795eb8b8b Fix for: https://issues.apache.org/jira/browse/AMQ-4366
Expand the test a bit 

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1454522 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 20:06:11 +00:00
Timothy A. Bish f664be7461 Fix for: https://issues.apache.org/jira/browse/AMQ-4366
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1454514 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 19:56:17 +00:00
Timothy A. Bish a34fbb909c fix for: https://issues.apache.org/jira/browse/AMQ-4360
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1452979 13f79535-47bb-0310-9956-ffa450edef68
2013-03-05 20:19:51 +00:00
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