Commit Graph

267 Commits

Author SHA1 Message Date
Ville Skyttä 78cb156ef9 Spelling fixes 2015-07-13 09:38:00 -04:00
Howard Gao 19a49f5297 Fix javadoc errors in tests/activemq5-unit-tests 2015-07-10 10:02:38 +08:00
Howard Gao 8d1f4fa32a fix javadoc warnings 2015-07-09 10:41:50 -04:00
Ville Skyttä b0a80ce1be Spelling fixes 2015-07-09 10:41:03 -04:00
Howard Gao 7cf58b1e88 ARTEMIS-149 Advisory Message Support
Adding functions to send advisory messages.
2015-07-09 10:23:24 -04:00
Martyn Taylor 0f82ca754b Added Initial MQTT Protocol Support 2015-07-09 11:08:04 +01:00
gaohoward f59b10cea2 Fix activemq-unit-test failure
-- added addConnector() method so new connector can be created for tests
   -- fix zero-byte key store files that cause test failures
   -- fix a invm issue in test
2015-07-09 09:18:42 +08:00
Martyn Taylor 19dc0594e5 Set default password properly in security manager
The current Security Manager implementation was returning the username
instead of the default password when validating  the default user.

This patch returns the correct value and cleans up the validate method.
2015-07-08 16:25:11 +01:00
Howard Gao 5e1758cb87 ARTEMIS-146 Fix Queue auto-creation 2015-06-30 10:03:43 +08: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 91a41adaa8 Removing extra-tests from running tests on PR builds 2015-06-23 23:43:44 -04: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 ff6cd8d18f Fixing test that was using reflection by exposing a few properties on the RemotingServiceImpl 2015-06-22 09:46:15 -04:00
jbertram aa5ff90807 ARTEMIS-141 Move classloading into ServiceRegistry 2015-06-22 09:04:24 -04: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
Thiago Kronig 4dd54080a1 ARTEMIS-127 Fix Array.toString(), nonatomic update on volatiles 2015-06-12 01:27:54 -03:00
Thiago Kronig ae6a2b87ea ARTEMIS-127 Fix some concurrency idioms for ActimeMQ Tests 2015-06-12 00:30:23 -03:00
Thiago Kronig 64ecb9565d ARTEMIS-127 Use L as suffix for long constants 2015-06-11 23:58:14 -03:00
Thiago Kronig aab34e5bd0 ARTEMIS-127 Fixing sync on non-final object for ArtemisBrokerWrapper 2015-06-11 23:58:13 -03:00
Thiago Kronig 61895223d0 ARTEMIS-127 Fixing activemq-unit-tests pom version 2015-06-11 23:58:12 -03: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
Tomas Hofman 72354ee38f ARTEMIS-135 - Fix on journal load
https://issues.apache.org/jira/browse/ARTEMIS-135

This is importing a recent fix from the journal on the old version.
If a crash happened between the create file and the fill of the file the
file wouldn't be loaded and the server wouldn't start until you removed the offending file
2015-06-10 20:29:45 -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
Howard Gao 60979268e1 ARTEMIS-127 Adding activemq unit test module to Artemis
This test module brings in activemq unit tests and run them
against Artemis broker.
2015-06-09 12:35:56 -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
Thiago Kronig 71ea52bd06 Remove ignored line in JoramTests 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
Martyn Taylor c30a8fe899 Add back extra test changes accidently removed during rebase 2015-05-19 16:00:34 +01:00
Thiago Kronig 351b1cba5d Ignores %PATH/java, use $JAVA_HOME/bin/java instead
Deduce `java` executable from current "java.home" property to spawn
processes for test purposes.
2015-05-18 19:00:29 -04: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
Clebert Suconic 071d8c6ce2 next iteration on extra-tests 2015-05-12 11:14:12 -04: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
Martyn Taylor 77efc950af ACTIVEMQ6-100 Add support for HornetQ clients 2015-05-07 14:59:46 -04:00
jbertram 96a0fe8f53 Use target directory for test data 2015-05-06 15:37:46 -05:00
jbertram 8cea209a8b Set Arjuna properties 2015-05-06 15:37:46 -05:00
jbertram 7377672fa3 Enable extra tests in 'extra-tests' profile 2015-05-06 15:37:45 -05:00
jbertram 4735d38d7b Update surefire plugin versions 2015-05-06 15:05:49 -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
Andy Taylor ac5bb8fd6c renamed config to broker.xml 2015-04-29 10:30:32 +01:00
Clebert Suconic 70a6e43075 Fixing byteman tests after the rename 2015-04-28 10:39:05 -05: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
Clebert Suconic 147a5528e4 changing iterations on test so it runs faster 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 81a7613b38 ACTIVEMQ6-97 - fixing a left-over from the renaming 2015-04-21 21:54:10 -04: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 c38acee509 fixing extra-tests dependency 2015-04-01 16:16:13 -04: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 2f819a63e7 Improving a test that failed due to what seemed a race 2015-03-31 11:23:06 -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