You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2008/09/03 18:24:00 UTC

svn commit: r691660 - /incubator/uima/sandbox/trunk/uima-as/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java

Author: eae
Date: Wed Sep  3 09:24:00 2008
New Revision: 691660

URL: http://svn.apache.org/viewvc?rev=691660&view=rev
Log:
UIMA-1147 commit uimaj-as-core-UIMA-1147-patch-02.txt

Modified:
    incubator/uima/sandbox/trunk/uima-as/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java

Modified: incubator/uima/sandbox/trunk/uima-as/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java?rev=691660&r1=691659&r2=691660&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java (original)
+++ incubator/uima/sandbox/trunk/uima-as/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/PrimitiveAnalysisEngineController_impl.java Wed Sep  3 09:24:00 2008
@@ -183,6 +183,17 @@
 						}
 					}
 					
+					//	Component's Cas Pool is registered lazily, when the process() is called for
+					//	the first time. For monitoring purposes, we need the comoponent's Cas Pool 
+					//	MBeans to register during initialization of the service though.
+					//	For a Cas Multiplier force creation of the Cas Pool and registration 
+					//	of a Cas Pool with the JMX Server. Just get the CAS and release it back 
+					//	to the component's Cas Pool.
+					if ( isCasMultiplier() && !isTopLevelComponent() )
+					{
+						CAS cas = (CAS)getUimaContext().getEmptyCas(CAS.class);
+						cas.release();
+					}
 
 					// All internal components of this Primitive have been initialized. Open the latch
 					// so that this service can start processing requests.