proyal 2002/07/31 09:52:01
Modified: src/java/org/apache/avalon/phoenix/components/manager
MBeanInfoBuilder.java
Log:
Set currencyTimeLimit on invoke operations to 0 to disable JMX caching
of results. MX4J appears to cache results based ONLY on the op name,
not dependent on parameter values. This SUCKS if you call the same
op with different parameters in succession. ( just wasted 2+ hrs
finding this out. *SIGH* such is the bleeding edge )
Revision Changes Path
1.2 +5 -2
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MBeanInfoBuilder.java
Index: MBeanInfoBuilder.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MBeanInfoBuilder.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MBeanInfoBuilder.java 30 Jul 2002 12:31:16 -0000 1.1
+++ MBeanInfoBuilder.java 31 Jul 2002 16:52:01 -0000 1.2
@@ -460,7 +460,10 @@
// additional info needed for modelMbean to work
final Descriptor descriptor = info.getDescriptor();
- descriptor.setField( "currencyTimeLimit", new Integer( 1 ) );
+ // TODO: might want to make this configurable. It controls the caching
behavior
+ // of the invoke results. MX4J appears to cache this per operation
regardless
+ // of what the invoke parameters are *SIGH* - PR
+ descriptor.setField( "currencyTimeLimit", new Integer( 0 ) );
info.setDescriptor( descriptor );
return info;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>