Commit Graph

638 Commits

Author SHA1 Message Date
Ville Skyttä 7c275cdb1a Use generics more 2016-02-28 01:06:59 +02:00
Erich Duda a4c4f811eb ARTEMIS-415 - [Artemis Testsuite] NettyPagingSendTest#testPagingDoesNotDuplicateBatchMessages 2016-02-22 10:32:24 -05:00
Erich Duda 4557f713f5 ARTEMIS-414 - [Artemis Testsuite] TemporaryQueueClusterTest#testClusteredQueue fails 2016-02-19 13:32:54 -05:00
Clebert Suconic 02afdbbb12 Upgrade proton to 0.12 2016-02-18 10:14:26 -06:00
Erich Duda 81d57361e8 ARTEMIS-403 - [Artemis Testsuite] AlmostLargeAsynchronousFailoverTest#testTransactional fails 2016-02-18 14:45:24 +01:00
Erich Duda 53987a99da ARTEMIS-396 - [Artemis Testsuite] ReceiveTest#testReceiveImmediate fails 2016-02-16 11:54:59 -05:00
Erich Duda ce906c8420 ARTEMIS-287 - [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines 2016-02-10 16:45:30 +01:00
Clebert Suconic ece5d81e3d ARTEMIS-388 fixing testsuite
(the socket.bind not being closed was preventing other tests to run successfully)
2016-02-09 18:59:47 -05:00
Clebert Suconic 60b828083d Fixing testsuite's dependency on Derby 2016-02-09 15:00:39 -05:00
jbertram dffe93152b ARTEMIS-395 auto-delete only if setting is true 2016-02-09 14:24:51 -05:00
jbertram 94dc2976ef ARTEMIS-388 listen for activation failures 2016-02-09 14:24:07 -05:00
Erich Duda 82eca32ba4 ARTEMIS-364 - [Artemis Testsuite] PagingTest#testPagingDifferentSizes fails 2016-02-08 16:59:13 -05:00
Erich Duda efffe9c263 ARTEMIS-365 - [Artemis Testsuite] AddressControlTest#testGetNumberOfPages fails 2016-02-08 10:40:50 -06:00
Martyn Taylor 32a9d60a3d Allow users to configure jdbc driver class name
This patch allows users to configure the Driver class that the JDBC
store and journal uses and removes Derby as a default.
2016-02-08 11:23:38 -05:00
Clebert Suconic 26945a4716 ARTEMIS-385 On a possible race the Topology final notification may get lost when using many connection factories
https://issues.apache.org/jira/browse/ARTEMIS-385

This fix will make sure we only wait for the topologies that are arriving from the current connection over the createFactory method
2016-02-04 09:35:08 -05:00
Erich Duda 5f1daf485c ARTEMIS-381 - [Artemis Testsuite] LargeMessageOverBridgeTest.testSendBytesAsLargeOnBridgeOnly fails 2016-02-02 15:13:48 +01:00
jbertram 1eb631e2b8 ARTEMIS-374 support schedule messages on LVQ 2016-02-01 11:58:56 -06:00
Erich Duda 3d6531e570 ARTEMIS-379 - [Artemis Testsuite] BackupSyncLargeMessageTest.testReserveFileIdValuesOnBackup fails 2016-02-01 10:08:15 -05:00
Erich Duda 0db2d3f097 ARTEMIS-377 - [Artemis Testsuite] NettySecurityClientTest#testProducerConsumerClientWithSecurityManager fails 2016-02-01 10:06:12 -05:00
Andy Taylor ecfa1fecc2 ARTEMIS-378 - expose some Network info via the management interfaces
https://issues.apache.org/jira/browse/ARTEMIS-378
2016-02-01 12:11:28 +00:00
Erich Duda 062a675a53 ARTEMIS-369 - [Artemis Testsuite] BridgeFailoverTest#testFailoverOnBridgeNoRetryOnSameNode fails 2016-01-29 09:30:45 -05:00
Erich Duda 3663f4c01e ARTEMIS-368 - [Artemis Testsuite] TemporaryQueueTest#testBlockingWithTemporaryQueue fails 2016-01-29 09:57:49 +01:00
Clebert Suconic a5aa44670d Improvements on JDBC Test 2016-01-27 21:56:59 -05:00
Clebert Suconic e62a820414 Fixing ServerMessage's copy and MQTT delivery 2016-01-27 17:12:56 -05:00
Clebert Suconic 4a20187ff2 Fixing name on JDBC tests 2016-01-27 14:25:57 -05:00
jbertram ff95b216ef ARTEMIS-357 test for client buffer mod 2016-01-27 13:21:17 -05:00
Lachezar Dobrev 0827d23ae3 Remove duplicate references to artemis-cli in pom.xml in tests.
Fixed pom.xml in integration-tests and unit-tests
Fixes warnings from Maven 3
2016-01-27 12:18:11 -05:00
Martyn Taylor 5383a0c409 Handful of JDBC Journal Fixes
This patch fixes a number of bugs with the JDBC Journal implementation.
Mainly around how it was handling transactions.  The XA transactions
tests are now enabled to test both the File and Database store.
2016-01-27 12:17:55 -05:00
Erich Duda 79f39693f3 ARTEMIS-365 - [Artemis Testsuite] AddressControlTest#testGetNumberOfPages fails 2016-01-27 12:17:29 -05:00
Erich Duda 2a756942ba ARTEMIS-364 - [Artemis Testsuite] PagingTest#testPagingDifferentSizes fails 2016-01-27 12:17:12 -05:00
Erich Duda 4ff20777d5 ARTEMIS-363 - [Artemis Testsuite] PagingTest#testDropMessages fails 2016-01-27 13:55:10 +01:00
Ville Skyttä 77d2e85838 Change StompV12Test to use waitDisconnect more 2016-01-26 16:34:04 -05:00
Clebert Suconic af150b5bea small improvement on stomp test 2016-01-25 21:33:28 -05:00
Ville Skyttä 2c4312d4f2 Disconnect on STOMP 1.2 errors
https://stomp.github.io/stomp-specification-1.2.html#ERROR
2016-01-25 21:33:28 -05:00
Ville Skyttä 4e5b5b393a Access static methods and fields directly 2016-01-25 12:12:54 -05:00
Ville Skyttä 09a3f224cd ARTEMIS-358 test case for topic disappearing on disconnect without unsubscribe 2016-01-25 11:19:54 -05:00
Martyn Taylor 4922a7618a Bump to next version to 1.3.0-SNAPSHOT 2016-01-20 17:25:07 +00:00
Andy Taylor c1de710eb3 ARTEMIS-346 - Add Management send text message functionality similar to ActiveMQ
https://issues.apache.org/jira/browse/ARTEMIS-346
2016-01-20 10:35:36 -05:00
Clebert Suconic 3f23c9916e ARTEMIS-347 - supporting URIs on the cluster connection 2016-01-19 17:35:12 -05:00
jbertram d94c044e90 ARTEMIS-349 LDAP plugin listener
This feature required a bit of refactoring to the plugin interface itself as
well as a restriction on the configuration so that either only one plugin could
be specified or an ulimited number of security-setting matches. This was done
to prevent messy situations where a plugin could update settings from the XML
or even another plugin if there were overlapping matches.
2016-01-19 09:45:52 -05:00
Clebert Suconic dddd0a1efe https://issues.apache.org/jira/browse/ARTEMIS-345 fixing URI for inVM throwing a log.warn 2016-01-13 17:48:23 -05:00
Clebert Suconic 23aa933ad7 fixing PagingTest 2016-01-13 17:10:11 -05:00
Clebert Suconic 74245a58bd fixing PagingTest 2016-01-13 15:03:55 -05:00
Erich Duda 18e97d55c9 ARTEMIS-343 - [Artemis Testsuite] DivertTest.testSingleNonExclusiveDivert3 fails 2016-01-13 10:15:01 -05:00
Erich Duda 7c22ebee12 ARTEMIS-342 - [Artemis Testsuite] NettySecurityClientTest.testProducerConsumerClientWithSecurityManager fails 2016-01-13 10:14:34 -05:00
Erich Duda 0c9c3defd6 ARTEMIS-341 - [Artemis Testsuite] ConsumerTest.testAcksWithSmallSendWindow[isNetty=false||true] fails 2016-01-13 10:14:11 -05:00
Martyn Taylor 64f74acdbc ARTEMIS-27 / ARTEMIS-340 Add JDBC Storage Manager 2016-01-13 09:38:40 -05:00
Clebert Suconic 2d3061d9b6 Improvements on Thread check 2016-01-12 17:22:56 -05:00
Erich Duda 2c0f1df827 ARTEMIS-337 - [Artemis Testsuite] LiveToLiveFailoverTest.testNonTransactedWithZeroConsumerWindowSize fails 2016-01-12 16:24:34 -05:00
Andy Taylor ea3c3e0aef ARTEMIS-334 - Add Management browse functionality similar to ActiveMQ
https://issues.apache.org/jira/browse/ARTEMIS-334
2016-01-12 14:26:57 +00:00
Clebert Suconic 5df57234d1 fixing thread leakage from test 2016-01-12 08:16:21 -05:00
Clebert Suconic ee962dc137 fixing missing tearDown call 2016-01-11 22:51:31 -05:00
Clebert Suconic c945879dec fixing hanging test 2016-01-11 21:00:48 -05:00
Clebert Suconic e56ca95fdc Dealing with expected IBM JDK thread and refactoring the Thread check as a Rule 2016-01-11 20:02:46 -05:00
Clebert Suconic 4e5ec13558 fixing checkstyle 2016-01-11 20:02:45 -05:00
Clebert Suconic d9ac06a907 remove now invalid tests
Since we are removing the finalize cleanup these tests are now invalid
2016-01-11 19:43:31 -05:00
Martyn Taylor 945963ed07 Remove DelegatingSession class
DelegatingSession class wraps ClientSessionImpl and attempts to close
session should it not be closed by the user.  It does this by
implementing finalize.  However, the order in which finalize runs can be
difficult to predict as compilers, and JIT compilers are able to
optimize early.

The current DelegatingSession was causing problems of finalize getting
called early (before consumers, producers were finished with the
session).  This was causing tests to fail on the IBM JDK (which
optimizes early).  The same happens on OpenJDK if the GC is forced.
2016-01-11 19:43:10 -05:00
Ville Skyttä 66e82be652 Remove dead code 2016-01-11 13:21:26 -05:00
Ville Skyttä 389762cb3a Add missing @Overrides 2016-01-11 13:20:57 -05:00
Clebert Suconic 7820fd6d60 ARTEMIS-332 avoid shutting down the server after interrupted threads on paging 2016-01-07 16:08:38 -05:00
Clebert Suconic 6b42f26283 fixing thread leakage from jgroups test 2016-01-07 15:07:59 -05:00
jbertram 6e702724b9 ARTEMIS-333 Redistribution + groups tests failing 2016-01-06 16:15:19 -06:00
jbertram e899c850e7 ARTEMIS-218 auto-create in cluster 2016-01-05 14:02:05 -06:00
jbertram 978f8eeda8 ARTEMIS-331 support 0-length large msg 2016-01-05 10:44:54 -05:00
Clebert Suconic 96849a42b7 ARTEMIS-332 - Duplicate delivery over Bridges under OME scenarios, paging and other failures
https://issues.apache.org/jira/browse/ARTEMIS-332
2016-01-04 20:49:28 -05:00
Martyn Taylor 2c430e597b [maven-release-plugin] prepare for next development iteration 2016-01-04 11:50:36 +00:00
Martyn Taylor f182c806b6 [maven-release-plugin] prepare release 1.2.0 2016-01-04 11:49:58 +00:00
Martyn Taylor 5f32e6575c [maven-release-plugin] prepare for next development iteration 2016-01-04 09:24:34 +00:00
Martyn Taylor 150c5d87aa [maven-release-plugin] prepare release 1.2.0 2016-01-04 09:19:35 +00:00
Ville Skyttä a0dc9861a0 Access static members directly 2015-12-21 22:01:21 -05:00
Ville Skyttä 2cb74839f9 Remove redundant type arguments 2015-12-21 21:57:16 -05:00
Martyn Taylor 90c9469701 [maven-release-plugin] prepare for next development iteration 2015-12-17 17:03:40 +00:00
Martyn Taylor df61224d2d [maven-release-plugin] prepare release 1.2.0 2015-12-17 17:01:58 +00:00
Martyn Taylor 0e8f2f39af ARTEMIS-312 Allow configurable of, and inject of client global thread pools 2015-12-16 18:19:25 -05:00
Clebert Suconic af1f79bff5 ARTEMIS-302 more changes around XA reliability (resilience on failures) 2015-12-16 10:19:35 -05:00
Andy Taylor d1e154e888 ARTEMIS-311 - added broker name to jmx object name properties.
Its now possible to also add the broker name to jmx tree avoiding clashes when multiple brokers are in a single vm. This is now the default but the old way can be used with some configuration

https://issues.apache.org/jira/browse/ARTEMIS-311
2015-12-16 10:19:01 -05:00
Clebert Suconic b1b4bb8a32 ARTEMIS-320 Refactoring TCP flow control and proper implementation of flow control on consumers
https://issues.apache.org/jira/browse/ARTEMIS-320
2015-12-10 16:50:26 -05:00
Clebert Suconic 351bcfc9f9 ARTEMIS-319 Improving files allocation and implementing journal-pool-files
https://issues.apache.org/jira/browse/ARTEMIS-319
2015-12-10 16:49:58 -05:00
jbertram 831eabfc73 ARTEMIS-303 listing subs fails for JMS2 shared sub 2015-12-08 15:11:53 -06:00
Ville Skyttä 6288f37064 Remove unused imports 2015-12-07 22:55:05 +02:00
Ville Skyttä f8a1c5ba8e Remove redundant type arguments 2015-12-07 22:55:05 +02:00
Ville Skyttä 3b5ee6c7ea Remove unnecessary casts 2015-12-07 22:53:42 +02:00
jbertram ae22fa2a5d ARTEMIS-314 test-case to exercise behavior 2015-12-07 13:39:53 -05:00
Ville Skyttä 25ae472455 Add missing @Override annotations 2015-12-06 01:27:35 +02:00
jbertram 956c54155f ARTEMIS-201 warn of potential OOME 2015-11-23 21:42:15 -05:00
Erich Duda 5dab6b8ed9 ARTEMIS-307 JMSIndividualAckTest#testAckedMessageAreConsumed fails on slower machines
The issue is solved by increasing timeout in consumer.receive method.
2015-11-23 21:40:11 -05:00
jbertram c0a6d6ee44 ARTEMIS-250 fix scale-down with security 2015-11-20 19:34:37 -06:00
Clebert Suconic b1d5076108 ARTEMIS-302 - more work about improving resilience of MDBs and XA 2015-11-16 18:11:44 -05:00
jbertram c40ab12843 ARTEMIS-300 deprecate basic security manager
The old property-file based security manager shouldn't be used anymore. Instead
use the JAAS InVMLoginModule for in-vm tests, embedded use-cases, etc. and use
the other JAAS login modules for normal server use-cases.
2015-11-11 14:17:46 -06:00
Clebert Suconic 7bbd17cd37 ARTEMIS-302 - Improving XA Resilience 2015-11-11 09:50:58 -05:00
jbertram 0c407922a8 ARTEMIS-261 cert-based auth 2015-11-04 15:56:33 -05:00
jbertram 3f6089891d ARTEMIS-293 rebalance inflow on topology change 2015-11-03 16:42:15 -06:00
Ville Skyttä 68c9f3fd69 Spelling fixes 2015-11-03 10:30:40 -05:00
Clebert Suconic 017bf8d85a ARTEMIS-291 fix tests 2015-11-02 13:15:13 -05:00
Erich Duda effe95c0ba ARTEMIS-290 PageCountSyncOnNonTXTest.testSendNoTx: fails on slower machines 2015-10-30 09:37:32 +01:00
Erich Duda 0007772b13 ARTEMIS-287 [Artemis Testsuite] PagingTest#testDeleteQueueRestart fails on slower machines 2015-10-29 11:27:26 +01:00
jbertram fe4dafedcb ARTEMIS-168 - pluggable authorization 2015-10-27 10:12:22 -04:00
Andy Taylor 290cb65b17 ARTEMIS-281 - fix reference counting for jgroups channels
https://issues.apache.org/jira/browse/ARTEMIS-281
2015-10-27 10:10:52 +00:00
Clebert Suconic 992c34bc6a Small tweak on test 2015-10-26 14:06:26 -04:00
Clebert Suconic e35c4d5800 SessionCloseOnGCTest#testCloseOneSessionOnGC avoiding intermittent failure - small improvement 2015-10-26 12:04:03 -04:00
Clebert Suconic bd946d2ce8 SessionCloseOnGCTest#testCloseOneSessionOnGC avoiding intermittent failure 2015-10-26 11:10:48 -04:00
Clebert Suconic 487d976760 ARTEMIS-277 IncompatibleVersionTest fails on slower machines
This closes #216
2015-10-26 10:49:49 -04:00
Andy Taylor 31f2389343 ARTEMIS-269 - sett restartBackup to true by default
https://issues.apache.org/jira/browse/ARTEMIS-269
2015-10-22 13:20:28 +01:00
Julian Scheid aa7696e329 ARTEMIS-270 Supply RemotingConnection for authorization 2015-10-20 18:23:41 -04:00
jbertram ef5a9809f2 ARTEMIS-256 orchestrate failback deterministically
The failback process needs to be deterministic rather than relying on various
incarnations of Thread.sleep() at crucial points. Important aspects of this
change include:

1) Make the initial replication synchronization process block at the very
last step and wait for a response from the replica to ensure the replica has
as the necessary data. This is a critical piece of knowledge during the
failback process because it allows the soon-to-become-backup server to know
for sure when it can shut itself down and allow the soon-to-become-live
server to take over. Also, introduce a new configuration element called
"initial-replication-sync-timeout" to conrol how long this blocking will occur.

