Commit Graph

4494 Commits

Author SHA1 Message Date
James Strachan 66dd4364ea refactored the C# code generation scripts to make them a little easier to work with
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379507 13f79535-47bb-0310-9956-ffa450edef68
2006-02-21 15:58:36 +00:00
Robert Davies e733f71b48 added a sleep before stop
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379452 13f79535-47bb-0310-9956-ffa450edef68
2006-02-21 13:50:17 +00:00
James Strachan 6ce83ac909 autogenerated unit test cases for OpenWire now working
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379409 13f79535-47bb-0310-9956-ffa450edef68
2006-02-21 10:03:39 +00:00
James Strachan 628f9af1e1 patched code generation so that the unit tests work fine
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379406 13f79535-47bb-0310-9956-ffa450edef68
2006-02-21 10:00:17 +00:00
Robert Davies 2bc09bb764 fixed exponentialBackoff
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379397 13f79535-47bb-0310-9956-ffa450edef68
2006-02-21 09:14:07 +00:00
James Strachan e1bdb1d89b temporarily disabled a test case (AMQ-583) until we can verify it works on all platforms
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379074 13f79535-47bb-0310-9956-ffa450edef68
2006-02-20 10:27:41 +00:00
Robert Davies 8b572cb6b8 don't iterate forever in oneWay() if disposed (can cause some tests to hang in Connection close)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378969 13f79535-47bb-0310-9956-ffa450edef68
2006-02-19 22:15:43 +00:00
Robert Davies b593aca5f8 fix some issues with assembly tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378968 13f79535-47bb-0310-9956-ffa450edef68
2006-02-19 22:14:33 +00:00
Robert Davies 97fff421f3 remove await latch call if closing a loop back network connector - this
should 'fix' - hanging SpringTest.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378967 13f79535-47bb-0310-9956-ffa450edef68
2006-02-19 22:13:54 +00:00
Robert Davies 8610db3e14 remove VMTransport connectors last in stop() - can prevent hanging tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378966 13f79535-47bb-0310-9956-ffa450edef68
2006-02-19 22:12:39 +00:00
Robert Davies 7f384b620e synchronized around memoryTable - prevent concurrent access whilst iterating
for recovery

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378727 13f79535-47bb-0310-9956-ffa450edef68
2006-02-18 14:43:23 +00:00
Robert Davies 068c64639f Add more options for networks:
included, excluded destinationm filters
durable destinations as well as dynamic
conduit subscriptions (multiple subs on smae matching destination are treated as one)
networkTTL = number of hops messages/subs can pass through - default = 1

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378700 13f79535-47bb-0310-9956-ffa450edef68
2006-02-18 07:20:16 +00:00
Robert Davies f915da5772 Extended TransportListener to notify when transport is interrupted and resumed
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378699 13f79535-47bb-0310-9956-ffa450edef68
2006-02-18 07:18:01 +00:00
Hiram R. Chirino bea3be6e01 Applyed http://jira.activemq.org/jira/browse/AMQ-582
Thanks Carlos!  This should help our m2 build a ton.



