Commit Graph

6420 Commits

Author SHA1 Message Date
Clebert Suconic 87966029c7 This closes #93 on URI work and connection factory serialization 2015-02-12 15:01:12 -05:00
Andy Taylor b8db8b0514 merging #95 - performance improvements 2015-02-12 15:12:35 +00:00
Martyn Taylor 5f428f6535 Add apache parent to main pom.xml 2015-02-12 14:46:51 +00:00
Martyn Taylor 9210383126 Set client (!server) version on recreate session 2015-02-12 12:46:17 +00: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 bace921389 back-porting fix on exception message from hornetq code
This is such a small change that qualifies as a tweak, so I'm not bothering on creating a JIRA for this
2015-02-11 21:04:21 -05: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 f7c4d56cc7 ACTIVEMQ6-78 Improving performance over Netty NIO blocked calls
https://issues.apache.org/jira/browse/ACTIVEMQ6-78 performance work

There are two aspects of this work. First avoid asynchronous packets and avoid
context switch over the executors. Packet had a method to make certain packets such
as commit to use a different executor. Since it's NIO everything is done at the Netty thread now.

The second aspect was to make sure we use the proper buffering
2015-02-11 12:47:14 -05:00
Clebert Suconic 41b28f4b23 ACTIVEMQ6-78 Adding tests to evaluate this task
https://issues.apache.org/jira/browse/ACTIVEMQ6-78

This commit is just adding tests I used to debug the blocked calls issue
There are some profiling parameters you can use that I added as a comment to the pom

The reason this is a separate commit is that it would be easier to validate the results of optimizations while
checking after and before any changes
2015-02-11 12:47:01 -05:00
Clebert Suconic 1d5a7a10d3 This closes #94 on jms2 jar changes 2015-02-11 12:41:28 -05:00
Clebert Suconic 05ef25798c This closes #91 - renaming class for compatibility with older clients 2015-02-11 12:40:37 -05:00
Martyn Taylor 6b887c5dd0 Remove Geronimo version prop from JMS example pom 2015-02-11 14:06:59 +00: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
Martyn Taylor 08e7c89301 Rename Connector class on NodeUp for HQ clients
To support HornetQ clients we must pass back HornetQ connector factory
names. Currently the connector factory name returned as part of node up
broadcast group (after initial client connection and client sends suscribe
topology packet) is what ever the server is configured to use in its
cluster discovery.  Since the server has now been repackaged to
org.apache.activemq, the older HornetQ clients can not find the
connector factory class on it's class path.  To get around this problem
the server now checks the version of the client and if the client is
HornetQ the server renames the to org.hornetq and returns before sending
to the client.
2015-02-10 16:09:44 +00:00
Clebert Suconic 33addb4086 This closes #90 - Auto-create queue on stomp 2015-02-09 11:49:26 -05: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
Clebert Suconic 23e1730dce This closes #89 - test change 2015-02-02 20:02:21 -05: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
Clebert Suconic 58cc025653 This closes #85 - work on jaas 2015-02-02 14:18:30 -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
Clebert Suconic 9900d5331b This closes #87 - a few test fixes 2015-02-02 10:31:21 -05: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
Clebert Suconic 7cdd77c781 This closes #86 on fixing tests 2015-01-29 11:52:55 -05:00
jbertram e17e3ba4f6 fix tests I broke; refactor a few other pieces
I broke serveral tests with 8f4142f87e
so I'm restoring that, and I'm refactoring a few other pieces so the
code is simpler and/or more correct.
2015-01-29 10:36:10 -06:00
Clebert Suconic 8bdad8897e This closes #83 on Jetty updates 2015-01-28 15:11:11 -05:00
Clebert Suconic c6a444fe5c This closes #84 - fixing races on tests 2015-01-28 14:10:22 -05:00
jbertram d895988faf fix race in test 2015-01-27 15:40:15 -06:00
Andy Taylor f2323b6bc2 upgrade to jetty 8 to be consistent with ActiveMQ 5 2015-01-27 16:57:20 +00:00
Martyn Taylor 90b8b35b54 Merge remote-tracking branch 'origin/pr/82' 2015-01-27 11:45:14 +00:00
Martyn Taylor 7aff0a0dc9 Undelivered Messages Doc Update 2015-01-27 11:35:55 +00:00
Andy Taylor 3498b7b0f9 merge #80 - Fix test, adjust logging 2015-01-27 09:11:26 +00: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
jbertram 005af9deac This closes #79 - doc updates 2015-01-23 10:55:45 -06:00
Martyn Taylor 4c2f061955 Updates to Documentation 2015-01-23 16:51:08 +00:00
jbertram 51793627f9 This closes #78 - doc updates and log manager dep 2015-01-23 10:38:27 -06:00
Andy Taylor c43dda3f96 merge #76 - removing redundant tests 2015-01-23 15:41:10 +00:00
Andy Taylor 33f0965364 update jboss logging manager dependency 2015-01-23 14:32:02 +00:00
Andy Taylor 3d3829db4f documentation updates 2015-01-23 14:31:53 +00:00
jbertram 11d4b0a80d removing redundant tests 2015-01-23 08:30:01 -06:00
Andy Taylor 45a081c72a merge #77 - Only check TM exists for JMSBridge with ONCE_ONLY 2015-01-23 10:43:32 +00: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
jbertram aefbe3f86a This closes #74 - checkstyle fix 2015-01-22 11:09:21 -06:00
Clebert Suconic 2c7db814f0 fixing checkstyle that I messed up on my last commit 2015-01-22 12:07:53 -05:00
Andy Taylor 28db9f9849 merge #73 - a few fixes coming from former branches 2015-01-22 14:44:26 +00: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