Commit Graph

91 Commits

Author SHA1 Message Date
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