git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378696 13f79535-47bb-0310-9956-ffa450edef68
2006-02-18 06:03:51 +00:00
Hiram R. Chirino 523ea5f4e7 http://jira.activemq.org/jira//browse/AMQ-568
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378642 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 22:30:59 +00:00
Hiram R. Chirino 236a1ac422 http://jira.activemq.org/jira//browse/AMQ-568
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378626 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 21:01:04 +00:00
James Strachan f680f3ab51 fixed C marshalling generator and Java JUnit test case generator along with adding a first spike of auto-generated JUnit test cases
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378618 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 19:58:05 +00:00
James Strachan f82bd11751 allow a message to be marked as being persistent or not
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378590 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 18:57:05 +00:00
Dennis Cook c739dba503 Change email address
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378580 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 18:05:37 +00:00
James Strachan 73603c3d71 patch the code generation to work with the latest JNDI changes
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378493 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 12:02:35 +00:00
James Strachan 43112670da added base class for auto-generated test cases
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378481 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 10:54:22 +00:00
James Strachan 83ec98be8a Refactor of OpenWire code generation together with move to apache package
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378480 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 10:52:25 +00:00
James Strachan e5959da6d7 added more metadata for openwire
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378479 13f79535-47bb-0310-9956-ffa450edef68
2006-02-17 10:50:56 +00:00
James Strachan ba0ada4db7 fixed a typeo when trying to apply the patch for AMQ-575
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378280 13f79535-47bb-0310-9956-ffa450edef68
2006-02-16 15:34:13 +00:00
James Strachan dba97b77c5 fix for AMQ-575 to avoid the deadlock when removing consumers, which can sometimes cause messages to be redispatched when another consumer is ack-ing a message. a good lesson this one - keep locks for as short a time as possible
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378268 13f79535-47bb-0310-9956-ffa450edef68
2006-02-16 15:06:00 +00:00
James Strachan e82d0fb470 avoid throwing exceptions to clients if a consumer has already been closed (maybe asynchronously)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378226 13f79535-47bb-0310-9956-ffa450edef68
2006-02-16 11:21:38 +00:00
James Strachan 862c1f2138 Applied patch from haliq for AMQ-574
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378218 13f79535-47bb-0310-9956-ffa450edef68
2006-02-16 10:35:59 +00:00
Hiram R. Chirino 83825de78e distribute activecluster with the distro
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378191 13f79535-47bb-0310-9956-ffa450edef68
2006-02-16 07:20:17 +00:00
Hiram R. Chirino 896324436a http://jira.activemq.org/jira/browse/AMQ-505
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378145 13f79535-47bb-0310-9956-ffa450edef68
2006-02-16 02:49:48 +00:00
Hiram R. Chirino 6d333ffb4a Just to be safe, lets also include the LICENSE.txt in the jar files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378138 13f79535-47bb-0310-9956-ffa450edef68
2006-02-16 02:02:28 +00:00
Hiram R. Chirino 6701997522 Fixed test cases that I broke with my previous commit to this file.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378137 13f79535-47bb-0310-9956-ffa450edef68
2006-02-16 01:37:49 +00:00
Hiram R. Chirino 4843dd459c - Refactored the StementProvider and related classes to a simpler Statements class that's easier to configure though the xbean configuration system.
- Added test cases that show this in use.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378119 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 23:37:40 +00:00
Hiram R. Chirino a33f399004 Added a testcase that shows to do more detailed configuration of the JMX mangement context.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378100 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 21:39:54 +00:00
Hiram R. Chirino f8c268df6f Fix for http://jira.activemq.org/jira/browse/AMQ-568
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378037 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 17:09:18 +00:00
Hiram R. Chirino 11d0df6657 http://jira.activemq.org/jira/browse/AMQ-565
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378025 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 16:08:24 +00:00
Hiram R. Chirino 911177eb6c http://jira.activemq.org/jira/browse/AMQ-564
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378023 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 15:51:11 +00:00
Hiram R. Chirino 6f99fe8271 Nullpointer exception could occur is the session is being closed at the same time that an async exception is received since it would also close the session out at the same time.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378014 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 14:57:46 +00:00
James Strachan a8dfa1f41b renamed to proper JAAS name rather than JASS typo
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378008 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 13:45:13 +00:00
James Strachan affd134592 added a pure XBean based authorization and authentication mechanism
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378006 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 13:33:52 +00:00
Frederick G. Oconer f4fc3e9a6d Support for jdbc driver mysql-connector-java. However, this uses the DefaultJDBCAdapter.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378000 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 13:03:41 +00:00
James Strachan 9f59397aa3 refactor of the authorization plugin to make it easier to create alternative data structures for capturing the different ACLs; such as a single tree based authorization map
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377995 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 12:38:40 +00:00
James Strachan 4686ec5f0b added a BrokerPlugin mechanism to allow users to customize the Broker interceptor stack
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377991 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 11:48:17 +00:00
Hiram R. Chirino 0f502fae3d Fixed a few of the broken durable subscription tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377936 13f79535-47bb-0310-9956-ffa450edef68
2006-02-15 04:35:12 +00:00
James Strachan 6d3621e7af fix for AMQ-502
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377768 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 17:00:08 +00:00
James Strachan c341dc71a0 fixed up the Stomp test cases
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377766 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 16:56:15 +00:00
James Strachan 329e2f3b99 enabled logging by default of all service exceptions
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377765 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 16:54:36 +00:00
James Strachan 1b3a5939a8 fixed unsubscribe test
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377725 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 13:39:34 +00:00
James Strachan 06f44c7245 avoid unnecessary comparisons
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377724 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 13:38:09 +00:00
James Strachan a603c40b64 added test case and support for selectors on Stomp subscriptions
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377713 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 12:55:35 +00:00
James Strachan c4c5895d33 added test case and fix for the sending of Stomp messages with headers
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377712 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 12:43:46 +00:00
Robert Davies f7ed407271 getDurableDestinations() now returns empty set if the persistence adaptor is null -
instead of throwing npe

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377701 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 11:31:56 +00:00
Alan Cabrera 84942ae5b0 Added incubation disclaimer.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377651 13f79535-47bb-0310-9956-ffa450edef68
2006-02-14 06:45:29 +00:00
Robert Davies e7106d31b1 Set existing durable destinations on a network connector
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377421 13f79535-47bb-0310-9956-ffa450edef68
2006-02-13 16:52:03 +00:00
Robert Davies debd0cc241 Added getDurableDestinations() to Broker - to make accessable for NetworkConnectors
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377412 13f79535-47bb-0310-9956-ffa450edef68
2006-02-13 16:31:37 +00:00
Robert Davies f787e20139 Expose getDestinations() from the persistenceAdapator
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377397 13f79535-47bb-0310-9956-ffa450edef68
2006-02-13 15:38:10 +00:00
James Strachan f921ef7f61 reset figures in right order to make counting more likely to be accurate by a little bit :)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@377387 13f79535-47bb-0310-9956-ffa450edef68
2006-02-13 14:53:04 +00:00
Hiram R. Chirino a71a2a5dc0 Fix for DurableConsumerCloseAndReconnectTest,
- The eager loading of durable subs had broken the test a little..  fixed it up now.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376861 13f79535-47bb-0310-9956-ffa450edef68
2006-02-10 21:14:53 +00:00
Hiram R. Chirino 618d1d5a88 Fixing DurableConsumerCloseAndReconnectTest:
Added a getter to see if the destination is a pattern 

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376858 13f79535-47bb-0310-9956-ffa450edef68
2006-02-10 21:12:15 +00:00
Hiram R. Chirino 96adbc3fbb Fixing broker DurableConsumerCloseAndReconnectTest, subscriptions were not being added to the result array.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376856 13f79535-47bb-0310-9956-ffa450edef68
2006-02-10 21:11:33 +00:00
Hiram R. Chirino 404c73bcc5 Added toString so that object is esier to view under a debugger.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376855 13f79535-47bb-0310-9956-ffa450edef68
2006-02-10 21:10:14 +00:00
Hiram R. Chirino d86f77f462 Fixed failing ChangeSessionDeliveryModeTest test in the assembly module.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376766 13f79535-47bb-0310-9956-ffa450edef68
2006-02-10 17:06:46 +00:00
Hiram R. Chirino 68d245f4bf Migrated to using xbean 2.2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376445 13f79535-47bb-0310-9956-ffa450edef68
2006-02-09 21:41:59 +00:00
Hiram R. Chirino 40926586aa Call transportFailed() only for IOException caused by the transport. Async exceptions from the broker could just mean that an async operation failed (like an async send).
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376339 13f79535-47bb-0310-9956-ffa450edef68
2006-02-09 16:29:30 +00:00
Hiram R. Chirino 4f6e90108f The QueueMasterSlaveTest and TopicMasterSlaveTest were hanging on on teardown of the test case due us issuing a transport request() that never returned. Converterted to just issuing a oneway and it seems to have fixed the issue.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376332 13f79535-47bb-0310-9956-ffa450edef68
2006-02-09 16:04:54 +00:00
Hiram R. Chirino 28ca7515c9 removed the debug printlns
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376330 13f79535-47bb-0310-9956-ffa450edef68
2006-02-09 16:03:04 +00:00
Robert Davies 6985a09ee6 allow executeBatch() in close - if not in a transaction - to release locks
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376298 13f79535-47bb-0310-9956-ffa450edef68
2006-02-09 14:08:02 +00:00
Robert Davies b59d0b5938 Set timestamp on the broker
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376260 13f79535-47bb-0310-9956-ffa450edef68
2006-02-09 11:06:41 +00:00
Adrian T. Co e99fc62e4a - Added a message to the request map in failover before sending it to prevent race condition where the response tries (and fails) to remove the message before it is even added. This is to prevent double sending a message because it is still in the requestMap. (This is for the master-slave test cases)
- Enabled a QueueBridgeTest, this test seems to pass already.
- Some minor typo correction.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376206 13f79535-47bb-0310-9956-ffa450edef68
2006-02-09 06:43:10 +00:00
Hiram R. Chirino 1a3021beac rollback this change since it breaks stuff.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376065 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 20:58:20 +00:00
Hiram R. Chirino ef61027ad7 Added some better logging.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376048 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 20:24:52 +00:00
Hiram R. Chirino a7ac415557 Added better proxy connector cleanup code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376047 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 20:23:08 +00:00
Hiram R. Chirino 7e672d4150 Close the transport if for some reason the connection cannot be accepted.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376044 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 20:20:24 +00:00
Hiram R. Chirino 43d4e983dc A little better logging to see when brokers are started and stopped.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376042 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 20:17:12 +00:00
Robert Davies ef0127d81c updated for compilation errors for some java platforms
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376041 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 20:13:33 +00:00
Hiram R. Chirino 1b9c601975 use service stopper to simplify stop() method
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376040 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 20:06:18 +00:00
Robert Davies 49e8a803aa rationalize the QueueBridge/TopicBridge
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376019 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 18:26:35 +00:00
Robert Davies d52e6ac042 support defining local address and port for a socket - e.g:
ssl://localhost:5666/localhost:60606
where the path (localhost:60606) - defines the local address and local port

