Commit Graph

68 Commits

Author SHA1 Message Date
Martyn Taylor 9553de82bb ARTEMIS-1658 Fix Typo in ActivationSpec 2018-02-05 18:39:19 +00:00
Michael André Pearce 355ae86c5e ARTEMIS-1658 Add prefix option to ActivationSpec
checkstyle fix
2018-02-03 08:31:22 +00:00
Michael André Pearce f08cd87526 ARTEMIS-1658 Add prefix option to ActivationSpec
checkstyle ifx
2018-02-03 07:46:23 +00:00
Martyn Taylor 8f47cd6e14 ARTEMIS-1658 Add prefix option to ActivationSpec
Artemis 1.x RA would do a core queue lookup if it could not find the
Destination in JNDI.  We need to ensure that we can support the old
address model for backwards compatability.
2018-02-02 13:46:51 -06:00
Howard Gao bb84f67936 ARTEMIS-1600 Support masked passwords in bootstrap.xm and login.config
We provide a feature to mask passwords in the configuration files.
However, passwords in the bootstrap.xml (when the console is
secured with HTTPS) cannot be masked. This enhancement has
been opened to allow passwords in the bootstrap.xml to be masked
using the built-in masking feature provided by the broker.

Also the LDAPLoginModule configuration (in login.config) has a
connection password attribute that also needs this mask support.

In addition the ENC() syntax is supported for password masking
to replace the old 'mask-password' flag.
2018-01-18 08:59:00 -06:00
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
Michael André Pearce 3ef98044f8 ARTEMIS-1516 - Ensure JNDI via Tomcat Resource works
Apply fix so that when using JNDI via tomcat resource it works. 
Replace original extract of JNDIStorable taken from Qpid, and use ActiveMQ5's as fits better to address this issue. (which primary use case is users migrating from 5.x)
Refactored ActiveMQConnectionFactory to externalise and turn into reference by StringRefAddr's instead of custom RefAddr which isnt standard.
Refactored ActiveMQDestinations similar
Refactored ActiveMQDestination to remove redundent and duplicated name field and ensured getters still behave the same
2017-12-19 09:20:35 -05:00
Jeff Mesnil 16446c1a6e [ARTEMIS-1475] Fix NPE in ActiveMQMessageHandler#setup
* initialize ActiveMQActivationSpec#shareSubscriptions to false
* i18n of the exception thrown by ActiveMQMessageHandler if it is not
  possible to create a non-shared subscriber

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-1475
2017-10-23 14:59:32 -04:00
Paul Ferraro 4bf204c012 NO-JIRA: Allow subclasses to more easily override BroadcastEndpointFactory used during connection factory creation. 2017-09-26 13:24:37 -04:00
Martyn Taylor fcce3bac2a Revert "Changing the way to interact with JGroups in the ResourceAdapter"
This reverts commit 2493158d11.

This is causing some problems with the classloader used in the RA,
resulting in NPEs.  Reverting this.  We can revist when we have a more
stable solution.
2017-08-24 10:26:37 +01:00
Emmanuel Hugonnet 2493158d11 Changing the way to interact with JGroups in the ResourceAdapter
Obtaining a BroadCastEndpointFactory instead of a JChannel to connect to JGroups to avoid issue and leak with JChannel lifecyle.
2017-08-23 16:08:34 +02:00
Jonathan Gallimore 89989fd52d ARTEMIS-1321 - Allowing RA to be proxied on TomEE 2017-08-02 19:09:22 -04:00
Justin Bertram 8c8ab0adc1 ARTEMIS-1299 support commas in RA connection parameter values 2017-07-28 18:00:50 -04:00
Clebert Suconic 7adc8339c7 ARTEMIS-1305 Avoid deadlock when shutting down RA and reconnects 2017-07-28 11:53:09 -04:00
Clebert Suconic 54d220edf3 ARTEMIS-1305 Server frozen during shutdown on Resource Adapter
this is a better fix than the previous one
2017-07-28 10:33:40 -04:00
Clebert Suconic 7bf8e4e890 ARTEMIS-1305 Server Frozen during shutdown if RA is retrying 2017-07-25 22:33:55 -04:00
Clebert Suconic 5325ca39c8 NO-JIRA: Fix checkstyle 2017-07-25 21:12:27 -04:00
Clebert Suconic e5be686064 NO-JIRA traced on the RA 2017-07-25 19:07:34 -04:00
Clebert Suconic b6b48a5896 NO-JIRA Traces on the Resource Adapter 2017-07-25 17:56:43 -04:00
Clebert Suconic 1796e5935f NO-JIRA Traces on Resource Adapter Message Handler 2017-07-25 12:57:10 -04:00
Clebert Suconic 08d8c08ed3 ARTEMIS-1257 Fixing hashCode
ResourceAdapterTest had a few failures with a NPE
2017-07-24 15:19:59 -04:00
xstefank 553043393e ARTEMIS-1257 ActiveMQActivationSpec.java should use boxed types for attributes values according to the JCA specification 2017-07-24 09:41:25 -04:00
Michael Andre Pearce 44b7e455cb ARTEMIS-1205: AMQP Shared Durable Subscriber incorrect behaviour
Use AcitveMQDestination for subscription naming, fixing and aligning queue naming in the process.

