Commit Graph

316 Commits

Author SHA1 Message Date
Timothy Bish 3051882f92 https://issues.apache.org/jira/browse/AMQ-5606
Switch to the new QPid JMS client v0.1.0
2015-03-23 12:15:49 -04:00
Timothy Bish 85d9d4e941 https://issues.apache.org/jira/browse/AMQ-5666
Test that a receiver can also create temporary destinations when it has
a Source configured as dynamic, also test that link close destroys the
temporary destinations.
2015-03-19 10:40:46 -04:00
Timothy Bish 8e6a404d5e https://issues.apache.org/jira/browse/AMQ-5666
Create some tests that exercise creating temp destinations using sender
links with dynamic targets
2015-03-18 18:12:02 -04:00
Timothy Bish 4228e3d3e8 https://issues.apache.org/jira/browse/AMQ-5666
Tests around durable subscription lookup and reattach.
2015-03-18 15:00:11 -04:00
Timothy Bish ca456c4601 https://issues.apache.org/jira/browse/AMQ-5559
Fix and tests for filter handling on attach.  We only support JMS
selector and NoLocal type filters for receivers so only report those
back, all others are dropped to indicate we will not honor them.
2015-03-17 18:44:24 -04:00
Timothy Bish 1a0f73ed19 https://issues.apache.org/jira/browse/AMQ-5666
Add some tests and cleanup of the testing client
2015-03-17 15:28:48 -04:00
Timothy Bish 934ad44add https://issues.apache.org/jira/browse/AMQ-5666
Add some initial tests for durable subscription handling.
2015-03-16 17:51:45 -04:00
Timothy Bish 6a6ef45ee0 https://issues.apache.org/jira/browse/AMQ-5661
Always honor the link credit as true prefetch value for the
subscription.  Enables previously failing test to verify.
2015-03-13 18:20:26 -04:00
Timothy Bish 72839b78a7 https://issues.apache.org/jira/browse/AMQ-5602
Functional client with added tests to start to cover various
expectations of an AMQP broker and some tests for expectations of a JMS
mapping compliant broker.
2015-03-13 15:47:30 -04:00
Timothy Bish 185213b44a https://issues.apache.org/jira/browse/AMQ-5655
Provide the open failed property when the broker sends an error
response, otherwise send the normal connection properties on the open.
2015-03-10 14:55:11 -04:00
Timothy Bish 528c25c6d8 https://issues.apache.org/jira/browse/AMQ-5648
Add new destiantion type annotation on outbound messages through the JMS
transformer.
2015-03-06 11:49:55 -05:00
Robert Gemmell 84c7c3cdf8 AMQ-5560: fixes typo in exception and drop extra cast
https://issues.apache.org/jira/browse/AMQ-5560
2015-03-06 10:26:30 +00:00
Timothy Bish aea771faf6 https://issues.apache.org/jira/browse/AMQ-5560
Check both the symbolic and numeric id values when searching filters.
2015-03-05 14:01:06 -05:00
Timothy Bish ace101a03a https://issues.apache.org/jira/browse/AMQ-5560
Use the type descriptor and not the key, also check object type since
Map from Proton is not enforcing.  Remove some dead code and uneeded
mutex locks for id generation.
2015-03-05 12:40:47 -05:00
Timothy Bish fe9e38622d Merge branch 'master' into amqp-sasl-auth 2015-03-04 14:10:50 -05:00
Timothy Bish 67ccfcad88 https://issues.apache.org/jira/browse/AMQ-5470
Allow for early SASL authentication and failure if credentials not
valid.
2015-03-04 14:06:04 -05:00
Robert Gemmell 6b18857b53 AMQ-5637: support mapping between the AMQP Subject field and JMSType header
https://issues.apache.org/jira/browse/AMQ-5637
2015-03-04 18:44:23 +00:00
Timothy Bish ad57cc6fcb https://issues.apache.org/jira/browse/AMQ-5631
Support for temporary topic delete
2015-03-03 15:55:28 -05:00
Timothy Bish 2ec586f267 https://issues.apache.org/jira/browse/AMQ-5593
Add support for JMS mapping compliant temp topic and temp queue creation
as well as responding correctly to authorization errors if the
connection has no rights to create them.  Also cleans up code to use a
consistent createDestination implementation that uses the names only and
not attempt to interpret the client only destination annotations.
2015-03-03 13:02:36 -05:00
Timothy Bish bb83bf5746 https://issues.apache.org/jira/browse/AMQ-5606
if the client throws the correct exception type, don't fail the test.
2015-03-02 11:19:57 -05:00
Timothy Bish adef03e5a4 https://issues.apache.org/jira/browse/AMQ-5617
Fix tests to always set an client ID for the durable subscription cases,
the legacy client doesn't seem to care but the new one will throw an
exception if not set.
2015-02-27 19:11:01 -05:00
Timothy Bish 7af7c0143f https://issues.apache.org/jira/browse/AMQ-5597
Clean up the durable subscription unsubscribe handling to be in line
with the AMQP JMS mapping spec and switch to the QPid 0.32-SNAPSHOT
build for now to allow us to track and other changes we might want to
feed back there before release.
2015-02-27 12:18:49 -05:00
Timothy Bish b5ef92814e https://issues.apache.org/jira/browse/AMQ-5617
Direct all the JMSClient tests to use the indirect calls to create their
connection, the Joram tests are a bit harder to make generic and can
wait for now.
2015-02-26 17:35:04 -05:00
Timothy Bish eaf773da57 https://issues.apache.org/jira/browse/AMQ-5617
Fix test failure and give it a more meaningful name.
2015-02-26 16:06:33 -05:00
Timothy Bish 276ef15024 remove a warning. 2015-02-26 15:23:26 -05:00
Timothy Bish 240278dbef https://issues.apache.org/jira/browse/AMQ-5617
Consolidate remaining dirct JMS client type usages to the context.
Rename some tests so be consistent.
2015-02-26 15:22:45 -05:00
Timothy Bish 8f0bf6060a https://issues.apache.org/jira/browse/AMQ-5617
Refactor as a general test case that covers the scenario accross all the
transport types.
2015-02-26 15:06:16 -05:00
Timothy Bish 4fa420bbd1 https://issues.apache.org/jira/browse/AMQ-5617
Absorbe these into the general JMSClientTest that covers all four
transport types.
2015-02-26 14:48:57 -05:00
Timothy Bish 12202c9702 https://issues.apache.org/jira/browse/AMQ-5617
Rename these and move to the general tests folder as they cover specific
use cases that are applicable beyond the issue the were created for.
2015-02-26 14:47:12 -05:00
Timothy Bish 7a8085c0a4 https://issues.apache.org/jira/browse/AMQ-5617
Remove this older test as the test in JMSClientTest ->
testProduceConsumer covers this accross all four transport variants.
2015-02-26 14:35:51 -05:00
Timothy Bish 36bd069e8f https://issues.apache.org/jira/browse/AMQ-5617
First pass removes most direct usages of the qpid client bits and cleans
up some tests so that they all start to use the common test support
class features.
2015-02-25 21:16:33 -05:00
Timothy Bish f988ca6e49 https://issues.apache.org/jira/browse/AMQ-5615
reorganize the connection response code to only pump once all state is
process.
2015-02-25 10:17:40 -05:00
Timothy Bish 441973b483 Bump logging to see if we can tell why the session commit hangs in the
transacted consumer test.
2015-02-24 13:34:12 -05:00
Timothy Bish a2b78fdeb0 https://issues.apache.org/jira/browse/AMQ-5604
Clean up test start / stop to streamline things and make the tests run
at a bit more reasonable speed.
2015-02-20 11:42:03 -05:00
Timothy Bish 4c272e3081 Should just be turning off the connector not just the bean server. 2015-02-20 10:15:02 -05:00
Robert Gemmell 37b1b6a211 AMQ-5592: remove some unused stale functionlity, bring into line with latest missed commits from current almost-0.9 codebase.
https://issues.apache.org/jira/browse/AMQ-5592
2015-02-19 20:00:03 +00:00
Timothy Bish 6e69319606 https://issues.apache.org/jira/browse/AMQ-5592
Initial drop of the JMS transformer code to be reworked.
2015-02-17 15:42:45 -05:00
Timothy Bish 94937e855a https://issues.apache.org/jira/browse/AMQ-5589
Reduce the overall time to run the AMQP tests
2015-02-16 16:47:12 -05:00
Timothy Bish 8b36701fc3 https://issues.apache.org/jira/browse/AMQ-5587
Add a connect check in the inactivity monitor to account for opened
connections that might drop but not be spotted, in the case where the
connect frame is lost this can lead to connections that aren't fully
opened and won't be cleaned up until the broker detects the socket has
failed.