For jira issue: AMQ-529

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@375923 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 11:03:02 +00:00
Robert Davies 36a2bdc519 receive() returns null on connection transport failure
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@375721 13f79535-47bb-0310-9956-ffa450edef68
2006-02-07 21:40:23 +00:00
Hiram R. Chirino e6f5d3026e - Implemented http://jira.activemq.org/jira/browse/AMQ-511
- Queues can now be browsed, messages deleted, or queue can be purged.
- Added initial hooks to expose subscriptions for JMX managment.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@375654 13f79535-47bb-0310-9956-ffa450edef68
2006-02-07 18:34:21 +00:00
Robert Davies db747b49d9 fix for usecase: ThreeBrokerQueueNetworkUsingTcpTest.java
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@375598 13f79535-47bb-0310-9956-ffa450edef68
2006-02-07 13:34:12 +00:00
Adrian T. Co 7fa8660c7e - Move AMQ command console to separate module (activemq-console)
- Move Main.java to console module
- Move maven goal "run:broker" from core to console.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@375519 13f79535-47bb-0310-9956-ffa450edef68
2006-02-07 06:48:24 +00:00
Adrian T. Co f6735ea870 Fix typo in method name.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@375179 13f79535-47bb-0310-9956-ffa450edef68
2006-02-06 05:16:33 +00:00
Robert Davies 6ea186cf65 seperate inbound and outbound message convertors
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@375088 13f79535-47bb-0310-9956-ffa450edef68
2006-02-05 19:58:14 +00:00
Robert Davies bf8f99b51d remove System.err println
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@375087 13f79535-47bb-0310-9956-ffa450edef68
2006-02-05 19:56:10 +00:00
Robert Davies 641140ebab Forced to copy message before leaving the consumer - as the destination could change if
the message is forwarded on.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374795 13f79535-47bb-0310-9956-ffa450edef68
2006-02-04 00:35:53 +00:00
Robert Davies e1bc55dafe separate JndiTemplate into local and outbound
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374729 13f79535-47bb-0310-9956-ffa450edef68
2006-02-03 19:22:40 +00:00
Frederick G. Oconer 82d60e1291 make Serializable to prevent NotSerializableException in weblogic (AMQ-501) - Patrick Villacorta
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374605 13f79535-47bb-0310-9956-ffa450edef68
2006-02-03 08:48:25 +00:00
Robert Davies a1c4eb6d48 return IntegerResponse from prepareTransaction()
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374309 13f79535-47bb-0310-9956-ffa450edef68
2006-02-02 08:56:23 +00:00
Guillaume Nodet 3a0358ee17 Fix threading problems in the DemandForwardingBridge.java
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374292 13f79535-47bb-0310-9956-ffa450edef68
2006-02-02 07:47:16 +00:00
Robert Davies d517eebfbc put back default Constructor on NetworkConnector - for now.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374288 13f79535-47bb-0310-9956-ffa450edef68
2006-02-02 06:54:17 +00:00
Frederick G. Oconer 9e4779964d excluded ProxyConnectorTest because it hangs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374277 13f79535-47bb-0310-9956-ffa450edef68
2006-02-02 06:03:36 +00:00
Robert Davies 4d9ab0cffc Added setter for the MBeanServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374137 13f79535-47bb-0310-9956-ffa450edef68
2006-02-01 18:26:36 +00:00
Robert Davies 7f634906d0 log execption and fire to exception listener if exception thrown
in run() method

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374101 13f79535-47bb-0310-9956-ffa450edef68
2006-02-01 16:28:57 +00:00
Robert Davies e62711760b corrected javadoc
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374064 13f79535-47bb-0310-9956-ffa450edef68
2006-02-01 13:37:28 +00:00
Robert Davies 5a429d90bb Fixes for networks and the invalid Brokers caper
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@373863 13f79535-47bb-0310-9956-ffa450edef68
2006-01-31 16:35:13 +00:00
Robert Davies 3e7ebc2368 Add a check to the iterate() so that on failover - it's not possible
to iterate for ever if the transport has actually been stopped

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@373862 13f79535-47bb-0310-9956-ffa450edef68
2006-01-31 16:31:21 +00:00
James Strachan 2ae7169856 removed possible NPE
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@373809 13f79535-47bb-0310-9956-ffa450edef68
2006-01-31 12:33:44 +00:00
James Strachan e6747ead95 patch and test case for AMQ-514 to make BrokerInfo and the broker name visible to an ActiveMQConnection
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@373548 13f79535-47bb-0310-9956-ffa450edef68
2006-01-30 16:59:01 +00:00
James Strachan 9c0d3ce072 added better debug tracing so that destinations are explicit in whether they are a queue or topic
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372952 13f79535-47bb-0310-9956-ffa450edef68
2006-01-27 19:33:21 +00:00
Robert Davies 233b604642 check if a broker held by the TransportConnector is stopped before asigning it for re-use (i.e. VMTransportServer)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372910 13f79535-47bb-0310-9956-ffa450edef68
2006-01-27 17:00:26 +00:00
Gregory John Wilkins 6a70920b20 notify listener after the enqueue
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372844 13f79535-47bb-0310-9956-ffa450edef68
2006-01-27 13:31:17 +00:00
James Strachan 2f944a19e3 added fix for issue reported on forum: http://forums.activemq.org/posts/list/0/60.page
where on startup we get the following exception when using mysql

java.io.IOException: Can't call commit when autocommit=true 
at org.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:44) 
at org.activemq.store.jdbc.TransactionContext.close(TransactionContext.java:113) 
at org.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:253) 
at org.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:140) 

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372805 13f79535-47bb-0310-9956-ffa450edef68
2006-01-27 10:16:16 +00:00
James Strachan 8fbbd24122 fixed typeo
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372800 13f79535-47bb-0310-9956-ffa450edef68
2006-01-27 10:02:05 +00:00
James Strachan 3d18a3dc7b made the adapter class configurable on the <journaledJDBC adapterClass="...."/>
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372799 13f79535-47bb-0310-9956-ffa450edef68
2006-01-27 09:57:38 +00:00
James Strachan 40ce55be77 added extra NPE check
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372519 13f79535-47bb-0310-9956-ffa450edef68
2006-01-26 12:40:12 +00:00
Frederick G. Oconer a9d3883dc8 commented out goal that override the jar:deploy. This causes error when deploying the jar in the dist repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372437 13f79535-47bb-0310-9956-ffa450edef68
2006-01-26 04:49:28 +00:00
Robert Davies afcefa0111 Added durable topic test for master/slave
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372300 13f79535-47bb-0310-9956-ffa450edef68
2006-01-25 20:06:17 +00:00
Frederick G. Oconer 9a699a4d06 correction on artifact name given for xsd deploy goal.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372090 13f79535-47bb-0310-9956-ffa450edef68
2006-01-25 03:42:36 +00:00
Robert Davies 8b04e15826 Fixes for Master-Slave functionality
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@372050 13f79535-47bb-0310-9956-ffa450edef68
2006-01-24 23:08:29 +00:00
Hiram R. Chirino b2039fb1c2 Fix for https://jira.logicblaze.com/jira/browse/AMQ-494
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@371949 13f79535-47bb-0310-9956-ffa450edef68
2006-01-24 16:02:42 +00:00
Robert Davies fd156f833a send back responses
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@371910 13f79535-47bb-0310-9956-ffa450edef68
2006-01-24 13:34:59 +00:00
Adrian T. Co 4b8822f154 - Added task to browse a queue for messages that includes the ability to query for selected messages only, and specify the properties to view. (Still considering adding one for topics too)
- Redesigned the querying mechanism to allow easy insertion and/or extension of specific querying filters
- Redesigned the output mechanism to allow easy inclusion of different output formatters (i.e. output in command shell friendly format, script friendly format, xml format, etc.)
- Currently have just included a not-so-friendly command shell formatter. :) Have plans to modify this and maybe include an xml formatter and/or script friendly formatter.