The change is behind a configuration toggle so to avoid causing any breaking changes for uses not expecting.
2017-06-19 12:44:13 +01:00
Andy Taylor d2594a280b ARTEMIS-1211 - Allow local transactions when no jta in Resource Adapter
https://issues.apache.org/jira/browse/ARTEMIS-1211
2017-06-19 10:08:30 +01:00
Dmitrii Tikhomirov d3010682a4 [ARTEMIS-1225] Log messages without prefixed id code in artemis-ra 2017-06-12 12:37:39 -05:00
Michael Andre Pearce 373803a85d ARTEMIS-1179: Add Optional Client JMS Destination Cache
Add topic and queue cache maps in Session.
Add configuration to use cache or not with defaulting to false, which keeps existing behaviour as the default.
2017-05-24 18:45:16 -04:00
Clebert Suconic dc26ac96b4 ARTEMIS-1156: moving our collections on its own package 2017-05-12 10:06:05 -04:00
Jiri Danek a7a0535afa NO-JIRA Fixing typos in log messages, test names and comments
Related to ARTEMIS-387 (fowardingAddress)
2017-02-20 20:54:45 -05:00
Martyn Taylor 7a51491c32 ARTEMIS-780 Added ability to define 2 Routing Types on a single addres 2016-12-09 18:43:15 +00:00
Clebert Suconic ec48f9ed00 ARTEMIS-765 Improve Checkstyle 2016-09-30 11:12:09 -04:00
Ville Skyttä e98da5f288 Make bunch of private fields final 2016-09-23 09:06:08 -04:00
Ville Skyttä d5242978d5 for and while loop to foreach conversions 2016-08-25 14:22:32 -04:00
Ville Skyttä 30c617da3c Unnecessary @SuppressWarnings fixes 2016-08-25 14:22:32 -04:00
Howard Gao 0535218cfc ARTEMIS-604 - Message Serialization Improvement
- JMS and RA fixes
2016-08-09 11:22:48 +01:00
Ville Skyttä aed49b3894 Spelling fixes 2016-07-26 14:24:45 +03:00
Martin Styk d281eb5140 ARTEMIS-652 Incorrect null check in ActiveMQActivationSpec#toString for attribute connectionFactoryLookup
Changed null check to check correct attribute
2016-07-25 14:31:19 -04:00
Dmitrii Tikhomirov 2170acc417 [ARTEMIS-603] Remove e.printStackTrace() from code 2016-06-30 18:58:09 +02:00
Ville Skyttä d0d023b262 Fix checkstyle whitespace violation 2016-06-13 18:22:33 +03:00
jbertram 9c840bdeb8 ARTEMIS-459 NPE during RA tearDown 2016-04-26 21:33:19 -04:00
Ville Skyttä 7c275cdb1a Use generics more 2016-02-28 01:06:59 +02:00
jbertram c7a044e1a4 ARTEMIS-399 support 'clientId' activation prop 2016-02-16 17:19:45 -05:00
Clebert Suconic eddd3be46b ARTEMIS-302 - Cloning Connection Factory to avoid closing CFs from JNDI 2015-12-16 19:20:39 -05:00
Clebert Suconic af1f79bff5 ARTEMIS-302 more changes around XA reliability (resilience on failures) 2015-12-16 10:19:35 -05:00
Ville Skyttä f8a1c5ba8e Remove redundant type arguments 2015-12-07 22:55:05 +02:00
Ville Skyttä 25ae472455 Add missing @Override annotations 2015-12-06 01:27:35 +02:00
Clebert Suconic b1d5076108 ARTEMIS-302 - more work about improving resilience of MDBs and XA 2015-11-16 18:11:44 -05:00
jbertram 3f6089891d ARTEMIS-293 rebalance inflow on topology change 2015-11-03 16:42:15 -06:00
Andy Taylor e864b79a6d ARTEMIS-280 - Resource Adapter hangs on shutdown
https://issues.apache.org/jira/browse/ARTEMIS-280
2015-10-26 14:08:11 -04:00
Clebert Suconic 206acdac7d ARTEMIS-238 and ARTEMIS-236 Fixing Legacy protocol support 2015-10-08 20:32:43 -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