By default the connection timer is set to 30 seconds, if no connect
frame is read by then the connection is dropped.  The broker can be
configured via the 'transport.connectAttemptTimeout' URI option, a value
2015-02-13 17:07:33 -05:00
Timothy Bish 2a0be3b0f0 https://issues.apache.org/jira/browse/AMQ-5550
Ensure that the consumer and producer context instances are marked as
closed when creation at the broker end fails.
2015-01-30 10:35:35 -05:00
gtully ae595c95b1 [maven-release-plugin] prepare for next development iteration 2015-01-30 12:46:19 +00:00
gtully 4ba1a1689f [maven-release-plugin] prepare release activemq-5.11.0 2015-01-30 12:46:08 +00:00
gtully bf5a2997c7 [maven-release-plugin] prepare for next development iteration 2015-01-26 16:48:46 +00:00
gtully eec2955bde [maven-release-plugin] prepare release activemq-5.11.0 2015-01-26 16:48:37 +00:00
gtully 64fa706d54 Revert "[maven-release-plugin] prepare release activemq-5.11.0"
This reverts commit f47fbe4b89.
2015-01-26 16:39:35 +00:00
gtully f47fbe4b89 [maven-release-plugin] prepare release activemq-5.11.0 2015-01-26 16:17:43 +00:00
Timothy Bish c93b6614b4 Adds a test case to validate that JMSXGroupID and Seq are retained over
time while messages are produced and consumed.  Older ActiveMQ releases
seemed to have an issue in this area due to the Proton-J library used.
Test should help to ensure this does not reappear.
2015-01-21 11:19:11 -05:00
Robert Gemmell 6466ae2bcf AMQ-5519: use the NOT_FOUND error condition when failing to find a DurableSubscription
https://issues.apache.org/jira/browse/AMQ-5519
2015-01-14 16:47:41 +00:00
gtully cf62d58ae7 https://issues.apache.org/jira/browse/AMQ-5515 - tidy up jetty deps - fix jetty maven coords 2015-01-12 22:58:07 +00:00
Hadrian Zbarcea aedcae139b Revert "[maven-release-plugin] prepare release activemq-5.11.0"
This reverts commit 48b0cf396c.
2015-01-05 12:25:58 -05:00
Hadrian Zbarcea 89995f4723 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit 7b285c6f52.
2015-01-05 12:25:47 -05:00
Dejan Bosanac 7b285c6f52 [maven-release-plugin] prepare for next development iteration 2014-12-29 12:44:32 +01:00
Dejan Bosanac 48b0cf396c [maven-release-plugin] prepare release activemq-5.11.0 2014-12-29 12:44:20 +01:00
Timothy Bish a090472942 Add properties to the connection that indicate what the proper
destination prefix value should be for Topic or Queue destination types.
2014-12-19 12:27:09 -05:00
Timothy Bish 411c7547ac Adds a test used for checking memory usage in the AMQP connector, test
is disabled and not intended for normal test runs.
2014-12-12 18:01:59 -05:00
Timothy Bish 9bd070a8f6 https://issues.apache.org/jira/browse/AMQ-5484
Ensure that the subscriptionByConsumerId map gets cleaned up when a
sender is closed.
2014-12-11 13:03:09 -05:00
Timothy Bish 90afa24549 Restore test disabled by mistake 2014-12-09 16:15:05 -05:00
Timothy Bish 61a3eab8ab https://issues.apache.org/jira/browse/AMQ-5475
Ensure that client's connecting with non-supported AMQP versions or
client's with invalid AMQP headers are sent an AMQP v1.0 header and are
then disconnected.
2014-12-08 17:23:15 -05:00
gtully db65c2e027 fix JMSClientNioTest close timeout leaving broker hanging about 2014-12-08 14:00:42 +00:00
Dejan Bosanac 5d77b395f6 https://issues.apache.org/jira/browse/AMQ-5379 - use zero prefetch if consumer credit is unknown when connecting 2014-12-04 12:32:59 +01:00
Timothy Bish 7bafa7da50 https://issues.apache.org/jira/browse/AMQ-5405
Move to v 0.30 of the QPid JMS client.  Allow the CI tests to exercise
these to see what might be broken.
2014-12-03 15:28:07 -05:00
Timothy Bish 9edf907aed https://issues.apache.org/jira/browse/AMQ-5467
Apply patch to use individual ack for messages in a TX to avoid
unmatched ack when ack range is non-sequential
2014-12-01 14:16:01 -05:00
Timothy Bish 9797d3b957 https://issues.apache.org/jira/browse/AMQ-5464
Apply patch from gemmellr to allow Configuration' TerminusDurability to
imply a durable subscription as well.
2014-12-01 09:56:37 -05:00
Dejan Bosanac 0ca376d540 https://issues.apache.org/jira/browse/AMQ-5379 - amqp prefetch size and redelivery header problem 2014-11-27 14:42:39 +01:00
Timothy Bish c5f183548e https://issues.apache.org/jira/browse/AMQ-5456
Apply patch from gemmellr to ensure that TX messages accepted retain the
TX state until commit.
2014-11-25 09:15:36 -05:00
Dejan Bosanac 5cd56e7fb1 https://issues.apache.org/jira/browse/AMQ-5431 - prevent NPE when a Detach frame is received for a
link that didn't get as far as setting a context during creation before being
 detached/closed