PS: I plan to move the console package outside activemq-core and include some unit tests with it sometime in the very near future. I know its kinda messy right know. :)

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@371880 13f79535-47bb-0310-9956-ffa450edef68
2006-01-24 10:23:34 +00:00
Dennis Cook f9a763586a AMQ-500 reconciled windows start script with o.a.a.broker.Main
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@371767 13f79535-47bb-0310-9956-ffa450edef68
2006-01-24 01:38:07 +00:00
Hiram R. Chirino d2d1c6d63d The Transport Connection now notifies it's Connector of lifecycle events so that the Connector does not have to wrap the broker in yet another filter to notice the connection's lifecycle events.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@371636 13f79535-47bb-0310-9956-ffa450edef68
2006-01-23 19:40:42 +00:00
Hiram R. Chirino 1c64baadea Disabling StompTest see https://jira.logicblaze.com/jira/browse/AMQ-502
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@371600 13f79535-47bb-0310-9956-ffa450edef68
2006-01-23 17:18:33 +00:00
Robert Davies 71afa0ded9 removed sleep from stop() method
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@371590 13f79535-47bb-0310-9956-ffa450edef68
2006-01-23 16:48:10 +00:00
Hiram R. Chirino c3c0ea7265 Applied patch reported by christopher.kingsbury@gmail.com
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370926 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 23:14:35 +00:00
Hiram R. Chirino ef94b843cc removed unused line
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370901 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 21:35:09 +00:00
Robert Davies 5b2e9be749 added messageSent() method - so can hook in failure tests in derived unit tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370330 13f79535-47bb-0310-9956-ffa450edef68
2006-01-19 00:34:52 +00:00
Robert Davies 4098942c1e Added master/slave functionality to the Broker
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370223 13f79535-47bb-0310-9956-ffa450edef68
2006-01-18 19:16:58 +00:00
Jonas B. Lim 377780985c added additional test cases for the other stomp verbs/features
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370081 13f79535-47bb-0310-9956-ffa450edef68
2006-01-18 09:10:49 +00:00
Alan Cabrera 85402ce387 Clean up
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370004 13f79535-47bb-0310-9956-ffa450edef68
2006-01-18 01:54:51 +00:00
Dennis Cook d3aa9bf2be Allow defeat of auto include of $ACTIVEMQ_HOME/conf in classpath (after refactor)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@369868 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 19:05:51 +00:00
Adrian T. Co b9a4deed5d - Made ActiveMQConnectionFactory and ActiveMQDestination referenceable.
- Ported to 4.x the jndi implementation from 3.x (JNDIStorableInterface, JNDIBaseStorable, JNDIReferenceFactory)
- Added a simple test case to test the object factory.


git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@369411 13f79535-47bb-0310-9956-ffa450edef68
2006-01-16 09:58:02 +00:00
Hiram R. Chirino 91bc5609f4 - fix test dependency
- and echo when the test jar is installed