2) Set the state of the server as 'LIVE' only after the server is fully
started. This is necessary because once the soon-to-be-backup server shuts
down it needs to know that the soon-to-be-live server has started fully before
it restarts itself as the new backup. If the soon-to-be-backup server restarts
before the soon-to-be-live is fully started then it won't actually become a
backup server but instead will become a live server which will break the
failback process.

3) Wait to receive the announcement of a backup server before failing-back.
2015-10-20 14:55:31 -04:00
Martyn Taylor 3e6f229436 ARTEMIS-262 Check connection status change before callbacks 2015-10-20 10:41:00 +01:00
Andy Taylor 98c2aa433f ARTEMIS-262 Fix Bridge OOM exception
Netty 4.x uses pooled buffers.  These buffers can run out of memory when
transferring large amounts of data over connection.  This was causing an
OutOfMemory exception to be thrown on the CoreBridge when tranferring
large messages.  Netty provides a callback handler to notify listeners
when a Connection is writable.  This patch adds the ability to register
connection writable listeners to the Netty connection and registers the
relevant callback from the Bridge to avoid writing when the buffers are
full.
2015-10-19 10:32:59 +01:00
Erich Duda 2dc317a571 ARTEMIS-259 ClientCrashTest: tests fail on slower machines 2015-10-14 13:23:27 +02:00
Clebert Suconic 6bf1241628 ARTEMIS-257 cleaning up dependencies on artemis-core-client 2015-10-13 10:44:49 -04:00
Clebert Suconic a5fab2754d ARTEMIS-252 fixing tests 2015-10-12 17:21:36 -04:00
Clebert Suconic 2a81a5f146 ARTEMIS-252 retryMessages retrying to topic subscriptions + some ammends to #193 2015-10-12 17:03:53 -04:00
Petter Nordlander 989172596e ARTEMIS-252 Added support to retry messages via JMX on JMS Queue interface 2015-10-12 17:03:42 -04:00
Petter Nordlander 7afe87996b ARTEMIS-252 added jmx operations to retry messages 2015-10-12 17:03:42 -04:00
jbertram 6ed9c5ae91 ARTEMIS-74 import JAAS auth from 5.x
This change allows the use of JAAS login modules for basic authentication
and authorization.
2015-10-09 11:42:22 -05:00
Clebert Suconic 206acdac7d ARTEMIS-238 and ARTEMIS-236 Fixing Legacy protocol support 2015-10-08 20:32:43 -04:00
jbertram b8e235f77e Clarify HTTP(S) upgrade config
Demonstrate that the Artemis acceptor receiving HTTP(S) upgrade connections
doesn't need any SSL configuration.
2015-10-05 08:38:22 -05:00
Julian Scheid 7fb30547f4 Add tests for ARTEMIS-230 2015-09-28 20:09:25 +02:00
Clebert Suconic f0fd89f24f Small tweak on test: Using Parameterized instead of exension 2015-09-25 14:47:49 -04:00
Julian Scheid f64c435727 ARTEMIS-228 accept binary WebSocket frames 2015-09-25 14:37:21 -04:00
Julian Scheid 6890f126cb ARTEMIS-229 validate user and role with address 2015-09-25 15:58:15 +02:00
Julian Scheid 2d679e9071 Add test case for ARTEMIS-231
The test doesn't actually fail, but the test output shows the problem.
2015-09-24 21:30:31 -04:00
Clebert Suconic 7a337a7e55 Revert "ARTEMIS-225 validate clientID is set for durable sub"
This reverts commit 1c933cfbae.
2015-09-21 20:39:07 -04:00
jbertram 1c933cfbae ARTEMIS-225 validate clientID is set for durable sub 2015-09-17 15:46:18 -05:00
Martyn Taylor bb2c890803 [maven-release-plugin] prepare for next development iteration 2015-09-15 15:43:44 +01:00
Martyn Taylor 63ea448728 [maven-release-plugin] prepare release 1.1.0 2015-09-15 15:41:37 +01:00
jbertram 2eac97aaff ARTEMIS-210 count references
It is possible for the closure of one resource to potentially impact
another since they are now sharing the same ServerLocator instance.
Keep track of references to avoid this.
2015-09-14 15:35:12 -05:00
Howard Gao 0abf52468b ARTEMIS-200 Message Compression Support 2015-09-14 09:56:19 +08:00
Martyn Taylor 6408fd0357 [maven-release-plugin] prepare for next development iteration 2015-09-11 19:01:57 +01:00
Martyn Taylor c512f12a34 [maven-release-plugin] prepare release 1.1.0 2015-09-11 19:01:19 +01:00
Clebert Suconic 1add10abfd ARTEMIS-223 Testcase replicating issue 2015-09-11 13:21:50 -04:00
Clebert Suconic f5a727259e ARTEMIS-222 fixing a deadlock that appeared on the testsuite (MultipleThreadsOpeningTest)
https://issues.apache.org/jira/browse/ARTEMIS-222
2015-09-11 09:07:49 -04:00
Clebert Suconic d5a01287a5 Improving test.
There's a race here that only happens on Virtual Machines (VMWare.. etc)
2015-09-11 09:06:38 -04:00
Clebert Suconic 7b2c50415a using new qpid-jms client on AMQP 2015-09-11 09:06:00 -04:00
Martyn Taylor fec6546480 [maven-release-plugin] prepare for next development iteration 2015-09-08 16:39:59 +01:00
Martyn Taylor 4d0b15b043 [maven-release-plugin] prepare release 1.1.0 2015-09-08 16:29:09 +01:00
Martyn Taylor 82f6a88d59 [maven-release-plugin] prepare for next development iteration 2015-09-07 10:02:01 +01:00
Martyn Taylor 8c1e0e15fc [maven-release-plugin] prepare release 1.1.0 2015-09-07 10:01:10 +01:00
Martyn Taylor a2aa18c123 [maven-release-plugin] prepare for next development iteration 2015-09-04 20:20:13 +01:00
Martyn Taylor a5decb659e [maven-release-plugin] prepare release 1.1.0 2015-09-04 20:19:11 +01:00
Martyn Taylor 4576ccea08 [maven-release-plugin] prepare for next development iteration 2015-09-04 19:48:52 +01:00
Clebert Suconic 90d05bb17d Improving openwire tests on the integration-testsuite
In one situation I have seen a failrue on ProducerFlowControl to break everything else from here
This change will both avoid the failure and change the report of leaked threads so we can find them easily on the system.out when it happens (for future debugging)
2015-09-03 19:16:19 -04:00
Clebert Suconic ab618d295d binding UDP to localhost so the testsuite will work on environments where UDP is not available due to firewal constraints
The server would need to have loopback routes for UDP for this to work.
2015-09-03 18:06:10 -04:00
jbertram ea9609c579 ARTEMIS-211 Memory leak using wildcard topic 2015-09-02 15:47:00 -05:00
Clebert Suconic 0f8750573c test fix on DuplicateCacheTest
Waiting for proper executor to finish
2015-08-31 19:49:01 -04:00
jbertram 853d3665df ARTEMIS-206 HTTP Upgrade does not work over HTTPS 2015-08-31 14:30:25 -05:00
Howard Gao 1642a856c3 Fix thread leak in test TransactionContextTest
This leak happens with amq5.12.0. It didn't happen
  with amq5.11.1. Adding connection.start() can work
  around this seemingly 5.12.0 issue.