2014-11-25 10:43:27 +01:00
Dejan Bosanac 162f9fc559 https://issues.apache.org/jira/browse/AMQ-5391: offer the ANONYMOUS-RELAY connection capability to
signal support for the anonymous relay
2014-11-24 15:56:05 +01:00
Dejan Bosanac 741b739da8 https://issues.apache.org/jira/browse/AMQ-5391: use null or empty address to signify
anonymous-relay node, in line with expected direction for the Addressing spec
 underway at OASIS AMQP TC
2014-11-24 15:54:52 +01:00
Kevin Earls 2842cbd5b6 Skip all Joram tests on Windows because of CI hangs 2014-11-07 17:31:44 +01:00
Timothy Bish 0b148ade32 https://issues.apache.org/jira/browse/AMQ-5402
Revert the changes here as the mapping is moving in a different
direction.

4881a848dc
2014-10-29 14:16:34 -04:00
Timothy Bish adafdfe97d Make BrokerService visible to the protocol converter so that in the
future we can use it to better manage durable subscriptions and link
reattach behavior.
2014-10-28 14:58:17 -04:00
Timothy Bish e3377edb06 https://issues.apache.org/jira/browse/AMQ-5401
Free the broker side sender right away so that client's that don't close
their end properly after error don't prevent future remove attempts.
2014-10-22 10:48:11 -04:00
Dejan Bosanac ab3de0c4c2 https://issues.apache.org/jira/browse/AMQ-5379 - amqp prefetch; split producer and consumer prefetch settings; allow consumer prefetch to be adjusted using link credit 2014-10-21 14:52:39 +02:00
Timothy Bish 4881a848dc https://issues.apache.org/jira/browse/AMQ-5402
Add support for encoding the destination type in transformed messages as
a byte value to supoort future JMS->AMQP spec mappings.
2014-10-20 09:49:36 -04:00
Timothy Bish 5a6129b512 https://issues.apache.org/jira/browse/AMQ-5403
Remove now unnecessary workaround for older proton-j TTL issue.
2014-10-20 09:42:56 -04:00
Timothy Bish 004568234b https://issues.apache.org/jira/browse/AMQ-5401
Ensure that the sender is closed on error and add some tests for
unsubscribe failures.
2014-10-17 14:58:56 -04:00
Timothy Bish 226e012d88 Restore test case removed last commit. 2014-10-17 12:22:27 -04:00
Kevin Earls 76e29bdf9c Changed or added timeouts to try to prevent CI hangs 2014-10-17 12:03:04 +02:00
Timothy Bish 41ca0d9464 Add a test case for durable topic unsubscribe. 2014-10-16 16:11:26 -04:00
Timothy Bish e90f1decb2 https://issues.apache.org/jira/browse/AMQ-5391
Fix temp queue creation.
2014-10-15 10:35:36 -04:00
Timothy Bish 78cb1120b7 https://issues.apache.org/jira/browse/AMQ-5391
Allow for an anonymous relay using a configurable node name when
creating the new link, default is $relay.  Message's that arrive without
a to field set are rejected as this is required for a relay.
2014-10-14 17:32:23 -04:00
Timothy Bish 27833d025e Remove unused imports 2014-10-14 11:47:48 -04:00
Timothy Bish 78446ad175 https://issues.apache.org/jira/browse/AMQ-5395
Check for the presence of a prefix before asking for a substring
2014-10-14 11:46:49 -04:00
Dejan Bosanac 838bbebeeb https://issues.apache.org/jira/browse/AMQ-5379 - amqp prefetch size 2014-10-02 11:32:31 +02:00
Timothy Bish 2d9475c4f0 https://issues.apache.org/jira/browse/AMQ-5346
Apply patch for link detach event from @gemmellr
2014-09-30 12:18:00 -04:00
Timothy Bish 80322ce00d https://issues.apache.org/jira/browse/AMQ-5373
Use dynamic ports for the test to avoid clashing with other brokers.
2014-09-30 09:56:24 -04:00
Kevin Earls 025c2316d9 Added timeouts to prevent hangs during CI builds 2014-09-29 14:47:54 +02:00
Timothy Bish c70d75213e https://issues.apache.org/jira/browse/AMQ-5352
Applied and tested, all tests still passing after this change.
2014-09-09 14:19:39 -04:00
Timothy Bish b2e6a41661 https://issues.apache.org/jira/browse/AMQ-5350
Don't link the AMQP max frame size to the TransportConnector
maxFrameSize value.
2014-09-09 10:59:11 -04:00
Timothy Bish 3afde7bac7 https://issues.apache.org/jira/browse/AMQ-5346
need to call free on the amqp resources now to ensure their state data
is all cleaned up.
2014-09-08 17:48:22 -04:00
Timothy Bish 644b96a68a https://issues.apache.org/jira/browse/AMQ-5346
Prepare for the move to Proton 0.8.  Use the 1.0-SNAPSHOT builds to
start testing against the changes coming in Proton 0.8
2014-09-08 13:29:10 -04:00
Daniel Kulp 7fe23bce62 Change some of the amqp tests to be more event driven reducing the time by several minutes 2014-07-21 15:56:05 -04:00
Kevin Earls 2b53036b27 Excluding some tests which hang Jenkins on Windows and Solaris, see AMQ-5270 2014-07-10 17:12:09 +02:00
gtully 5aef16ad06 https://issues.apache.org/jira/browse/AMQ-5256 - fix spurious amqp ioexception on concurrent connection protocol discrimination, client would see a hang on open. additional test 2014-07-01 22:34:44 +01:00
Dejan Bosanac fa086396a7 [maven-release-plugin] prepare for next development iteration 2014-06-05 11:59:29 +02:00
Dejan Bosanac 58dd93e42e [maven-release-plugin] prepare release activemq-5.10.0 2014-06-05 11:59:17 +02:00
Dejan Bosanac c2cf78542f [maven-release-plugin] prepare for next development iteration 2014-06-04 11:33:17 +02:00
Dejan Bosanac 5bc741f227 [maven-release-plugin] prepare release activemq-5.10.0 2014-06-04 11:33:03 +02:00
Dejan Bosanac 1591960887 fixing licenses 2014-06-03 14:03:28 +02:00
Dejan Bosanac 7bfbce9a54 minor cleanup 2014-05-29 16:41:07 +02:00