git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@369320 13f79535-47bb-0310-9956-ffa450edef68
2006-01-16 03:01:24 +00:00
Hiram R. Chirino 23334ff9a6 Protect against recursing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@369174 13f79535-47bb-0310-9956-ffa450edef68
2006-01-15 03:41:03 +00:00
Hiram R. Chirino a0adce9cb5 Updated poms so that we use the incubator-apache group id so that folks can clearly tell that we are still in the incubator
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@369097 13f79535-47bb-0310-9956-ffa450edef68
2006-01-14 21:27:28 +00:00
David Blevins c7e4ad74c9 Don't need that dep
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368961 13f79535-47bb-0310-9956-ffa450edef68
2006-01-14 02:33:26 +00:00
Adrian T. Co 2ddd372cad Added initial implementation to make ActiveMQConnectionFactory and ActiveMQDestination referenceable.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368957 13f79535-47bb-0310-9956-ffa450edef68
2006-01-14 02:10:14 +00:00
Hiram R. Chirino 982a119ba6 Renamed the *Task stuff to *Command, the Main method now just only calls the DefaultCommand, which delegates to the other commands.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368942 13f79535-47bb-0310-9956-ffa450edef68
2006-01-14 01:08:12 +00:00
Dennis Cook 4d7ea5ef6e Allow defeat of auto include of $ACTIVEMQ_HOME/conf in classpath
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368924 13f79535-47bb-0310-9956-ffa450edef68
2006-01-13 23:55:19 +00:00
Dennis Cook eef9202675 AMQ-484: Restore discoveryUri when replacing TransportConnector with ManagedTransportConnector
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368911 13f79535-47bb-0310-9956-ffa450edef68
2006-01-13 23:11:20 +00:00
Adrian T. Co 70c2d886d1 Refactored the main class to several task class and use the main class to bootstrap each task.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368560 13f79535-47bb-0310-9956-ffa450edef68
2006-01-13 02:52:57 +00:00
Hiram R. Chirino 7a7496c841 Maven 1 pom changes so that we cen start deploying to the apache maven repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368463 13f79535-47bb-0310-9956-ffa450edef68
2006-01-12 20:43:53 +00:00
Robert Davies af9f61015d Adding some changes to support master/slave
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@368075 13f79535-47bb-0310-9956-ffa450edef68
2006-01-11 18:15:13 +00:00
Adrian T. Co 1a9d2862a4 - Added two broker test where each broker has a client that connects and disconnects and the destination is a queue
- Minor updates to some of the test cases and test support

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367958 13f79535-47bb-0310-9956-ffa450edef68
2006-01-11 07:43:05 +00:00
James Strachan da77d2c649 fix to allow a foreign JMS message ID to be set on an ActiveMQMessage
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367741 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 19:14:01 +00:00
Hiram R. Chirino ffad45edff Fix for https://jira.logicblaze.com/jira/browse/AMQ-470
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367724 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 18:42:30 +00:00
Hiram R. Chirino a7785c6a54 - make the group sequences 0 based to match producer message sequences which are also 0 based
- fixed bucket hashing method to handle cases where the group id hashes to a negative number.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367676 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 16:33:13 +00:00
Hiram R. Chirino 6397d0560b pass on async exceptions to the Exception listener
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367673 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 16:28:24 +00:00
James Strachan 2ba813b311 added support for Throwable in OpenWire.Net
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367640 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 15:26:51 +00:00
James Strachan dfb9c82114 disabled auto-generation of more hand-crafted commands
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367606 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 13:59:47 +00:00
Robert Davies fb53ad9cf3 applied proper fix for AMQ-464
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367598 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 13:36:55 +00:00
James Strachan 434c38ff94 refactored packages of OpenWire.Net
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367569 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 11:29:06 +00:00
James Strachan c3a767b21e further cleaning up of the OpenWire protocol now that the FooId classes all now have value properties called "value"
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367565 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 10:55:01 +00:00
Adrian T. Co aa7435064a Called super.setUp and super.tearDown. To ensure auto fail is called.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367489 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 05:21:19 +00:00
Patrick Edward Lapus Villacorta a9e047d92e Add auto fail support when test hangs
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367460 13f79535-47bb-0310-9956-ffa450edef68
2006-01-10 02:00:27 +00:00
Hiram R. Chirino f2669a70a6 don't close the connection on a async error since we are not sure that it was connection failure. It may just have been a failed operation (security constrain or something).
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367409 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 21:55:53 +00:00
Hiram R. Chirino b2f4fc6af9 re-ran the openwire generation script
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367349 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 18:10:44 +00:00
Hiram R. Chirino c59246d5ed - Changed the command id objects so that they do not use fields that have the same name as the class (for the .net folks)
- Added a ConnectionError command that can be used to notify a connection of async errors associated with the connection.
- 

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367341 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 17:21:52 +00:00
James Strachan 42ec94a247 Latest generated Java code
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367322 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 16:08:51 +00:00
James Strachan fd32d5612c updated the C# generation scripts to create valid C# code
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367310 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 14:58:16 +00:00
James Strachan 4afa5d6f09 added the numeric values from CommandTypes to the annotations for generation of other languages
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367276 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 11:31:05 +00:00
Adrian T. Co fa63d9091f Minor change to toString and System.out
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367254 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 09:40:06 +00:00
Adrian T. Co 579a1d4130 - Added test cases for multiple brokers
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367253 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 09:39:12 +00:00
Adrian T. Co 52aeaa2965 Fix splitting of components.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367158 13f79535-47bb-0310-9956-ffa450edef68
2006-01-09 01:50:28 +00:00
James Strachan 10681a29b8 nearly building OpenWire.Net; much closer now
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366723 13f79535-47bb-0310-9956-ffa450edef68
2006-01-07 13:46:58 +00:00
James Strachan 034949a481 use helper methods to read the primitive nested types like BrokerId
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366551 13f79535-47bb-0310-9956-ffa450edef68
2006-01-06 19:18:02 +00:00
James Strachan 2942846abc closer to compilable OpenWire.Net classes
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366549 13f79535-47bb-0310-9956-ffa450edef68
2006-01-06 19:11:45 +00:00
James Strachan d51d772352 more fixes for OpenWire.Net; getting close to compiling :)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366542 13f79535-47bb-0310-9956-ffa450edef68
2006-01-06 17:53:56 +00:00
James Strachan ccd1113a79 updated OpenWire.Net generation script
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366539 13f79535-47bb-0310-9956-ffa450edef68
2006-01-06 17:31:28 +00:00
James Strachan 606bba7b1e first spike at getting the OpenWire.Net to work; also upgraded to latest groovy
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366534 13f79535-47bb-0310-9956-ffa450edef68
2006-01-06 17:11:53 +00:00
Adrian T. Co 6285f96b15 Reset checking for successful test every test setUp.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366443 13f79535-47bb-0310-9956-ffa450edef68
2006-01-06 07:13:28 +00:00
Adrian T. Co d265b31385 Wrong size read causing hangup.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366398 13f79535-47bb-0310-9956-ffa450edef68
2006-01-06 03:04:54 +00:00
Hiram R. Chirino 04968b6811 We now optimize out persisting persistent messages to a topic if it does not have any durable consumers.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366274 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 20:39:41 +00:00
Hiram R. Chirino 013f37294e - Refactored out introspection based toString() logic to the IntrospectionSupport class
- Durable subscriptions are now eagerly loaded when a topic is created.
- Fixed the *TransactionTest 

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366220 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 17:09:05 +00:00
James Strachan d7f91463d6 enabled the hash bucket based implementation of MessageGroupMap by default and made the bucketCount configurable in the destination policy map
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366208 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 15:58:49 +00:00
James Strachan e1d4780221 minor refactor to allow pluggable MessageGroupMap implementations so that we don't have to keep around every single GroupID in RAM if we don't want to (which could very easily become a RAM leak) and can use a provider which uses hashbuckets instead.
added an initial implementation of a hashbucket based MessageGroupMap which should be fine; am waiting on a unit test run to complete before I dare enable it by default :)

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366204 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 15:36:07 +00:00
Hiram R. Chirino 71bd33d3ec Fix SQL statement.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366203 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 15:35:45 +00:00
James Strachan ab1d1afc1c fixed test case to close down the connection in between test cases to avoid duplicate clientID exceptions
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366199 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 15:23:18 +00:00
Robert Davies ef3b50e18b when sending - use quality of service applicable to message and subscriber
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366191 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 14:58:35 +00:00
James Strachan 95a2aa6b8f fixed reconnection test which was creating a new connection with a client ID before closing the previous one which threw the InvalidClientIDException
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366188 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 14:48:09 +00:00
Robert Davies c68a1460ba Fix for AMQ-464
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366176 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 13:04:31 +00:00
James Strachan f0454b1e88 part of the fix for AMQ-286 to allow the redelivery policy to be configured on a consumer
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366170 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 12:21:24 +00:00
James Strachan c5b3802c61 made it easy to copy a RedeliveryPolicy
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366151 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 10:43:17 +00:00
Adrian T. Co 34cadafaab Change subtractive query to use -xQ and --xobjname instead of !. Having trouble using ! in linux.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366145 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 10:04:04 +00:00
Adrian T. Co 04e2cdcf3f - Added wildcard searching using query. (i.e. -QTopic=*Advisory*, -QQueue=TEST.???)
- Added subtractive searching using query. (i.e. query -QTopic=* -Q!Topic=ActiveMQ.Advisory.*) will get all topics, but filter out advisory topics.
- Added querying using similar to object name format. (i.e. query --objname Type=*Connect*,BrokerName=BROKER_1 --objname !Type=NetworkConnector) will select all connection and connector belonging to BROKER_1. It will filter out all network connectors.
- Performed a little code restructuring.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366120 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 08:26:37 +00:00
James Strachan c8d74e7113 removed RedeliveryPolicy from openwire and moved into the client package
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366118 13f79535-47bb-0310-9956-ffa450edef68
2006-01-05 08:22:59 +00:00
Hiram R. Chirino 9b64c37c4c Added a SubscriptionInfo[] getAllSubscriptions() to the TopicMessageStore. We will need this if we want to eagerly load the durable subs when the broker starts up.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365993 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 21:09:16 +00:00
Hiram R. Chirino 27329abdcb don't log a message when the WireFormatInfo comes in from the other side.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365966 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 18:41:16 +00:00
Hiram R. Chirino e6efdb1955 Fix the security test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365965 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 18:39:23 +00:00
Hiram R. Chirino c0edaf0532 Use the jdbc catalog to avoid displaying warning messages on startup when the activemq tables allready exist.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365954 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 17:40:32 +00:00
Hiram R. Chirino 3852a53f3e use "Topic." rather than "topic://" as the separator when making advisories. This makes it easier for folks to use * notation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365941 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 16:49:43 +00:00
James Strachan de231491a7 added test case and fix for AMQ-463 to test for duplicate clientIDs connecting
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365917 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 14:42:24 +00:00
James Strachan c62a775af4 added more edge cases to the DestinationMap test case
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365890 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 10:53:14 +00:00
James Strachan 8b28367f3d fixed the DestinationMap so that it can hold queues and topics with the same name without intermixing the two trees
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365888 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 10:42:21 +00:00
James Strachan 0a8efc977b added test case to show the use of individual dead letter strategy via XML
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365885 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 10:32:07 +00:00
James Strachan 8f22cfa4fc make destinations sortable
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365883 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 10:31:15 +00:00
James Strachan 664b534be5 fixed edge cases in DestinationMap
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365882 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 10:30:40 +00:00
Adrian T. Co 6cbd6d2e8d Added adding of started broker to lists of brokers.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365876 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 09:58:35 +00:00
Adrian T. Co b70c8d1cb2 Re-included the means to prevent the main thread from exiting until the vm is exited elsewhere (either Ctrl+C, terminateJVM, etc.)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365865 13f79535-47bb-0310-9956-ffa450edef68
2006-01-04 08:48:41 +00:00
Hiram R. Chirino 050637cdf6 use the BrokerFactory to create BrokerService objects
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365746 13f79535-47bb-0310-9956-ffa450edef68
2006-01-03 21:01:10 +00:00
Hiram R. Chirino 6027d2aee9 generated resources were not being copied to target/classes
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365740 13f79535-47bb-0310-9956-ffa450edef68
2006-01-03 20:47:18 +00:00
Hiram R. Chirino 7dbbe0c854 Fix test case
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365713 13f79535-47bb-0310-9956-ffa450edef68
2006-01-03 18:55:54 +00:00
Hiram R. Chirino a4618caf0c better pom for m2
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365712 13f79535-47bb-0310-9956-ffa450edef68
2006-01-03 18:54:54 +00:00
Hiram R. Chirino d9987ffd31 The roundrobin test was failing on slow machines because the prefetch size was too small so the round robined
distribution was not equals since the slow consumer's prefetch window would fill up and other consumers would
unevenly get more messages.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365537 13f79535-47bb-0310-9956-ffa450edef68
2006-01-03 04:35:23 +00:00
Hiram R. Chirino 161448a5e3 The SimpleDispatchPolicyTest and RoundRobinDispatchPolicyTest were failing on my single proc powerbook.
The parent of the MessageIdList was being called before the clild had processed the message which
cause the test to not wait till the childeren had processed the messages so tests would fail 
due to short counts.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365367 13f79535-47bb-0310-9956-ffa450edef68
2006-01-02 16:05:31 +00:00
Hiram R. Chirino ef64a25b9f Better test setup
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365280 13f79535-47bb-0310-9956-ffa450edef68
2006-01-02 02:50:00 +00:00
Hiram R. Chirino 6bdfbf3d73 This fixes the timing issues that the RecoveryBrokerTests were having.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365277 13f79535-47bb-0310-9956-ffa450edef68
2006-01-02 02:12:56 +00:00
Hiram R. Chirino 61ab31e758 imporoved the advisory message being sent by topics when no consumer is listening:
- It sends it non transactional
 - It does does not block due to flow control

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360329 13f79535-47bb-0310-9956-ffa450edef68
2005-12-31 16:50:52 +00:00
Hiram R. Chirino 77dd8fb71d use a tighter wait() based on the remaining time
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360323 13f79535-47bb-0310-9956-ffa450edef68
2005-12-31 16:48:55 +00:00
Hiram R. Chirino 14f96a9e6f The testcase would wait for all the messages to arrive. But in the topic case the total number of messages computed was wrong and the test would not wait long enough.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360318 13f79535-47bb-0310-9956-ffa450edef68
2005-12-31 16:33:49 +00:00
Hiram R. Chirino 3516e1005a better tearDown: allows setup and tear down to be call multiple times in a single testcase.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360315 13f79535-47bb-0310-9956-ffa450edef68
2005-12-31 16:30:26 +00:00
Hiram R. Chirino 7703aeef0c not sure why.. but these guys are passing for me now.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360197 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 23:33:46 +00:00
Hiram R. Chirino 3d95025a47 Depending on the test configuration parameters, it was possible to get an OutOfMemory error. The causes were:
- The MessageList was holding on to all the messages being consumed, changed this so that it only holds on to the messageIds
 - Was using a non persistent broker, but was sending it persistent messages, in the topic case, he holds on to the messages in a memory based message store.  By default we now send non persistent messages.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360195 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 23:25:03 +00:00