2015-09-01 00:17:36 +08:00
Andy Taylor 2f18b4cbfc ARTEMIS-193 - OpenWire protocol only works with messages received over openwire
Fix the address conversion between protocols so its consistent

https://issues.apache.org/jira/browse/ARTEMIS-193
2015-08-27 10:23:38 +01:00
Clebert Suconic 2b45d6eb9e Adding simple test sending core & consuming OpenWire 2015-08-25 08:31:24 -04:00
jbertram 7a1199c475 ARTEMIS-210 outbound RA connection load-balancing
Inbound sessions are always created from the same ActiveMQConnectionFactory
which means the load-balancing policy is applied to them in the expected
manner. However, outbound sessions are created from independent, unique
ActiveMQConnectionFactory instances which means that the load-balancing
doesn't follow the expected pattern.

This commit changes this behavior by caching each unique
ActiveMQConnectionFactory instance and using it for both inbound and outbound
sessions potentially. This ensures the sessions are load-balanced as
expected.
2015-08-24 18:24:04 -05:00
jbertram 976174305e ARTEMIS-209 fix keepAlive 2015-08-14 16:20:10 -05:00
jbertram cbebbc43fd Fix ReplicatedLargeMessageWithDelayFailoverTest 2015-08-14 16:20:06 -05:00
Clebert Suconic 030f2fc59a Revert "ARTEMIS-187 hold lock between live server and tools"
This reverts commit f0f4f1684d.

