James Strachan
c2123e3b1b
allow a connectionTimeout to be specified on a socket for AMQ-607
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383831 13f79535-47bb-0310-9956-ffa450edef68
2006-03-07 09:47:25 +00:00
James Strachan
3cd3fd364e
added extra check to make sure all MBeans are unregistered on a stop() call to ensure that AMQ-585 is fixed
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383828 13f79535-47bb-0310-9956-ffa450edef68
2006-03-07 09:25:05 +00:00
Hiram R. Chirino
07d4e8c63d
- A bunch of JMX related tiding up.
...
- Added a sendTextMessage() method to the DestinationView so that a JMX console can send a test message to a destination.
- Renamed a few bean properties so that they would be more consistent:
- use get*Counter for properties that keep incrementing
- use get*QueueSize for poperties that repesenet the size of list in broker.
- the gc() method on the broker is now the only one expose
- the CachedMessageCount is not exposed anymore.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383815 13f79535-47bb-0310-9956-ffa450edef68
2006-03-07 07:39:51 +00:00
Hiram R. Chirino
cd0fb615de
Adjusted openwire generators
...
- Got .NET working again after bing WireFormat change
- Fixed generated indenting for the java and csharp stuff.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383767 13f79535-47bb-0310-9956-ffa450edef68
2006-03-07 04:14:27 +00:00
Hiram R. Chirino
446629bba0
- Since we WireFormatInfo needs to be flexible and extensible so that feilds can be added witout changing it's on the wire encoding, we are now using a primitive map to store it's data.
...
- Extracted the NetworkBridgeFilter out of the Demand based forwarding bridge and made it a serializable class so that a bridge can be used with a remote broker.
- Cleaned up many of the warnings gram was spewing out by having it suck in more files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383749 13f79535-47bb-0310-9956-ffa450edef68
2006-03-07 02:32:50 +00:00
James Strachan
d5193d217f
increased timeout to ensure test always works
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383632 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 19:37:37 +00:00
James Strachan
d9b9427a5f
added fix for AMQ-519 so that we explicitly force the redelivered message to be deserialized again for ObjectMessage instances to avoid mutable objects being changed, then rolled back
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383627 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 19:10:32 +00:00
James Strachan
900f6e9de1
added better exception message
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383565 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 15:33:43 +00:00
Hiram R. Chirino
db9144a985
Protect against cache overwrites.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383546 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 14:25:36 +00:00
Hiram R. Chirino
c3e10f5438
updated hashCode and equals to pickup new fields.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383545 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 14:10:43 +00:00
Hiram R. Chirino
b665f18730
Better cache eviction in place.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383544 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 14:06:13 +00:00
James Strachan
d666be05f9
added test case and patch for AMQ-617
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383541 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 13:53:11 +00:00
Hiram R. Chirino
120f77dad0
return true if the copy works.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383530 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 13:27:39 +00:00
James Strachan
3d96abcc93
added extra test to ensure that the transport instance is fully started before attempts are made to use the transport
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383523 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 12:12:53 +00:00
James Strachan
204e940809
added helper method
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383516 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 11:18:24 +00:00
Robert Davies
6cb66e4865
PolicyMap not initialized by XBean/Spring when Broker constructed for Transports.
...
Chanhed so PolicyMap is lazily fetched from the BrokerService by the RegionBroker
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383486 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 07:25:51 +00:00
Robert Davies
6892f8ca04
Added slow consumer test
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383485 13f79535-47bb-0310-9956-ffa450edef68
2006-03-06 07:24:16 +00:00
Hiram R. Chirino
e0a2b8eab7
Updated openwire generation scripts so that they produce file with consistent newlines even on windows.
...
Updated dotnet generator due to refactor
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383296 13f79535-47bb-0310-9956-ffa450edef68
2006-03-05 08:49:13 +00:00
Hiram R. Chirino
42ac3f1afc
include tools.jar in the Gram classpath, since that's where javadoc classes are. If java home is not the JDK, this may not work.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383064 13f79535-47bb-0310-9956-ffa450edef68
2006-03-04 06:56:39 +00:00
Hiram R. Chirino
477984fd4f
simplified a little.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383040 13f79535-47bb-0310-9956-ffa450edef68
2006-03-04 05:27:32 +00:00
Hiram R. Chirino
0bba31190e
organized imports.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383015 13f79535-47bb-0310-9956-ffa450edef68
2006-03-04 03:42:22 +00:00
Hiram R. Chirino
c60ac2ff62
Fixing up http://jira.activemq.org/jira/browse/AMQ-615
...
- We now close the consumers created by a pooled session when the session is closed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@383014 13f79535-47bb-0310-9956-ffa450edef68
2006-03-04 03:41:51 +00:00
Hiram R. Chirino
7f9f040835
No need to clean up connection if it's being closed.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382960 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 23:16:53 +00:00
Hiram R. Chirino
375469bac7
disabled the inactivity monitor by default for now.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382954 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 22:54:52 +00:00
Hiram R. Chirino
44b00e9309
- Improved the delete and purge operations on a queue.
...
- Messages now removed from the message list: fixes message count < 0 problem
- Messages are now locked before they are deleted, if messages are in flight to a consumer, we don't want to delete them.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382919 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 20:07:07 +00:00
Robert Davies
9c5680c9f6
don't remove connection info from broker if the transport has failed
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382913 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 19:24:16 +00:00
Robert Davies
62c28d1b77
Added methods to create/destroy durable subscriber
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382890 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 17:20:19 +00:00
James Strachan
dc168c055b
fixed NPE
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382888 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 17:08:40 +00:00
Hiram R. Chirino
7f5213ba99
Standardize on throwing Exception instead of Throwable, we were using both forms throught the API
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382869 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 15:36:38 +00:00
James Strachan
99c1a67a28
refactor of the TcpTransport so that the timeout and buffer size can be configured via properties before the socket is used after the start() method is called.
...
this also fixes AMQ-610
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382846 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 15:02:54 +00:00
James Strachan
178515aa32
added an alternative eviction strategy
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382830 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 14:18:34 +00:00
Hiram R. Chirino
9c1a5fa6a2
bad testcase, transport was never started.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382824 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 13:59:11 +00:00
James Strachan
fa430aaae0
minor refactor to make it easier to add extra startup features
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382821 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 13:58:06 +00:00
James Strachan
062dc5681c
added better MBeans for topic subscriptions so that they can see the discarded and matched statistics. Also added a configurable MessageEvictionStrategy
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382816 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 13:56:29 +00:00
James Strachan
4dad3fc833
removed old comment
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382754 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 10:36:32 +00:00
James Strachan
bed10aac1e
allowed the maximum pending message count to be specified on the ActiveMQPrefetchPolicy or the ConsumerInfo
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382753 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 10:34:33 +00:00
Robert Davies
6d003a89e2
tidied up some of the synchronization
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382746 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 10:06:41 +00:00
Hiram R. Chirino
c916749e78
Don't use the inactivity monitor when the stomp protocol is in use.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382741 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 09:49:07 +00:00
James Strachan
e87f4c9106
reset the logging level
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382738 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 09:40:29 +00:00
James Strachan
4e28bcea8f
added example of setting the pendingMessageLimitStrategy
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382708 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 07:39:59 +00:00
Robert Davies
2867249482
log when discarding messages - and ensure we don't get npe
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382692 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 06:50:38 +00:00
Hiram R. Chirino
057cde18f9
updated groovy code genertors so that the .hpp suffix is included in the include statements.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382591 13f79535-47bb-0310-9956-ffa450edef68
2006-03-03 00:41:35 +00:00
Hiram R. Chirino
6272ddc88f
spelling fix.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382547 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 23:08:05 +00:00
Hiram R. Chirino
981cef5f84
Added test case to verify that the group id could be set using STOMP, in reference to:
...
http://forums.activemq.org/posts/list/442.page
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382544 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 22:59:55 +00:00
Hiram R. Chirino
ed5d43b04f
Added more operations to the JMX beans.
...
- broker view can now create and destroy destinations
- queue view can now copy messages to other destinations.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382532 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 22:11:25 +00:00
Hiram R. Chirino
1229c23bc4
- Implemented transpor inactivity monitoring for the tcp transport
...
- The properties set on the tcp transport can now be set on the transport sever, and the sever will configure the transports it creates with those properties.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382503 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 20:25:19 +00:00
James Strachan
95d0dec008
Patch for AMQ-606 to allow slow consumers to have their old messages discarded. For background to the issue see http://docs.codehaus.org/display/ACTIVEMQ/Slow+Consumers
...
Provides a way to set a limit on the pending messages to be dispatched to a subscription so that if that limit is reached, old messages are discarded. This will avoid the non-durable topics from getting blocked due to slow consumers
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382459 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 17:56:21 +00:00
Hiram R. Chirino
4a65a33af0
Fix for http://jira.activemq.org/jira/browse/AMQ-525
...
BooleanStream now can handle more than 64*8 bits.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382454 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 17:27:25 +00:00
Hiram R. Chirino
acce91b74e
Fix for http://jira.activemq.org/jira/browse/AMQ-578
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382439 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 16:36:42 +00:00
James Strachan
d8c086274a
updated the comments
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@382434 13f79535-47bb-0310-9956-ffa450edef68
2006-03-02 16:15:58 +00:00