On Mar 15, 2008, at 11:48 PM, [EMAIL PROTECTED] wrote:

+    <ServiceProvider
+            id="Default Transaction Manager"
+            service="TransactionManager"
+            types="TransactionManager"
+            factory-name="create"
+ constructor="defaultTransactionTimeoutSeconds, tmId, bufferClassName, bufferSizeKb, checksumEnabled, adler32Checksum, flushSleepTimeMilliseconds, logFileDir, logFileExt, logFileName, maxBlocksPerFile, maxBuffers, maxLogFiles, minBuffers, threadsWaitingForceThreshold" + class- name="org.apache.openejb.resource.GeronimoTransactionManagerFactory">

If you have a custom factory class, it is better to not use constructor injection, so you don't have to do stuff like maintain that huge constructor arg list above. It also make is easy for people to reuse the factory in test cases.

-dain

Reply via email to