Sorry about this.. I will rework this and send a commit again
2015-08-14 01:02:39 -04:00
Clebert Suconic f0f4f1684d ARTEMIS-187 hold lock between live server and tools
This should avoid users damaging data while the server is running (by for instance running compact while the server is running)

https://issues.apache.org/jira/browse/ARTEMIS-187
2015-08-13 23:57:49 -04:00
Clebert Suconic 1dae99746b ARTEMIS-204 Improvements on OpenWire
https://issues.apache.org/jira/browse/ARTEMIS-204

by consequence this will also fix any possible issues with AMQP
2015-08-13 20:39:01 -04:00
Martyn Taylor 90940091d3 Downgrade Paho SNAPSHOT dep to latest release 2015-08-12 11:59:12 +01:00
jbertram 4fa701eaff Fix HAClientTopologyWithDiscoveryTest 2015-08-11 15:23:06 -05:00
jbertram f6061d0d53 Fix ReplicatedMultipleServerFailoverExtraBackupsTest 2015-08-11 14:06:58 -05:00
jbertram 38188cdf2e ARTEMIS-179 fix BindingsClusterTest 2015-08-10 16:19:01 -05:00
Clebert Suconic 5ac2c2444b manual checkstyle changes 2015-08-10 10:08:23 -04:00
Clebert Suconic bac96047f5 automatic checkstyle change
this is just calling Idea format on all the files using the new style
I am separating manual changes from automatic changes in case I have to repeat the manual changes again
2015-08-10 09:26:42 -04:00
Clebert Suconic 517e076620 fixing tests
The refactoring on native left a few name changes and a small twek that I needed to make on buffers
2015-08-03 23:39:35 -04:00
Clebert Suconic 7cfc33790d ARTEMIS-162 Fix non serializable JGroups on Configuration clone used on Colocated support
https://issues.apache.org/jira/browse/ARTEMIS-162
2015-08-03 23:39:35 -04:00
jbertram fe95e34390 Ensure MQTT tests clean up SSL properties 2015-08-03 08:24:28 -04:00
jbertram ecc2cecf87 Fix NPE in management test 2015-08-03 08:24:28 -04:00
Clebert Suconic 6fe9e0ebd6 ARTEMIS-163 First pass on the native AIO refactoring
https://issues.apache.org/jira/browse/ARTEMIS-163

On this pass I'm just converting the native layer to a simpler one.
It wasn't very easy to change the alignment at the current framework,
so I did some refactoring simplifying the native layer

The volume of the nubmer of changes here is because:

- The API is changed, we now don't close the libaio queue between files
- The native layer won't use malloc as much as it used to, saving some CPU and memory defragmentation
- I organized the code around nio and libaio
2015-07-29 22:12:03 -04:00
Clebert Suconic d5dde68f0c ARTEMIS-157 fixing isHA on connectionFactory 2015-07-22 17:46:04 +01:00
Ville Skyttä d6f8ed8d70 Deprecate PROTOCOL_PROP_NAME, avoid deprecation warning on STOMP tests 2015-07-22 11:54:18 +01:00
Ville Skyttä 78cb156ef9 Spelling fixes 2015-07-13 09:38:00 -04:00
Ville Skyttä b0a80ce1be Spelling fixes 2015-07-09 10:41:03 -04:00
Martyn Taylor 0f82ca754b Added Initial MQTT Protocol Support 2015-07-09 11:08:04 +01:00
Clebert Suconic aa4a06329f [ARTEMIS-144] adding Browse and a few other improvements 2015-06-25 15:02:05 -04:00
jbertram 7c066c0ee4 ARTEMIS-105 forceFailover always throws exception 2015-06-24 09:47:13 -05:00
Clebert Suconic 077a416ee0 Improving up time of some tests 2015-06-23 16:35:44 -04:00
Clebert Suconic 1492fe7adc speeding up test 2015-06-23 12:42:59 -04:00
Clebert Suconic f401a67ffe ARTEMIS-136 extending XA change to also cover RBOTHER 2015-06-23 10:08:23 -04:00
Clebert Suconic e690da96a6 simple test fix 2015-06-22 20:49:27 -04:00
Clebert Suconic e3aa94e394 ARTEMIS-142 Fix on import / export tests 2015-06-22 19:32:29 -04:00
jbertram 494477b240 ARTEMIS-142 ActiveMQClusteredTest fix 2015-06-22 09:49:54 -05:00
Clebert Suconic 4388923527 ARTEMIS-139 data.folder related to artemis
https://issues.apache.org/jira/browse/ARTEMIS-139

I'm using the constructors on File(parent, filename) now with the home directory
2015-06-17 14:10:54 -04:00
Clebert Suconic 07f9fe4e7b [ARTEMIS-138] list will return empty list now on non existent folders
https://issues.apache.org/jira/browse/ARTEMIS-138

The list method should return an empty list in case of non existent folders,
So this would unveil whatever is the cause for non existent folders at the next level where it's happening
2015-06-16 14:38:53 -04:00
jbertram adb9ccd013 [ARTEMIS-92] Transformer instance injection 2015-06-16 13:24:35 -05:00
Clebert Suconic 51c34c87d2 ARTEMIS-136 - XA Error fix with proper exception error
https://issues.apache.org/jira/browse/ARTEMIS-136

From what I researched from implementers of XA TM if you throw ERR over communication errors the transaction manager will create
an heuristic transaction to be manually dealt with.

Other XA Implementations (such as Oracle JDBC) are return FAIL over communication failures during any XA operation.
2015-06-15 16:34:55 -04:00
John D. Ament 3710b3aa3c ARTEMIS-103 Changed JGroupsBroadcastEndpoint to not close its JChannel since its externally managed. Added javadocs to impacted areas to clarify that the JChannel is not closed by these implementations. 2015-06-14 19:59:28 -04:00
jbertram cb4d2e046e ARTEMIS-109 restore optional divert routing name 2015-06-11 16:28:06 -05:00
John D. Ament 8aa598f594 ARTEMIS-91 Separated out interface for ServiceRegistry. Provided a getter in the ActiveMQServer interface. 2015-06-10 22:48:48 -04:00
Clebert Suconic 309ce4324c Fixing javadoc and removing the -Xdoclint option from the pom.xml
Also, since JDK 1.8 is no longer required I'm downgrading the JDK to 1.7 minimal.
We can review that back to 1.8 when we really need 1.8 features.
2015-06-09 22:13:11 -04:00
Clebert Suconic cd205f6b9d ARTEMIS-130 and ARTEMIS-132 connection-factory constructors / Adding inVM serialization
https://issues.apache.org/jira/browse/ARTEMIS-130 connection-factory constructors
https://issues.apache.org/jira/browse/ARTEMIS-132 adding vm as an URL on connection factory serialization