Hiram R. Chirino 5be5a62df6 Updated/Added more apache copyright headers
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360181 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 22:37:11 +00:00
Hiram R. Chirino e7246d9327 Make the default thread pool create deamon threads
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360169 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 21:27:21 +00:00
Hiram R. Chirino 475925394a Fixed the QueueSubscriptionTest. When multiple producers would pound all at once at a destionation. Some messages would not get dispatched. Due to timing issue with the consumer list held by the destination.
Added some more synchronization blocks and now everything is happy again.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360167 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 21:14:03 +00:00
Hiram R. Chirino 90e21b4e8f Modified the BrokerInfo so that the redelivery policy is now purely configured on the client side. Also the connection's transport
is not started until the connection if fully configured now.



git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360140 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 18:48:31 +00:00
James Strachan 1f3f80cf77 fixed bug in test case
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360135 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 18:36:29 +00:00
James Strachan de7f650b16 avoid possible NPE; only set the redeliveryPolicy if there is one configured
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360132 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 18:25:15 +00:00
Hiram R. Chirino 80f5e0ced1 Fixed https://jira.logicblaze.com/jira/browse/AMQ-460
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360127 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 18:09:24 +00:00
James Strachan eac597346c allows for the specifying of ActiveMQ specific connection headers
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360111 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 15:55:20 +00:00
James Strachan 10c6b2964f added test cases to demonstrate shared and individual DLQ strategies; which highlight a bug in the rollback logic in the client
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360108 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 15:36:19 +00:00
James Strachan ffb9d2aabb allow the RedeliveryPolicy to be configured on an ActiveMQConnectionFactory
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360105 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 15:34:31 +00:00
James Strachan 88203aea9b added the ability to configure the DLQ policy on a per destination basis; either use 1 global DLQ for all messages or use 1 DLQ for a bunch of messages via a wildcard PolicyEntry or use an individual DLQ per destination (which again can be attached to a wildcard via a PolicyEntry)
fixes AMQ-459

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360089 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 14:05:51 +00:00
James Strachan 20b343110c added test case to show the configuration of prefetch sizes in Stomp using header "activemq.prefetchSize: 1"
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360062 13f79535-47bb-0310-9956-ffa450edef68
2005-12-30 10:24:55 +00:00
James Strachan f1dc4779c5 tidied up the test cases a bit
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359856 13f79535-47bb-0310-9956-ffa450edef68
2005-12-29 17:26:35 +00:00
James Strachan f051364d6b updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359832 13f79535-47bb-0310-9956-ffa450edef68
2005-12-29 16:08:59 +00:00
James Strachan 312f2489a3 fixed up test cases after they broker with the MessageList refactor
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359830 13f79535-47bb-0310-9956-ffa450edef68
2005-12-29 16:07:01 +00:00
James Strachan b49256b2e5 refactored the test case to use MessageList to avoid timing issues
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359827 13f79535-47bb-0310-9956-ffa450edef68
2005-12-29 15:46:09 +00:00
James Strachan 27f7cab3e8 added test case to show AMQ-458 working
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359819 13f79535-47bb-0310-9956-ffa450edef68
2005-12-29 15:17:19 +00:00
James Strachan c2408b8997 enable by default that non-persistent topic messages which have no consumers are sent to a dead letter topic
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359800 13f79535-47bb-0310-9956-ffa450edef68
2005-12-29 14:12:46 +00:00
Adrian T. Co ff457e227a - Added test support for multiple consumers and producers
- Added test cases for queue and topic subscriptions
- Added test cases for the different dispatch policies

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359769 13f79535-47bb-0310-9956-ffa450edef68
2005-12-29 10:07:55 +00:00
Hiram R. Chirino 48b4869472 Updated copyright headers to be (c) 2005-2006
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359679 13f79535-47bb-0310-9956-ffa450edef68
2005-12-29 02:15:21 +00:00
Hiram R. Chirino c1f5c77e62 part of package refactor
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359578 13f79535-47bb-0310-9956-ffa450edef68
2005-12-28 17:49:50 +00:00
Hiram R. Chirino d29ca2a71b Refactor org.activemq -> org.apache.activemq
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359567 13f79535-47bb-0310-9956-ffa450edef68
2005-12-28 17:24:02 +00:00
James Strachan 3062f751d7 added extra jar for testing of connection pool
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359549 13f79535-47bb-0310-9956-ffa450edef68
2005-12-28 15:34:58 +00:00
Hiram R. Chirino a59fee46d5 Do better handling of the reference counting during dispatch.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359548 13f79535-47bb-0310-9956-ffa450edef68
2005-12-28 15:34:06 +00:00
James Strachan e58897bd69 minor refactor to provide a hook when dispatching messages which have no consumers; so that we can for example, send them to a dead letter queue
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359547 13f79535-47bb-0310-9956-ffa450edef68
2005-12-28 15:33:05 +00:00
Hiram R. Chirino 1e0bbfc3ed more m2 pom changes
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359543 13f79535-47bb-0310-9956-ffa450edef68
2005-12-28 15:25:44 +00:00
Hiram R. Chirino 62b2f7fe53 Applying patch suggested by sanders@apache.org to fix stomp priority bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359240 13f79535-47bb-0310-9956-ffa450edef68
2005-12-27 16:49:20 +00:00
Hiram R. Chirino 5cea195af2 Applied patch suggested by marcusp@absa.co.za on the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359239 13f79535-47bb-0310-9956-ffa450edef68
2005-12-27 16:47:56 +00:00
Adrian T. Co 5444ef92e1 Rollback changes to incrementReferenceCount, but maintained the incrementPreloadSize
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359152 13f79535-47bb-0310-9956-ffa450edef68
2005-12-27 01:11:43 +00:00
Hiram R. Chirino a2601e64fe Marcus reported on the mailing list that we need to provide dispatching behaviour like 3.x did to work on webshere 5.x
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358824 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 16:12:49 +00:00
Hiram R. Chirino 2c4274b997 Marcus reported on the mailing list that we need to provide dispatching behaviour like 3.x did to work on webshere 5.x
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358823 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 16:10:53 +00:00
Adrian T. Co 29a6b9d1f6 Postpone incrementing of reference count and preload size, only after we are sure that the message will be dispatched by the current subscription. This is to prevent a memory leak type of scenario.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358785 13f79535-47bb-0310-9956-ffa450edef68
2005-12-23 09:47:47 +00:00
Hiram R. Chirino bd17e0385f the login.config is at the root of the resouces dir. so use the class's classload to get the resource.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358602 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 18:20:51 +00:00
Guillaume Nodet 3621f25504 Fix ClassCastException in pool
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358598 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 18:01:52 +00:00
Hiram R. Chirino 749c76d57f applied bill dudney's sugestion to fix m2 build so that it works from activemq-project
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358584 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 16:23:33 +00:00
Hiram R. Chirino 18dd4cd867 Fixed and added test cases for the consumer start() stop() methods.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358579 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 15:43:42 +00:00
Adrian T. Co 841d99ee0f Added an AutoFailTestSupport as the super class of CombinationTestSupport. If enabled, this enforces each test case to run only on a predefined time frame (by default 5 mins). After the allotted time, a separate thread will force the vm to exit abnormally to prevent hanging the test case. The AutoFailTestSupport is disabled by default. Should be noted, when the test case exits abnormally, no output is written to the test reports, but there is output in the log4j log file.
Enabled auto fail for ProxyConnectorTest and DiscoveryTransportBrokerTest. Added ProxyConnectorTest to testing.

