4689 Commits

Author SHA1 Message Date
Michael André Pearce
98028cdecc ARTEMIS-1586 Refactor to make more generic
* Move byte util code into ByteUtil
* Re-use the new equals method in SimpleString
* Apply same pools/interners to client decode
* Create String to SimpleString pools/interners for property access via String keys (producer and consumer benefits)
* Lazy init the pools on withing the get methods of CoreMessageObjectPools to get the specific pool, to avoid having this scattered every where.
* reduce SimpleString creation in conversion to/from core message methods with JMS wrapper.
* reduce SimpleString creation in conversion to/from Core in OpenWire, AMQP, MQTT.
2018-01-17 09:33:41 +01:00
Francesco Nigro
8d776eddfc ARTEMIS-1586 Reduce GC pressure due to String allocations on Core protocol
The commit contains:
- a general purpose interner implementation
- StringValue/SimpleString internrs specializations
- TypedProperties keys/values string interning for SessionSendMessage decoding
2018-01-17 09:33:41 +01:00
Clebert Suconic
00bd989f9f This closes #1774 2018-01-16 10:04:39 -05:00
Justin Bertram
6b033b5b8d ARTEMIS-1602 avoid potential NPE if property is null 2018-01-16 10:04:37 -05:00
Michael Pearce
77805f9db2 This closes #1776 2018-01-13 19:58:43 +00:00
Michael André Pearce
b4ed5c3237 ARTEMIS-1596 - Fix checkstyle. 2018-01-13 19:52:43 +00:00
Justin Bertram
adc0f02ae0 This closes #1766 2018-01-12 15:12:45 -06:00
jostbg
dffc66496e ARTEMIS-1596 wrong routing-type for STOMP autocreated address/queue 2018-01-12 15:12:03 -06:00
Francesco Nigro
88e9b55d12 This closes #1756 2018-01-12 15:17:18 +01:00
Jeff Mesnil
938fbd81cb [ARTEMIS-1590] Properties-based SQLProvider
Replace GenericSQLProvider and other implementation by a single
PropertySQLProvider that uses properties to define SQL queries.

SQL queries are loaded from the journal-sql.properties file.
Queries specific to a DB dialect can be specified by adding a suffix to
the key of the generic property.
For example, the generic property to create a file Table is:

create-file-table = CREATE TABLE %s (ID BIGINT AUTO_INCREMENT, ...)

This property can be customized for Derby by using the
create-file-table.derby  property:

create-file-table.derby=CREATE TABLE %s (ID BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),...

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-1590
2018-01-12 14:50:21 +01:00
Clebert Suconic
fdb57b6877 This closes #1770 2018-01-11 21:33:17 -05:00
Clebert Suconic
da164a2074 ARTEMIS-1599 fixing compatibility with 1.x exported file 2018-01-11 21:33:17 -05:00
Justin Bertram
3e41aa151d This closes #1767 2018-01-11 11:46:09 -06:00
gtully
49b7863cf9 [ARTEMIS-1597] validate non null callback principal for login success 2018-01-11 11:46:09 -06:00
Justin Bertram
7377ef7f6d This closes #1772 2018-01-11 11:43:19 -06:00
jostbg
b8f591b6b9 ARTEMIS-1601 deal with race in Stomp sendMessage
If the Stomp consumer was closed at or near the same time a message was
dispatched then an NPE might result. Throwing an exception is a
relatively expensive operation in the JVM because of the stacktrace
information that needs to be generated, so in cases where it is known
that a null value could be returned one should check and handle it
appropriately.
2018-01-11 11:42:56 -06:00
Justin Bertram
499273bd68 This closes #1768 2018-01-11 09:43:56 -06:00
Ulf Lilleengen
af1159a24b ARTEMIS-1598 modify SslHandler name in connector
Use the same "name" when inserting the Netty SslHandler into the
pipeline for both acceptors and connectors.
2018-01-11 09:41:23 -06:00
Justin Bertram
629dd2c358 This closes #1769 2018-01-11 09:38:44 -06:00
Timothy Bish
efec2d3464 ARTEMIS-1576 Fix test that was broken with changes on this issue
The test is using the wrong indices for the destinations it uses so they
don't match the one's created in the test support class.  Because the
code is now using the default routing type the test fails when it tries
to send a message on a JMS Queue when the auto created address default
to the multicast routing type.
2018-01-11 09:38:44 -06:00
Martyn Taylor
c959d0c67d This closes #1754 2018-01-11 10:59:11 +00:00
Justin Bertram
2afe08126b ARTEMIS-1576 couple more tests for good measure 2018-01-11 10:59:11 +00:00
Martyn Taylor
18d2d13d91 This closes #1749 2018-01-11 10:56:46 +00:00
Stanislav Knot
21b58bfea8 ARTEMIS-1579 browsing messages in hawtio console 2018-01-11 10:56:46 +00:00
Clebert Suconic
e5251ce60b This closes #1763 2018-01-10 11:43:06 -05:00
Justin Bertram
7c3e78ca87 ARTEMIS-1594 don't log dlq/expiry warn for internal q 2018-01-10 11:43:06 -05:00
Michael Pearce
9e68d84645 This closes #1764 2018-01-10 16:21:56 +00:00
Clebert Suconic
12ef662b91 ARTEMIS-1595 Fixing serialization issues between Artemis 1.5 and master 2018-01-10 16:19:55 +00:00
Clebert Suconic
247ed5996f This closes #1765 2018-01-10 10:42:19 -05:00
Jiri Danek
472e429540 NO-JIRA fix warnings from w3c/link-checker in docs
also update URLs and `s/http/https` in docs wherever possible
2018-01-10 13:07:40 +01:00
Justin Bertram
f331a3f659 This closes #1751 2018-01-09 12:26:56 -06:00
Michael André Pearce
9c18dd04df ARTEMIS-1585 - Log connector details on start
Log connector details when they start. 
This is similar to that of acceptors, and helps when any issues later.
2018-01-09 12:26:56 -06:00
Justin Bertram
eeb3f22433 This closes #1758 2018-01-09 10:34:38 -06:00
Clebert Suconic
c8dc7de445 ARTEMIS-1545 Fixing compatibility issues with topic Subscriptions 2018-01-09 10:34:38 -06:00
Clebert Suconic
ba9d06ba70 NO-JIRA fixing header copy & paste error 2018-01-09 10:34:38 -06:00
Clebert Suconic
2cef32be6c ARTEMIS-1591 Preserve ordering on message exporter 2018-01-09 10:34:38 -06:00
Michael Pearce
d3d7eb7db0 This closes #1760 ARTEMIS-1593 RemotingConnectionImpl leaks 2018-01-09 15:26:12 +00:00
Francesco Nigro
e360f85c1b ARTEMIS-1593 RemotingConnectionImpl leaks
FileNameKey was holding a reference to PropertiesLoader.this due to its inner class definition, causing RemotingConnectionImpl to leak through a long chain of dependencies rooted in a PropertiesLoader's subclass property ie PropertiesLoaderModule::callbackHandler.
FileNameKey is turned into a inner static class to break this hidden dependency.
2018-01-09 15:26:11 +00:00
Justin Bertram
38df11d1d6 This closes #1750 2018-01-08 10:29:58 -06:00
Stanislav Knot
c05ec28de2 ARTEMIS-1581 fix handshake-timeout property configurability 2018-01-08 10:28:42 -06:00
Michael Pearce
719adab1ee This closes #1741 NO-JIRA Diverts: updated doc 2018-01-05 12:52:45 +00:00
art-licis
c2a9be9540 NO-JIRA Diverts: documentation & test updates.
Updated documentation & tests with original destination & message ID info.
Javadoc update & typo fix.
2018-01-05 12:52:44 +00:00
Michael Pearce
758cad413e This closes #1748 ARTEMIS-1576 anon AMQP producer creates address w/wrong routing-type 2018-01-05 12:47:01 +00:00
Justin Bertram
14d6c30852 ARTEMIS-1576 anon AMQP producer creates address w/wrong routing-type 2018-01-05 12:47:01 +00:00
Justin Bertram
3677cd2c8d This closes #1740 2018-01-04 14:39:10 -06:00
Jiri Danek
c1671530b0 ARTEMIS-1181 Fix broken links in user-manual
Either caused by improper escaping, or the #fragment is wrong
2018-01-04 14:39:10 -06:00
Justin Bertram
63d417a691 This closes #1743 2018-01-04 14:27:41 -06:00
Pat Fox
d95757057e ARTEMIS-1575 configure custom broker plugins with key/value properties.
The properties are read and passed into the the broker plugin's init(Map<String,String>)
2018-01-04 14:27:41 -06:00
Justin Bertram
1ef8199f23 This closes #1746 2018-01-04 13:57:08 -06:00
Francesco Nigro
dab05adf6c ARTEMIS-1572 UTF-8 Encoding is not translating ASCII edge cases correctly
It fixed 0-127 ASCII chars translation using UTF encoding
2018-01-04 13:57:08 -06:00