Adding new constructors into connection factory
This will make examples easier to understand, less stuff to be written before instantiating connection factories
2015-06-04 12:17:05 -04:00
jbertram 20326d0d83 ARTEMIS-19 allow disabling of message load-balancing 2015-06-03 16:21:43 -05:00
Thiago Kronig d48b4f4770 ARTEMIS-129 License header should be a normal comment
To reproduce this commit, apply a replace regex rule using:

    search regex: /\*\*\n \* Licensed
    replace: /\*\n \* Licensed

These files had to be changed manually:

    artemis-selector/src/main/javacc/HyphenatedParser.jj
    artemis-selector/src/main/javacc/StrictParser.jj
    artemis-website/src/main/resources/styles/impact/css/pygmentize.css
    artemis-website/src/main/resources/styles/impact/css/site.css
2015-06-03 10:19:45 -04:00
Clebert Suconic a6b8a09b65 Cleanup issues reported by error prone
We had a few reported small issues on the codebase from the recent introduced google error prone.
This should eliminate any issues, and I am making sure these won't happen again
2015-05-28 23:49:59 -04:00
jbertram 666b6ae03b Update hacking guide; add example tests 2015-05-28 12:20:35 -05:00
mnovak 0cd7874f83 ARTEMIS-125 Shared backup server with disabled scale down policy does not activate itself.
If standalone backup server with shared has defined scale-down policy
but it's disabled then backup does not activate. Problem is that
server is checking only whether scale down is defined but if it's
enabled. This causes that server.stop() is called and backup does
not activate.
2015-05-28 11:34:10 -04:00
jbertram 328611fdc9 More test-suite refactoring
Lots of work on the test-suite in this commit including:
- Rename ServiceTestBase to ActiveMQTestBase
- Make AddressSettings fluent
- Remove unnecessary tearDown() implementations
- Use ActiveMQTestBase.create*Locator() instead of
  ActiveMQClient.createServerLocator*(..)
- Use fluent ServerLocator methods
- Make sure all ActiveMQServers.newActiveMQServer invocations
  are surrounded with addServer() where appropriate
- Create a few example tests to be references from hacking-guide
- Update hacking-guide with more info on writing tests
- Refactor config creation methods in ActiveMQTestBase
2015-05-28 08:49:02 -05:00
Thiago Kronig 7ca05753bf Fix integration-tests: Arrays.toString(..) and ignored AssertionError 2015-05-21 19:45:01 -04:00
Thiago Kronig 27dd5c2652 Log Arrays.toString(nodes) at ClusterTestBase 2015-05-21 19:45:01 -04:00
Martyn Taylor 22d54c5830 [maven-release-plugin] prepare for next development iteration 2015-05-21 13:47:45 +01:00
Martyn Taylor 3435d5948f [maven-release-plugin] prepare release 1.0.0 2015-05-21 13:43:56 +01:00
Martyn Taylor 97210427df [maven-release-plugin] prepare for next development iteration 2015-05-20 11:26:38 +01:00
Martyn Taylor 3fb3799f91 [maven-release-plugin] prepare release 1.0.0 2015-05-20 11:17:31 +01:00
Andy Taylor e2e73ffa07 merge PR #272 - Open wire protocol fixes 2015-05-20 11:00:42 +01:00
Martyn Taylor f14b3353f4 Support reconnect on OpenWire failover transport 2015-05-20 10:40:50 +01:00
jbertram 99147d0713 Refactor base test classes
This has bothered me for awhile, but writing the hacking guide has
given me an opportunity to refactor some of our test-suite to be
simpler, more consistent, and easier to understand. This is
important if we want users to provide well-written tests. Our
test-suite is an important part of the code-base and it should be
easy to write good tests.

Basically I just consolidated CoreUnitTestCase, UnitTestCase, and
ServiceTestBase into a single class named ServiceTestBase. I also
simplified some of the configuration creation methods to reduce
duplicated code.
2015-05-19 15:27:13 -05:00
jbertram 63f7837a4d Remove unnecessary check
When this test is run from QueueControlUsingCoreTest the connection
count check will fail because of the request/reply semantics of the
test itself.
2015-05-19 12:48:46 -05:00
jbertram d24f2eb10f Ensure tests use proper directory 2015-05-19 11:31:11 -05:00
jbertram 8561d60f54 ACTIVEMQ6-110 getDeliveringMessages() broken 2015-05-18 13:57:41 -05:00
Martyn Taylor 73c5f2e342 [maven-release-plugin] prepare for next development iteration 2015-05-13 15:24:55 +01:00
Martyn Taylor bfc9d8f72d [maven-release-plugin] prepare release 1.0.0 2015-05-13 15:24:16 +01:00
Martyn Taylor a17c828b85 Ensure all references to the project use ActiveMQ Artemis 2015-05-13 11:51:26 +01:00
Martyn Taylor 1013e7f1dd [maven-release-plugin] prepare for next development iteration 2015-05-12 13:51:35 +01:00
Martyn Taylor d6466b7a1b [maven-release-plugin] prepare release 1.0.0 2015-05-12 13:50:56 +01:00
Martyn Taylor 3e34044d2b [maven-release-plugin] prepare for next development iteration 2015-05-11 21:50:41 +01:00
Martyn Taylor d2de238a30 [maven-release-plugin] prepare release 1.0.0 2015-05-11 21:48:17 +01:00
jbertram 2cbeedab89 Clean up 'ActiveMQ' refs in literals 2015-05-11 11:23:35 -05:00
jbertram f509ce7519 ACTIVEMQ6-70 broker resource limits
Implements basic limits on the number of connections and number of
queues a particular user can create to/on the broker.
2015-05-04 20:37:20 -05:00
jbertram 3eb835a8ab ACTIVEMQ6-96 acceptor limit
Adds a configuration property on both in-vm and Netty acceptors
whereby the number of connections allowed is configurable.
2015-05-04 16:07:27 -05:00
Clebert Suconic ea3370b38c Moving artemis-tools to artemis-cli and improving the tooling
Artemis tools is now part of the cli
Bootstrap was renamed to CLI
2015-05-03 12:42:19 -04:00
jbertram 791cc5c50c More rename updates 2015-04-30 09:07:20 -05:00
Andy Taylor 24a4c63458 renamed schemas 2015-04-29 10:49:43 +01:00
jbertram 9a6ae57d45 Casting issue with management op over core 2015-04-27 18:30:01 -04:00
Justin Bertram 8f52a622d0 ACTIVEMQ6-1 Artemis rename
Based on the Apache ActiveMQ community vote this project is being
renamed "Artemis."
2015-04-27 17:48:02 -04:00
Clebert Suconic f509c075c6 ACTIVEMQ6-1 Artemis rename
This commit is a simple mv of the files.. We required two commits to preserve history,
one to git mv, one for the actual changes...

otherwise history would be lost

Based on the Apache ActiveMQ community vote this project is being
renamed "Artemis."
2015-04-27 17:44:45 -04:00
Martyn Taylor 11e1b850c9 Renamed ActiveMQ6 to ActiveMQ Artemis 2015-04-24 14:07:31 +01:00
Clebert Suconic ada112a6a3 ACTIVEMQ6-94: Using proper flow control on very large messages over the bridge
This will remove some of the verifications written by Howard on his commit.
I did this to simplify the flow control

This closes #197
2015-04-23 15:48:20 -04:00
Howard Gao c1111cc156 ACTIVEMQ6-94: HornetQ Bridge does not handle large messages
When sending a large message that exceeds the size of
Integer.MAX_VALUE, the bridge will get negative chunk size during
fowarding. And the resend cache is not limited so there is a
potential that it may get OutOfMemory exception.
2015-04-23 15:02:01 -04:00
Daniel Pocock 00837c120d Management Methods for first message timestamp 2015-04-22 17:01:39 -05:00
Clebert Suconic 95b6328993 Queue Auto-create fixes on OpenWire
this is basically addressing a performance issue on OpenWire, setting the auto-create to the PostOffice
after not being able to route

The core protocol stays the same in regard to the auto-create since the exceptions are happening after the queueQuery
2015-04-21 18:00:07 -04:00
Jeff Genender 188e3b76bd ACTIVEMQ6-97 - Change HQ to AMQ for properties/headers/doc. Remove as much HQ as possible and change to AMQ to make this close to the ActiveMQ project. 2015-04-21 12:26:44 -04:00
Clebert Suconic 44bfe26f3c using temporary folders under ./target
Sometimes /tmp doesn't support ext4 (tmpfs) and there's always a risk of leaving unnatended files in cases of crashed.
This is in alignment with how other tests run at apache
2015-04-09 22:03:03 -04:00
Clebert Suconic abeb0bf3c2 Improving test timing
HangConsumerTest was hanging for 20 seconds for no real reason. this change will improve the timing on the test
2015-04-09 15:05:19 -04:00
Clebert Suconic 2154c754c8 Fixing a NPE case after Duplciate detection
If a Transaction wasn't created, the case for duplciate Detection would cancel a transaction that never happened
and it would get a NPE instead of a TX Exception.