Propagated the setUp and tearDown method in BrokerTestSupport.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358539 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 09:14:26 +00:00
Jonas B. Lim 92a698fe42 updated headers in source file to use apache header
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358513 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 06:11:40 +00:00
Hiram R. Chirino d9201ada52 Enhanced the pom so that it generates the xbean metadata and uses javacc to build the selectors
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358505 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 05:43:38 +00:00
Hiram R. Chirino 8935d82036 remove the java 5 dependency.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358485 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 04:27:28 +00:00
Hiram R. Chirino 2457c42d7e More m2 build tweeks, brought in the activemq-optional module.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358476 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 03:43:57 +00:00
Hiram R. Chirino 9e02d70011 tweeking the m2 build
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358446 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 02:47:39 +00:00
Frederick G. Oconer 7497ba459b removed from default goal the creation javadoc api.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358427 13f79535-47bb-0310-9956-ffa450edef68
2005-12-22 00:57:43 +00:00
Hiram R. Chirino bd66398a29 Applied patch at https://jira.logicblaze.com/jira/browse/AMQ-442
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358392 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 21:43:55 +00:00
Hiram R. Chirino 22474cd541 Fixed: https://jira.logicblaze.com/jira/browse/AMQ-426
JMS api object now implement a toString() that can be used to correlate back to log messages on the message broker.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358371 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 20:43:50 +00:00
Hiram R. Chirino 2040c9d75c reverted.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358361 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 19:46:42 +00:00
Hiram R. Chirino f71b60f16b Got the stomp SUBSCRIBE test case working.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358349 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 19:23:20 +00:00
James Strachan bd60590273 added a test case and fixes for the pooled connection factory. AMQ-449
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358280 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 12:53:30 +00:00
Adrian T. Co 75a6b834b9 Added a basic mean to query the jmx context. Performed a little code restructuring and bug fixing. Type "query --help" for details.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358241 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 09:31:18 +00:00
Hiram R. Chirino 230e459b26 Get the stomp wireformat working again and added some more tests to verify that it is working.
The stomp transport factory just reuses the tcp transport and sets the wireformat to be stomp.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358217 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 05:45:09 +00:00
Hiram R. Chirino b6eb3a6319 only use the wire format negociator if needed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358216 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 05:43:16 +00:00
Frederick G. Oconer d0e9fa2990 renamed goal that deploys the xsd generated files to a more appropriate name.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358207 13f79535-47bb-0310-9956-ffa450edef68
2005-12-21 05:01:08 +00:00
Hiram R. Chirino 8032ef40be - updated openwire marshalers.
- added some more toString() methods to the transports
- Fixed up the advisories so that duplicate consumer infos are not sent
- Changed the demand forwarding bridge so that loop back message filtering occurs in the broker instead of on the bridge