It wasn't a big deal as the client got an exception anyways and the users were able to cancel in that case
but the message sent was a string containing just "Null".

this will fix it with a proper handling
2015-04-09 15:03:47 -04:00
Martyn Taylor 548735f8b6 Add Auto JMS queue creation for OpenWire 2015-04-09 17:59:15 +01:00
Clebert Suconic dea60ed3b6 ACTIVEMQ6-95 Large Message doesn't work on clustering & null Persistence
https://issues.apache.org/jira/browse/ACTIVEMQ6-95

The message.copy is broken when you set persistence=false, and the bridge will use that method before forwarding the message
this commit is fixing NullStorageLargeServerMessage.copy and adding the proper testcase to validate the fix
2015-03-31 12:33:22 -04:00
Claus Ibsen dee060bb5d Polish and renamed hornetmq to activemq-6 2015-03-31 11:48:56 -04:00
Clebert Suconic 519a47f023 ACTIVEMQ6-89 Refactored stomp support contributed
https://issues.apache.org/jira/browse/ACTIVEMQ6-89

I have done a lot of refactoring on this. So we can a different version of the interceptor for each protocol based on a base class now.
Just an abstract class over Stomp would be a bit hacky... this is a better approach.
2015-03-31 11:23:05 -04:00
nberdikov b2524b1be4 ACTIVEMQ6-89 Added possibility to intercept stomp frames
https://issues.apache.org/jira/browse/ACTIVEMQ6-89

This was originally contributed at #182. We have squashed the commits and rebased them here
This closes #182
2015-03-31 11:23:05 -04:00
Martyn Taylor 9da0a37b89 [maven-release-plugin] prepare for next development iteration 2015-03-27 15:38:13 +00:00
Martyn Taylor 2d9e3128c9 [maven-release-plugin] prepare release 10.0.0-M1 2015-03-27 15:21:10 +00:00
Martyn Taylor babdc21b24 [maven-release-plugin] prepare for next development iteration 2015-03-24 15:21:20 +00:00
Martyn Taylor db40d55a86 [maven-release-plugin] prepare release 6.0.0-M1 2015-03-24 15:12:28 +00:00
Martyn Taylor 7c206231ee [maven-release-plugin] prepare for next development iteration 2015-03-16 17:42:39 +00:00
Martyn Taylor ee49ca2a0d [maven-release-plugin] prepare release 6.0.0 2015-03-16 17:41:49 +00:00
Martyn Taylor ab1c585ace [maven-release-plugin] prepare for next development iteration 2015-03-12 19:11:44 +00:00
Martyn Taylor ee57649f83 [maven-release-plugin] prepare release 6.0.0 2015-03-12 19:10:21 +00:00
Martyn Taylor f3d7edd6b4 [maven-release-plugin] prepare for next development iteration 2015-03-12 19:00:39 +00:00
Martyn Taylor a97178abaf [maven-release-plugin] prepare release 6.0.0 2015-03-12 19:00:02 +00:00
Clebert Suconic e065d25b6f A few changes around logging-processor
- Bumped up version to 2.0.0.Alpha
- Client bundle changes to be copmatible with 2.0.0
- Fixing bundle / Logging classes for missing format (it was an issue with the previous one already)
- Fixed up dependencies to avoid transient downloads
2015-03-12 10:49:17 +00:00
Clebert Suconic d36a1d74af Fixing test dependencies
- removing unused methods
- moving JMSXdeliveryCountTest to /extra-tests
- A few transactions methods that were not being used and creating issues to the release
due to an old dependency to the TM

This closes #173
2015-03-12 10:49:17 +00:00
Martyn Taylor 77921956c5 Send error on create producer when no dest exists
Returns an error to the client causing InvalidDestinationException to be
thrown when an ActiveMQ 5.x client attempts to create a producer with a
destination that does not exist.  (Over OpenWire Protocol).
2015-03-12 10:49:17 +00:00
jbertram fa549a00e7 remove useless JavaDoc 2015-03-10 15:23:07 -05:00
jbertram 88ed03e2bd ACTIVEMQ6-87 Strip @author tags 2015-03-10 15:23:07 -05:00
Martyn Taylor d29f495771 [maven-release-plugin] prepare for next development iteration 2015-03-10 13:25:56 +00:00
Martyn Taylor 1aea09e862 [maven-release-plugin] prepare release 6.0.0 2015-03-10 13:23:21 +00:00
Martyn Taylor 2fa5b19ed2 [maven-release-plugin] prepare for next development iteration 2015-03-10 10:11:35 +00:00
Martyn Taylor 6058d115fd [maven-release-plugin] prepare release 6.0.0 2015-03-10 10:01:54 +00:00
Clebert Suconic 0f6d35b324 Moving ActiveMQLoggerHandler away from clashing package util
This was causing issues with javadoc
utils is also a package on activemq-server. ActiveMQUtilLogger is using a super class that was not part of the
source path on the javadoc plugin what caused it to exception and interrupt building
2015-03-09 18:21:02 -04:00
Martyn Taylor 1fe673429e [maven-release-plugin] prepare for next development iteration 2015-03-09 18:14:10 +00:00
Martyn Taylor 5c0bed8994 [maven-release-plugin] prepare release 6.0.0 2015-03-09 17:55:56 +00:00
Martyn Taylor 8603eca336 Remove duplicate deps from poms 2015-03-09 16:29:57 +00:00
Clebert Suconic 11dadb5a2a Fixing Logger errors on the testsuite
Fixing the classpath so some tests would find the LogManager configured
Fixing the dependency on the AssertionLoggerHandler so all the tests could also see it without further errors
2015-03-06 23:29:15 -05:00
Clebert Suconic d101bcbf59 Fixing ServiceLocator on the testsuite
My previous commit broke the location of the ServiceUtil / TransactionManagerLocator
This commit is setting a new DummyTM on the integration-tests-suite and the proper TM Locator on the extra-tests
2015-03-06 22:57:04 -05:00
Clebert Suconic 3661829e6d Refactored the testsuite a bit
With these changes the testsuite is not using any LGPL code by default. Anything woud go through extra-tests

These following changes were made on this commit (in summary):
- renamed byteman-tests as extra-tests
- added extra-tests on a new profile called extra-tests
- added all the other tests back to the tests profile
- removed concurrent-tests and moved them all to timing-tests
- removed old tests that were ignored for a long time and were stale
2015-03-06 17:16:26 -05:00
Clebert Suconic b5a04eb79f fixing snapshot dependencies after the release 2015-03-06 16:53:36 -05:00
Martyn Taylor 2b4e7babb6 Prepare examples,tests for release 2015-03-06 15:28:08 +00:00
Andy Taylor 8ce007f4ab fixed test poms to exclude cat X tests modules 2015-03-06 14:23:50 +00:00
Martyn Taylor 969d02f15f reset Version numbers after release revert 2015-03-06 11:43:46 +00:00
jbertram 63064506e0 Increase timeouts for slower environments 2015-03-04 14:44:24 -06:00
jbertram 080c1dd058 Make test more robust
It is possible for the createHAServerLocator() method to return a
connection to the node with the non-default password causing the test
to fail.
2015-03-04 14:44:24 -06:00
Clebert Suconic b00a0a99ab Fixing the build after the release (6.0.1 snapshot) 2015-03-03 12:36:27 -05:00
Clebert Suconic f896a394e9 Fixing when the storage is stopped for the storage manager
In some cases the ID Generator will be called after the JournalStorage was stopped.
AS a result you could have cases where the ID generator is called and the journal storage is stopped.

Also I added some check to IDs and added some code to cleanup old IDS on the BatchIDManager
2015-02-26 22:52:27 -05:00
Andy Taylor e6a501a43a fixed test to be more robust 2015-02-26 13:41:56 +00:00
Andy Taylor 97e63645d3 topic control test fix 2015-02-26 11:06:36 +00:00
Clebert Suconic 210222e24f moving export-journal / import-journal to the proper tools place
This is simply moving the export/import journal to its proper place.
The previous commit should have added docs about this
2015-02-26 00:26:52 -05:00
Martyn Taylor e194b7803e Replace all references of port 5445 with 61616 2015-02-25 13:27:04 +00:00
Andy Taylor 64d0547268 ACTIVEMQ6-80 - update acceptor config to use URI's
https://issues.apache.org/jira/browse/ACTIVEMQ6-80

The configuration of acceptors and connectors now takes a uri rather than params
2015-02-19 12:10:49 +00:00
jbertram a17955e665 Remove reference to JBoss' Maven repo.
Remove the reference to the JBoss Maven repo, and make all the necessary
adjustments on the child-projects. It turns out we don't even need the
security dependencies in the tests.
2015-02-12 14:42:51 -06:00
jbertram 2cbef28cc7 ACTIVEMQ-77 auto queue creation on AMQP send/rec
Implements a new feature for the broker whereby it may automatically
create and delete queues which are not explicitly defined through
the management API or file-based configuration when a client sends a
message to or receives from a queue via the AMQP protocol. Note,
the destination has to be named like "jms.queue.*" to be auto-
created. The queue may subsequently be deleted when it no longer has
any messages and consumers. Auto-creation and auto-deletion can both
be turned on/off via address-setting.
2015-02-12 14:02:45 -06:00
Clebert Suconic 87966029c7 This closes #93 on URI work and connection factory serialization 2015-02-12 15:01:12 -05:00
Andy Taylor 3b76ccc92b ACTIVEMQ6-7 - Improve Serialization on Connection Factory
https://issues.apache.org/jira/browse/ACTIVEMQ6-7

Connection Factory is now externalizable and is now serialized as a string that represents a URI. There are schemas for every possible type for connection factory and server locator.

The client JNDI representation of factories has also been changed to be consistent with this.
2015-02-12 09:14:24 +00:00
Clebert Suconic 60179cfc98 Fixing test failure
This test started to fail after performance improvements from  ACTIVEMQ6-78
After some investigation it turned out that this test was racing with the client
crashing even before the queue was created or sending a non persistent message
asynchronously while the client crashed before the server received the message.

I've also decreased some of the times on pings so the test could run a bit faster
2015-02-11 12:47:14 -05:00
Clebert Suconic b24d72900b ACTIVEMQ6-7 - Improve Serialization on Connection Factory
https://issues.apache.org/jira/browse/ACTIVEMQ6-7
2015-02-11 11:36:10 +00:00
jbertram 1310442244 ACTIVEMQ6-76 auto queue creation on STOMP send/sub
Implements a new feature for the broker whereby it may automatically
create and delete queues which are not explicitly defined through
the management API or file-based configuration when a client sends a
message to or consumes from a queue via the STOMP protocol. Note,
the destination has to be named like "jms.queue.*" to be auto-
created. The queue may subsequently be deleted when it no longer has
any messages and consumers. Auto-creation and auto-deletion can both
be turned on/off via address-setting.
2015-02-09 09:03:58 -06:00
jbertram 593ea2dde2 test needs more time 2015-02-04 11:31:07 -06:00
jbertram 20452083d7 give receiver a bit more time on bridge test 2015-02-02 15:00:08 -06:00
Clebert Suconic 5e72f7e283 This closes #88 - fixing race on test 2015-02-02 14:19:43 -05:00
jbertram d523f630a0 fix potential race condition in test 2015-02-02 12:26:22 -06:00
Andy Taylor 076faa759f ACTIVEMQ6-74 - removing unused old jaas implementation and associated tests etc
https://issues.apache.org/jira/browse/ACTIVEMQ6-74

This is ready for the import of the ActiveMQ 5 JAAS implementation for 6.1
2015-02-02 15:45:58 +00:00
jbertram fe11fb4c02 avoid potential NPE 2015-01-30 13:35:28 -06:00
jbertram 9e214e9c43 remove unnecessary cache operation 2015-01-30 13:35:27 -06:00
jbertram d895988faf fix race in test 2015-01-27 15:40:15 -06:00
jbertram 8f4142f87e Fix test, remove redundant operation 2015-01-26 16:25:30 -06:00
jbertram dfb7d3c382 Fix test, adjust logging 2015-01-26 14:03:54 -06:00
Martyn Taylor 8b631c1426 Only check TM exists for JMSBridge with ONCE_ONLY
A transaction manager is only required on the JMSBridge when the QoS
level is set to ONCE_AND_ONCE_ONLY.  Previous to the this patch it was
also checking for a TM on the AT_MOST_ONCE QoS level.  This patch also
ensures that the TM is set to null after each test run.
2015-01-23 10:37:39 +00:00
Clebert Suconic 2c7db814f0 fixing checkstyle that I messed up on my last commit 2015-01-22 12:07:53 -05:00
Clebert Suconic 4ebacc9d87 Fixing a few intermittent failures
These tests were not as broken as on 2.3.x from the old hornetq branch where this fix originated.
However I will play safe here as I believe the race could be after the exception is raised and before the counter was added
(on ActiveMQMessageHandlerTest)
2015-01-21 18:40:19 -05:00
Clebert Suconic 0eb1e332d3 ACTIVEMQ6-73 Adding missing methods
https://issues.apache.org/jira/browse/ACTIVEMQ6-73
https://bugzilla.redhat.com/show_bug.cgi?id=1174152

this is adding missing methods on the Management interface as originally raised at
https://bugzilla.redhat.com/show_bug.cgi?id=1174152 by RedHat
2015-01-21 18:32:21 -05:00
jbertram 754d481d53 ACTIVEMQ6-52 Graceful shutdown
Implements a feature whereby the broker will not shutdown while there are
clients connected. A timeout can be specified so that even if there are
clients connected the broker will still shutdown after a certain time.
2015-01-21 13:18:55 -06:00
Clebert Suconic 9748340a0e This closes #66 on JMS / RA fixes around tests and TM 2015-01-16 11:54:33 -05:00
Martyn Taylor 2e9aad9ef4 Update JMS and RA Tests to ensure fresh TX usage
Some of the OutgoingConnection and RA tests were failing due to a
previous transaction being present when using the Arjuna TM.  This patch
adds methods to allow tests which TM to use and ensures that Dummy TM is
cleaned up each after each test.
2015-01-16 16:28:27 +00:00
Justin Bertram fe1ba7ca21 ACTIVEMQ6-69 remove deprecated items 2015-01-15 11:55:24 -06:00
Andy Taylor 4b63891aaa ACTIVEMQ6-67 - cleaned up configuration
https://issues.apache.org/jira/browse/ACTIVEMQ6-67

fixed distribution so that file based security works and hot deployers as broken and no longer needed with new bootstrap.

Also combined the jms and core configuration files.
2015-01-15 15:48:22 +00:00
jbertram e293d80f08 ACTIVEMQ6-13 auto-create/auto-delete jms queues
Implements a new feature for the broker whereby it may automatically
create and delete JMS queues which are not explicitly defined through
the management API or file-based configuration. A JMS queue is created
in response to a sent message or connected consumer. The queue may
subsequently be deleted when it no longer has any messages and
consumers. Auto-creation and auto-deletion can both be turned on/off
via address-setting.
2015-01-13 15:29:17 -06:00
Clebert Suconic ec9ff4f55e ACTIVEMQ6-68 Improving Scale down routine and fixing test
https://issues.apache.org/jira/browse/ACTIVEMQ6-68

The logic on transferring method is a bit complex, where
I found a better way to calculate the targetIDs.

This will also fix a few ScaleDownTests

I also added some extra tests using ScaleDownDirect
2015-01-12 21:46:55 -05:00
Martyn Taylor e58f2362cc Fix failing RA OutgoingConnectionTests
Some of the outgoing connection tests require a dummy transaction
manager to setup a fake transaction.  The default transaction manager is
set to the JBoss TX manager and so the tests were failing.  This patch
split the OutgoingConnectionTest into ones that require a real TM
manager vs Dummy TM Manager.
.
2015-01-06 17:06:56 +00:00
Clebert Suconic e0b0b6bf89 ACTIVEMQ6-64 Messages duplicated during ScaleDown or queue.totalIterator
https://issues.apache.org/jira/browse/ACTIVEMQ6-64

The redelivery list was not isolated on the PageIterator. This is moving the
redelivery list to the Iterator so we would have proper isolation of the functionality.

The previous version was assuming a single instance of PageIterator, QueueImpl and PageSubscription.
When we started using more than one instance of the Iterator we created this bug.
2015-01-05 20:34:05 -05:00
Howard Gao 1d022fe474 ACTIVEMQ6-43(reopened) : Replace License Headers on codebase
- added missing license headers found by maven rat plugin.
  most of them added automatically via apache-rat
  a few manually added