git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358056 13f79535-47bb-0310-9956-ffa450edef68
2005-12-20 18:05:38 +00:00
James Strachan 35b8ea9308 Applied Bills patch for m2 build
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358008 13f79535-47bb-0310-9956-ffa450edef68
2005-12-20 14:50:52 +00:00
James Strachan 2ab55ddb1d added WebSphere 5.1 version of a JNDI context that works nicely with ActiveMQ
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357969 13f79535-47bb-0310-9956-ffa450edef68
2005-12-20 12:28:05 +00:00
Adrian T. Co dad9a3bf76 Re-removed old config documentation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357949 13f79535-47bb-0310-9956-ffa450edef68
2005-12-20 10:20:22 +00:00
Adrian T. Co 84a0179081 Added broker shutdown mechanism. Some exceptions are being thrown during shutdown, but doesn't seem to cause any problem. Printing of exceptions are currently disabled.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357932 13f79535-47bb-0310-9956-ffa450edef68
2005-12-20 07:15:13 +00:00
Frederick G. Oconer 496be9c60e Added goal that will deploy core test and javadoc jars files and xbean generated files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357930 13f79535-47bb-0310-9956-ffa450edef68
2005-12-20 07:08:21 +00:00
Hiram R. Chirino ee0f2e3fd5 update lic header to match apache standard.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357807 13f79535-47bb-0310-9956-ffa450edef68
2005-12-19 21:30:58 +00:00
James Strachan a71263c1e5 removed some old cruft
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357739 13f79535-47bb-0310-9956-ffa450edef68
2005-12-19 18:00:21 +00:00
James Strachan 8b1f5a7202 * added test case to demonstrate query-based subscription recovery policy in action.
* minor refactor to the SubscriptionRecoveryPolicy API to make it easy to generate messages from inside the recovery policy

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357732 13f79535-47bb-0310-9956-ffa450edef68
2005-12-19 17:43:22 +00:00
Hiram R. Chirino 99ee7f85ef make public to fix build
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357727 13f79535-47bb-0310-9956-ffa450edef68
2005-12-19 17:20:57 +00:00
James Strachan 298ccf2a77 avoided NPE in a number of test cases
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357717 13f79535-47bb-0310-9956-ffa450edef68
2005-12-19 16:19:51 +00:00
James Strachan 7c7cca9dfb added a helper class and strategy method for people wishing to implement their own custom MessageQuery strategies to be fired as a new subscriber is created
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357712 13f79535-47bb-0310-9956-ffa450edef68
2005-12-19 15:54:17 +00:00
James Strachan 384e290b7f added enqueue/dequeue statistics at the Connection/Connector level in JMX
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357683 13f79535-47bb-0310-9956-ffa450edef68
2005-12-19 12:22:09 +00:00
Frederick G. Oconer 0bf5ab3724 Added goal that will deploy activemq-core-test-<vrsn>.jar
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357668 13f79535-47bb-0310-9956-ffa450edef68
2005-12-19 09:07:34 +00:00
James Strachan 24389c4929 added some more JMX stats
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357195 13f79535-47bb-0310-9956-ffa450edef68
2005-12-16 17:48:33 +00:00
James Strachan 2c6156085c removed dead code
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357194 13f79535-47bb-0310-9956-ffa450edef68
2005-12-16 17:48:17 +00:00
James Strachan bf65e7d3cf rolled back the use of ObjectName.quote() as it appends quotes and went back to Hiram's original code which looks much nicer in JMX consoles :)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357184 13f79535-47bb-0310-9956-ffa450edef68
2005-12-16 17:08:15 +00:00
Robert Davies 634ac91c3d son't use createMBean() on jmx server as class might not be in the same class loader
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357174 13f79535-47bb-0310-9956-ffa450edef68
2005-12-16 15:54:54 +00:00
James Strachan 0d6f94b93d allow multiple calls to start() as its quite easy to do these days with all the different configuration mechanisms (URI, spring, xbean, command line)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357158 13f79535-47bb-0310-9956-ffa450edef68
2005-12-16 13:56:13 +00:00
Robert Davies 0f36e0231e Added a comment
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357146 13f79535-47bb-0310-9956-ffa450edef68
2005-12-16 09:17:42 +00:00
James Strachan a37a074c81 tidied up the XBean factory bean to avoid it owning and closing the contained context.
also by default the broker is started when using the XML file

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357018 13f79535-47bb-0310-9956-ffa450edef68
2005-12-15 14:15:18 +00:00
James Strachan db0855c342 make the agent more resilient to ordering; whether a service is registered before starting or started first etc. We seem to have both in our code base
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357017 13f79535-47bb-0310-9956-ffa450edef68
2005-12-15 14:13:14 +00:00
James Strachan 20038a8264 updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356833 13f79535-47bb-0310-9956-ffa450edef68
2005-12-14 19:15:44 +00:00
James Strachan 5cba8d744d better logging on startup to reveal the journal configuration
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356827 13f79535-47bb-0310-9956-ffa450edef68
2005-12-14 19:00:44 +00:00
James Strachan 9fb8ee2dca added test case which demonstrates that you can start a JMS connection even when the broker is not there
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356815 13f79535-47bb-0310-9956-ffa450edef68
2005-12-14 17:35:27 +00:00
James Strachan f1bbfd3201 fixed bug that prevented the initialReconnectDelay value from being changed
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356814 13f79535-47bb-0310-9956-ffa450edef68
2005-12-14 17:34:16 +00:00
Hiram R. Chirino 9b1345bb32 - Updated the config xml to use new discovery syntax.
- Using specific version of activeio as that may change a bit soon.
- The vm transport now support specifing a broker config file: vm://localhost?brokerConfig=xbean:/path/to/config/file
- Starting the JMX connector was taking a LONG time to start up... so I switch to starting it up async.
- The object name for a managed transport connection could be invalid so we now encode the name so that it's not.



git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356616 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 21:02:04 +00:00
James Strachan a558fef374 use the standard JMX quote method when creating JMX names
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356559 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 18:15:36 +00:00
James Strachan 687bf43d9f added a ConsumerListener so that you can listen to consumers coming and going easily (hiding the details of the Advisories behind a simple Bean API) as well as be notified on exactly how many consumers there are to be able to drive demand based publishing etc
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356524 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 16:21:32 +00:00
James Strachan e1cfbad4bc added test case for using the BrokerService with JMX
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356523 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 16:20:38 +00:00
James Strachan 1835e45369 added some helper methods to make it easy to see the type of removal event
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356522 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 16:20:11 +00:00
James Strachan ecfbe6168d avoid persistence and TCP by default in test cases
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356521 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 16:19:37 +00:00
James Strachan 507bb1bbab fixed bug where setting the clientID on the MBean ObjectName could break a JMX name
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356520 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 16:19:06 +00:00
James Strachan 262a5596d9 optimisation; if a JMS exception has already been thrown then don't wrap it again
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356519 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 16:18:23 +00:00
James Strachan ab8f458612 removed old configuration documentation
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356518 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 16:17:50 +00:00
James Strachan 8f40a7eeca removed old configuration documentation
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356517 13f79535-47bb-0310-9956-ffa450edef68
2005-12-13 16:17:31 +00:00
James Strachan 40a7d3b6ac Moved the trunk code into the trunk sub directory
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356304 13f79535-47bb-0310-9956-ffa450edef68
2005-12-12 17:53:59 +00:00