- added apache-rat maven plugin to the build cycle
2015-01-05 13:14:25 -05:00
jbertram 16d74b2bec Merge #50 ttl fix from Howard 2014-12-31 11:05:07 -06:00
Howard Gao 1d159e6da0 Bug 1174886 - HornetQ TTL / check-period not being respected
on the replication channel

The connection-ttl and client-failure-check-period are not passed
to the server locator used to create replication connection. So the
fix sets the two parameters in SharedNothingBackupActivation.
2014-12-23 20:38:35 +08:00
Andy Taylor 2514611285 ACTIVEMQ6-14 - more JNDI removal
https://issues.apache.org/jira/browse/ACTIVEMQ6-14

cleaned up more remaining server JNDI code and fixed some abstraction and naming around JNDI and bindings
2014-12-19 08:07:06 +00:00
Martyn Taylor 739c0f368b Allow tests to set TM in TMLocatorImpl
Some tests require a proper TM to be returned by the TMLocator
implementation whilst others require a DummyTM to be returned.  This
patch makes allows TM returned by the locator class to be changed by the
test.
2014-12-16 16:33:58 +00:00
Martyn Taylor 891e3ef1cb Add TM Locator impl to JMSBridge tests 2014-12-12 16:35:13 +00:00
Clebert Suconic 09490cdba3 ACTIVEMQ6-54 Fixing tests broken after Paging fix
https://issues.apache.org/jira/browse/ACTIVEMQ6-54

Changing the order of depaging introduced an extra check that needs to be checked now.
This will probably take care of the issue by checking if the page is complete before depage.
2014-12-10 22:06:35 -05:00
Martyn Taylor 8f91af1b5c ActiveMQ6-6 Factor out WildFly XA Recovery
Pulls out WildFly XA Recovery specifics into a different project.  Some
XA recovery code is still present and is used as integration points for
integrating TM XA recovery processes.
2014-12-09 16:08:34 +00:00
Clebert Suconic d7c7d86d55 Merging #36 on SPI and TX integration 2014-12-08 12:25:18 -05:00
Andy Taylor e34fd09ce3 ACTIVEMQ6-6 - remove SPI usage
https://issues.apache.org/jira/browse/ACTIVEMQ6-6

Removed the jboss security implementations and also implemented the location of Transaction Managers using Service Loader and removed the jboss implementation.
2014-12-08 11:06:24 +00:00
Clebert Suconic 933d90a4f3 ACTIVEMQ6-54 Depaging is not kicking in on some scenarios, and Browsing is not looking towards paging
https://issues.apache.org/jira/browse/ACTIVEMQ6-54

This is fixing a few issues around paging:
- Browsing it not looking towards Paging. I'm using the queue.totalIterator which is a read-only iterator that goes towards the pages messages.
- Depage is not kicking correctly in some scenarios. I have improved the logic on scheduling depage for that.
2014-12-05 14:48:14 -05:00
jbertram 7cfd76d321 Handful of test fixes 2014-12-05 09:27:53 -06:00
jbertram e6a3d3a0c5 ACTIVEMQ6-14 Replace JNDI server with client impl 2014-12-05 09:27:52 -06:00
Clebert Suconic a3afd62575 ACTIVEMQ6-20 removing twitter integration
https://issues.apache.org/jira/browse/ACTIVEMQ6-20

this has been identified as a dead feature.
It was only useful for presentations...
it had its time and we have better examples we can use...
It's time for this feature to go!
2014-12-02 12:33:16 -05:00
Howard Gao 293b242ffc ACTIVEMQ6-43 Replace License Headers on codebase
upgrade mycila plugin to 2.6
2014-12-01 10:20:24 +08:00
Martyn Taylor 60fbb1055b ACTIVEMQ6-6 Add Service Extension Component
Adds a new service extensions components used to house any extension
points for integration and extension.  In addition this patch adds
initial extension points for XAResource wrapping.
2014-11-25 15:51:03 +00:00
Clebert Suconic 5361e58354 ACTIVEMQ6-44 - Internal error during UDP parsing
https://issues.apache.org/jira/browse/ACTIVEMQ6-44

The DiscoveryGroup should be resilient to failures on the communication.
We shouldn't kill the Loop if an exception happened during the read of the UDP messages.
2014-11-21 11:27:02 -05:00
Clebert Suconic 89a84c6ae2 More name changes to activemq
more hornetq changes
2014-11-19 16:01:54 -05:00
Martyn Taylor e91ef714c7 Replace urn:hornetq with urn:activemq 2014-11-19 15:15:36 +00:00
Clebert Suconic cd31652ddc ACTIVEMQ6-4 Fixing tests after package and classes renames
https://issues.apache.org/jira/browse/ACTIVEMQ6-4

this will include a few fixes for the tests including
hornetq-version renaming to activemq-version
2014-11-18 23:04:34 -05:00
jbertram 034adfbf9b ACTIVEMQ6-4 Rename HornetQ* classes to ActiveMQ* 2014-11-18 16:53:09 -06:00
jbertram e7a3e7d25b ACTIVEMQ6-9 Clean up docs 2014-11-18 16:53:08 -06:00
Martyn Taylor 176e817805 ACTIVEMQ6-5 Replace 3rd party CatX deps with CatA 2014-11-18 17:33:52 +00:00
Andy Taylor aeaba39219 ACTIVEMQ6-4 - rename all config files
https://issues.apache.org/jira/browse/ACTIVEMQ6-4

rename all the config files to activemq and fix schema names in them
2014-11-18 15:54:53 +00:00
Andy Taylor 574c8fe997 ACTIVEMQ6-4 - refactor schemas
https://issues.apache.org/jira/browse/ACTIVEMQ6-4

Refactor all the schemas to use an activemq namespace and rename schema files
2014-11-18 11:27:10 +00:00
Andy Taylor d0d686b527 ACTIVEMQ6-4 - refactor default configuration
https://issues.apache.org/jira/browse/ACTIVEMQ6-4

Remove the auto generation of the default config and rename to ActiveMQ
2014-11-18 11:27:10 +00:00
Clebert Suconic 1bf2e41f23 ACTIVEMQ6-3 Renaming Exception classes and fixing native compilation
https://issues.apache.org/jira/browse/ACTIVEMQ6-3

The Native Layer has some dependencies on the Exception classes so
I had to rename them now in order to fix the native dependencies
2014-11-17 21:31:19 -05:00
jbertram 36d86ffb00 ACTIVEMQ6-36 Disallow SSLv3 for POODLE 2014-11-17 13:37:51 -06:00
Clebert Suconic 9a587c5633 ACTIVEMQ6-3 renaming package names from activemq6 to activemq
https://issues.apache.org/jira/browse/ACTIVEMQ6-3

We are renaming packages from activemq6 to activemq as that's more generic and version independent
The previous commit renamed the directories. On this commit now I'm changing the code.
If we changed the code and the directories on the same commit git would remove and add a lot of files
without recognizing the renames.
2014-11-17 09:33:53 -05:00
Clebert Suconic 3c44e26854 ACTIVEMQ6-3 renaming directories from activemq6 to activemq
https://issues.apache.org/jira/browse/ACTIVEMQ6-3

We are renaming packages from activemq6 to activemq as that's more generic and version independent
On this first commit I'm just renaming the directories otherwise the history would be lost. The next commit will rename the text on the directories.
If I squash these two commits git will make us delete / add again.
2014-11-17 09:33:36 -05:00
Martyn Taylor 1f869f9f4c Use new package names in config and classes 2014-11-11 18:28:18 +00:00
Andy Taylor 23e8edd979 ACTIVEMQ6-4 - Rename packages to ActiveMQ
https://issues.apache.org/jira/browse/ACTIVEMQ6-4

Repackage the modules, java source and maven poms to apache.activemq6
2014-11-11 18:28:18 +00:00
Martyn Taylor 177e6820b5 ACTIVEMQ6-2 Update to HQ master 2014-11-11 10:48:14 +00:00
Andy Taylor 8ecd255f98 ACTIVEMQ6-1 - Initial HornetQ Donation Commit
https://issues.apache.org/jira/browse/ACTIVEMQ6-1

This is the initial donation of the HornetQ codebase as per document http://incubator.apache.org/ip-clearance/hornetq.html
2014-11-10 10:31:25 -06:00