home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / OJB.properties < prev    next >
Encoding:
Text File  |  2004-07-12  |  20.8 KB  |  437 lines

  1. # OJB.properties -- configuration of the OJB runtime environment
  2.  
  3. # Copyright 1999-2004 The Apache Software Foundation
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. #     http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16.  
  17. # Version: 1.0
  18. # (c) 2001, 2002, 2003 Apache Software Foundation
  19. # Author: Thomas Mahler and many others
  20. # @version $Id: OJB.properties,v 1.2 2004/03/06 06:16:50 antonio Exp $
  21. #
  22. #----------------------------------------------------------------------------------------
  23. # repository file settings
  24. #----------------------------------------------------------------------------------------
  25. # The repositoryFile entry tells OJB to use this file as as its standard mapping
  26. # repository. The file is looked up from the classpath.
  27. #
  28. repositoryFile=repository.xml
  29. #
  30. # If the useSerializedRepository entry is set to true, OJB tries to load a
  31. # serialized version of the repository for performance reasons.
  32. # if set to false, OJB always loads the xml file.
  33. # Setting this flag to true will accelerate the startup sequence of OJB.
  34. # If set to true changes to the repository.xml file will only be detected
  35. # after maually deleting the repository.xml.serialized file.
  36. useSerializedRepository=false
  37. #
  38. # If Repository serialization is used the entry serializedRepositoryPath defines the
  39. # directory where the Repository is written to and read from.
  40. # this entry is used only when the useSerializedRepository flag is set to true
  41. #
  42. serializedRepositoryPath=.
  43. #
  44. #----------------------------------------------------------------------------------------
  45. # PersistenceBrokerFactory / PersistenceBroker
  46. #----------------------------------------------------------------------------------------
  47. # The PersistenceBrokerFactoryClass entry decides which concrete
  48. # PersistenceBrokerFactory implemention is to be used.
  49. PersistenceBrokerFactoryClass=org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl
  50. #
  51. # The PersistenceBrokerClass entry decides which concrete PersistenceBroker
  52. # implementation is to be served by the PersistenceBrokerFactory.
  53. # This is the singlevm implementation:
  54. PersistenceBrokerClass=org.apache.ojb.broker.core.PersistenceBrokerImpl
  55. #
  56. # This is an implementation that uses Prevayler (prevayler.sf.net) as the persistent storage.
  57. # Using this implementation OJB works as a simple OODBMS
  58. #PersistenceBrokerClass=org.apache.ojb.broker.prevayler.PBPrevaylerImpl
  59. #
  60. #
  61. #----------------------------------------------------------------------------------------
  62. # PersistenceBrokerFactory pool
  63. #----------------------------------------------------------------------------------------
  64. # PersistenceBroker pool configuration
  65. # This pool uses the jakarta-commons-pool api.
  66. # There you can find things described in detail.
  67. #
  68. # maximum number of brokers that can be borrowed from the
  69. # pool at one time. When non-positive, there is no limit.
  70. maxActive=100
  71. #
  72. # controls the maximum number of brokers that can sit idle in the
  73. # pool (per key) at any time. When non-positive, there is no limit
  74. maxIdle=-1
  75. #
  76. # max time block to get broker instance from pool, after that exception is thrown.
  77. # When non-positive, block till last judgement
  78. maxWait=2000
  79. #
  80. # indicates how long the eviction thread should sleep before "runs" of examining
  81. # idle objects. When non-positive, no eviction thread will be launched.
  82. timeBetweenEvictionRunsMillis=-1
  83. #
  84. # specifies the minimum amount of time that an broker may sit idle
  85. # in the pool before it is eligable for eviction due to idle time.
  86. # When non-positive, no object will be dropped from the pool due
  87. # to idle time alone (depends on timeBetweenEvictionRunsMillis > 0)
  88. minEvictableIdleTimeMillis=1000000
  89. #
  90. # specifies the behaviour of the pool when broker capacity is
  91. # exhausted (see maxActive above)
  92. # 0 - fail
  93. # 1 - block
  94. # 2 - grow
  95. whenExhaustedAction=0
  96. #
  97. #
  98. #----------------------------------------------------------------------------------------
  99. # ConnectionFactory / Default ConnectionPool
  100. #----------------------------------------------------------------------------------------
  101. # The ConnectionFactoryClass entry determines which kind of ConnectionFactory
  102. # is to be used within org.apache.ojb as connection factory.
  103. # A ConnectionFactory is responsible for creating
  104. # JDBC Connections. Current version ships four implementations:
  105. #
  106. # 1. ConnectionFactoryAvalonDatasource
  107. #    Uses a Cocoon configured DataSource specified with the jcd-alias attribute value in 
  108. #    a jdbc-connection-descriptor element in the repository.xml file.
  109. # 2. ConnectionFactoryNotPooledImpl
  110. #    No pooling, no playing around.
  111. #    Every connection request returns a new connection,
  112. #    every connection release close the connection.
  113. # 3. ConnectionFactoryPooledImpl
  114. #    This implementation supports connection pooling.
  115. # 4. ConnectionFactoryDBCPImpl
  116. #    Using the jakarta-DBCP api for connection management, support
  117. #    connection- and prepared statement-pooling, abandoned connection handling.
  118. # 5. ConnectionFactoryManagedImpl
  119. #    Connection factory for use within managed environments - e.g. JBoss.
  120. #    Every obtained DataSource was wrapped within OJB (and ignore
  121. #    e.g. con.commit() calls within OJB).
  122. #    Use this implementation e.g if you use Datasources from an application server.
  123. #
  124. # Use the OJB performance tests to decide, which implementation is best for you.
  125. # The proper way of obtaining a connection is configured in
  126. # JDBCConnectionDescriptor entries in the repository.xml file.
  127. # If want a more fine grained control of each connection pool used by OJB,
  128. # take a look at the repository.dtd, there was a possibility to override
  129. # this default connection factory entry in each JDBCConnectionDescriptor.
  130. #
  131. ConnectionFactoryClass=org.apache.cocoon.ojb.components.ConnectionFactoryAvalonDataSource
  132. #ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl
  133. #ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryNotPooledImpl
  134. #ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl
  135. #ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryDBCPImpl
  136. #
  137. #
  138. #----------------------------------------------------------------------------------------
  139. # ConnectionManager
  140. #----------------------------------------------------------------------------------------
  141. # The ConnectionManagerClass entry defines the ConnectionManager implemementation to be used
  142. ConnectionManagerClass=org.apache.ojb.broker.accesslayer.ConnectionManagerImpl
  143. #
  144. #
  145. #----------------------------------------------------------------------------------------
  146. # SqlGenerator
  147. #----------------------------------------------------------------------------------------
  148. # The SqlGeneratorClass entry defines the SqlGenerator implemementation to be used
  149. SqlGeneratorClass=org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl
  150. #
  151. #
  152. #----------------------------------------------------------------------------------------
  153. # CollectionProxy class
  154. #----------------------------------------------------------------------------------------
  155. # The optional CollectionProxy entry defines the class to be used for CollectionProxies
  156. # if this entry is null org.apache.ojb.broker.accesslayer.ListProxy is used for Lists
  157. # and org.apache.ojb.broker.accesslayer.CollectionProxy for Collections
  158. #
  159. #CollectionProxyClass=
  160. #
  161. #----------------------------------------------------------------------------------------
  162. # StatementManager
  163. #----------------------------------------------------------------------------------------
  164. # The StatementManagerClass entry defines the StatementManager implemementation to be used
  165. StatementManagerClass=org.apache.ojb.broker.accesslayer.StatementManager
  166. #
  167. #
  168. #----------------------------------------------------------------------------------------
  169. # StatementsForClass
  170. #----------------------------------------------------------------------------------------
  171. # The StatementsForClassClass entry defines the StatementsForClass implemementation to be used
  172. # to implement cached statements.
  173. StatementsForClassClass=org.apache.ojb.broker.accesslayer.StatementsForClassImpl
  174. #
  175. #
  176. #----------------------------------------------------------------------------------------
  177. # JdbcAccess
  178. #----------------------------------------------------------------------------------------
  179. # The JdbcAccessClass entry defines the JdbcAccess implemementation to be used
  180. JdbcAccessClass=org.apache.ojb.broker.accesslayer.JdbcAccessImpl
  181. #
  182. #
  183. #----------------------------------------------------------------------------------------
  184. # Object cache
  185. #----------------------------------------------------------------------------------------
  186. # The ObjectCacheClass entry tells OJB which concrete ObjectCache
  187. # implementation is to be used as standard cache.
  188. # Its also possible to override this entry adding object-cache elements
  189. # on jdbc-connection-descriptor level and
  190. # per class-descriptor in repository file. More info see documentation.
  191. #
  192. ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheDefaultImpl
  193. #ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheEmptyImpl
  194. #ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl
  195. #ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheJCSPerClassImpl
  196. #ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCachePerClassImpl
  197. #
  198. #
  199. # This property is only relevant if the per class-descriptor object-cache
  200. # declaration was used in conjunction with metadata runtime changes.
  201. # If set 'flase' the class name of the object is used
  202. # to find a per class ObjectCache implementation.
  203. # If set 'true' the ObjectCacheDescriptor instance is used as key to
  204. # find a per class ObjectCache, this enables to use different ObjectCache
  205. # instances for the same class.
  206. descriptorBasedCaches=false
  207. #
  208. #
  209. # Use CacheFilters to do filter operations before caching methods were
  210. # called. Build your own filter class by implementing org.apache.ojb.cache.CacheFilter.
  211. # It is possible to use a arbitrary number of CacheFilters, but this slows
  212. # down the performance of the cache, thus handle with care.
  213. #
  214. # - org.apache.ojb.broker.cache.CacheFilterClassImpl
  215. # allows filtering of classes
  216. # - org.apache.ojb.broker.cache.CacheFilterPackageImpl
  217. # allows filtering of packages
  218. # More info see Javadoc of the according classes.
  219. # Set a comma separated list of CacheFilter.
  220. #ObjectCacheFilter=org.apache.ojb.broker.cache.CacheFilterClassImpl,org.apache.ojb.broker.cache.CacheFilterPackageImpl
  221. #
  222. #----------------------------------------------------------------------------------------
  223. # Locking
  224. #----------------------------------------------------------------------------------------
  225. # The LockManagerClass entry tells OJB which concrete LockManager
  226. # implementation is to be used.
  227. LockManagerClass=org.apache.ojb.odmg.locking.LockManagerDefaultImpl
  228. #
  229. # The LockMapClass entry tells OJB which concrete LockMap
  230. # implementation is to be used.
  231. # If OJB is running on multiple concurrent clients it is recommended
  232. # to use the PersistentLockMapImpl. It guarantees to provide
  233. # Lockamanagement across multiple JVMs.
  234. # If OJB is running in a single JVM (e.g. in a desktop app, or in a servlet
  235. # engine) it is save to use the InMemoryLockMapImpl. Using it will result
  236. # in a large performance gain.
  237. # LockMapClass=org.apache.ojb.odmg.locking.PersistentLockMapImpl
  238. LockMapClass=org.apache.ojb.odmg.locking.InMemoryLockMapImpl
  239. #
  240. # The LockTimeout entry defines the maximum time in milliseconds
  241. # that a lock may be hold. Defaults to 60000 = 1 minute
  242. LockTimeout=60000
  243. #
  244. # The ImplicitLocking entry defines if implicit lock acquisition is
  245. # to be used. If set to true OJB implicitely locks objects to ODMG
  246. # transactions after performing OQL queries.
  247. # If implicit locking is used locking objects is recursive, that is
  248. # associated objects are also locked.
  249. # If ImplicitLocking is set to false, no locks are obtained in OQL
  250. # queries and there is also no recursive locking.
  251. ImplicitLocking=true
  252. #ImplicitLocking=false
  253. #
  254. # The LockAssociations entry defines the behaviour for the OJB
  255. # implicit locking feature. If set to WRITE (default) acquiring a write-
  256. # lock on a given object x implies write locks on all objects associated
  257. # to x. If set to READ implicit read-locks are acquired.
  258. # Acquiring a read-lock on x thus allways results in implicit read-locks
  259. # on all associated objects.
  260. #LockAssociations=READ
  261. LockAssociations=WRITE
  262. #
  263. #
  264. #----------------------------------------------------------------------------------------
  265. # Logging
  266. #----------------------------------------------------------------------------------------
  267. # The LoggerClass entry tells OJB which concrete Logger
  268. # implementation is to be used.
  269. #
  270. # Commons-logging
  271. #LoggerClass=org.apache.ojb.broker.util.logging.CommonsLoggerImpl
  272. # log4j based logging
  273. #LoggerClass=org.apache.ojb.broker.util.logging.Log4jLoggerImpl
  274. # OJB's own simple looging support
  275. LoggerClass=org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
  276. LoggerConfigFile=log4j.properties
  277. #
  278. # The LogLevel entries tells OJB which LogLevels are active
  279. # for the different loggers used within OJB
  280. # Loglevels: DEBUG < INFO < WARN < ERROR < FATAL
  281. # That is loglevel WARN won't log DEBUG and INFO messages,
  282. # but will log WARN, ERROR, and FATAL messages
  283. #
  284. # Global default log level used for all logging
  285. # entities if not specified
  286. ROOT.LogLevel=ERROR
  287. #
  288. # The Default Logger instance used within OJB
  289. DEFAULT.LogLevel=WARN
  290. # Logger for PersistenceBrokerImpl class
  291. org.apache.ojb.broker.core.PersistenceBrokerImpl.LogLevel=WARN
  292. # Logger for PersistenceBrokerFactory class PersistenceBrokerFactoryDefaultImpl
  293. org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.LogLevel=WARN
  294. # Logger for RepositoryXmlHandler, useful for debugging parsing of repository.xml!
  295. org.apache.ojb.broker.metadata.RepositoryXmlHandler.LogLevel=WARN
  296. # Logger for JdbcAccess, useful for debugging JDBC related problems
  297. org.apache.ojb.broker.accesslayer.JdbcAccessImpl.LogLevel=WARN
  298. # Logger for RsIterator, useful for debugging problems with Object materialization
  299. org.apache.ojb.broker.accesslayer.RsIterator.LogLevel=WARN
  300. # Logger for StatementsForClass, useful for debugging JDBC Connection related problems
  301. org.apache.ojb.broker.accesslayer.StatementsForClassImpl.LogLevel=WARN
  302. # Logger for SqlGenerator, useful for debugging generation of SQL
  303. org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.LogLevel=WARN
  304. # Logger for RepositoryPersistor
  305. org.apache.ojb.broker.metadata.RepositoryPersistor.LogLevel=WARN
  306. # Logger for ConnectionFactory base class
  307. org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.LogLevel=WARN
  308. # Logger for ConnectionManager
  309. org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.LogLevel=WARN
  310. #
  311. # Special Logger categories used in test suite and tutorials
  312. #
  313. # Logger for the ODMG Implementation
  314. ODMG.LogLevel=WARN
  315. # Logger for the JDO RI Implementation
  316. JDO.LogLevel=DEBUG
  317. # Logger for the performance tests
  318. performance.LogLevel=INFO
  319. # Logger for the soda api
  320. soda.LogLevel=WARN
  321. # Logger for the factory service
  322. ConfigurableFactory.LogLevel=WARN
  323. #
  324. #
  325. #----------------------------------------------------------------------------------------
  326. # OQL / SQL settings
  327. #----------------------------------------------------------------------------------------
  328. # The OqlCollectionClass entry defines the collection type returned
  329. # from OQL queries. By default this value is set to DListImpl.
  330. # This will be good for most situations as DList allows maximum flexibility
  331. # in a ODMG environment. See also section 'ODMG settings'.
  332. # Using DLists for large resultsets may be bad for application performance.
  333. # For these scenarios you can use ArrayLists or Vectors.
  334. # Important note: the collections class to be used MUST implement the
  335. # interface org.apache.ojb.broker.ManageableCollection.
  336. #
  337. OqlCollectionClass=org.apache.ojb.odmg.collections.DListImpl_2
  338. # OqlCollectionClass=org.apache.ojb.broker.util.collections.ManageableArrayList
  339. # OqlCollectionClass=org.apache.ojb.broker.util.ManageableVector
  340. #
  341. # The SqlInLimit entry limits the number of values in IN-sql statement,
  342. # -1 for no limits. This hint is used in Criteria.
  343. SqlInLimit=200
  344. #
  345. #
  346. #----------------------------------------------------------------------------------------
  347. # ODMG settings
  348. #----------------------------------------------------------------------------------------
  349. # Used ODMG collection implementation classes
  350. # (e.g. when do a Implementation#newDlist() call)
  351. #
  352. # org.odmg.DList implementation class
  353. DListClass=org.apache.ojb.odmg.collections.DListImpl_2
  354. #DListClass=org.apache.ojb.odmg.collections.DListImpl
  355. #
  356. # org.odmg.DArray implementation class
  357. DArrayClass=org.apache.ojb.odmg.collections.DListImpl_2
  358. #DArrayClass=org.apache.ojb.odmg.collections.DListImpl
  359. #
  360. # org.odmg.DMap implementation class
  361. DMapClass=org.apache.ojb.odmg.collections.DMapImpl
  362. #
  363. # org.odmg.DBag implementation class
  364. DBagClass=org.apache.ojb.odmg.collections.DBagImpl
  365. #
  366. # org.odmg.DSet implementation class
  367. DSetClass=org.apache.ojb.odmg.collections.DSetImpl
  368. #
  369. #
  370. #----------------------------------------------------------------------------------------
  371. # Meta data / mapping settings
  372. #----------------------------------------------------------------------------------------
  373. # The PersistentFieldClass property defines the implementation class
  374. # for PersistentField attributes used in the OJB MetaData layer.
  375. # By default the best performing attribute/refection based implementation
  376. # is selected (PersistentFieldDirectAccessImpl).
  377. #
  378. # - PersistentFieldDirectAccessImpl
  379. #   is a high-speed version of the access strategies.
  380. #   It does not cooperate with an AccessController,
  381. #   but accesses the fields directly. Persistent
  382. #   attributes don't need getters and setters
  383. #   and don't have to be declared public or protected
  384. # - PersistentFieldPrivilegedImpl
  385. #   Same as above, but does cooperate with AccessController and do not
  386. #   suppress the java language access check.
  387. # - PersistentFieldIntrospectorImpl
  388. #   uses JavaBeans compliant calls only to access persistent attributes.
  389. #   No Reflection is needed. But for each attribute xxx there must be
  390. #   public getXxx() and setXxx() methods.
  391. # - PersistentFieldDynaBeanAccessImpl
  392. #   implementation used to access a property from a
  393. #   org.apache.commons.beanutils.DynaBean.
  394. #
  395. PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImpl
  396. #PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldPrivilegedImpl
  397. #PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldIntrospectorImpl
  398. #PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDynaBeanAccessImpl
  399. #
  400. #
  401. #----------------------------------------------------------------------------------------
  402. # Component Intercepting for Profiling and Tracing
  403. #----------------------------------------------------------------------------------------
  404. # By enabling an InterceptorClass all OJB components will use
  405. # this Interceptor. Interceptors allow advanced tracing and Profiling
  406. # of all component method calls.
  407. # This is currently an experimental feature useful only for OJB kernel developers.
  408. #
  409. #InterceptorClass=org.apache.ojb.broker.util.interceptor.TracingInterceptor
  410. #
  411. #----------------------------------------------------------------------------------------
  412. # Transaction Management and assocation
  413. #----------------------------------------------------------------------------------------
  414. # Use the LocalTxManager if you want the transaction to be associated by a thread
  415. OJBTxManagerClass=org.apache.ojb.odmg.LocalTxManager
  416. # Use the JTATxManager if you want the transaction to be associated via the Transaction
  417. # manager that is in your application server.
  418. #OJBTxManagerClass=org.apache.ojb.odmg.JTATxManager
  419. #
  420. # The TransactionManager is acquired in different ways dependent on the application server.
  421. # The JTATransactionManagerClass property allows you to specify the class that implements
  422. # the proper behaviour for finding the transaction manager. Only use when OJBTxManagerClass
  423. # is set to a factory that uses the application server transaction manager
  424. # (org.apache.ojb.odmg.JTATxManager)
  425. #
  426. # JBoss Transaction Manager Factory
  427. JTATransactionManagerClass=org.apache.ojb.odmg.transaction.JBossTransactionManagerFactory
  428. # Weblogic Transaction Manager Factory
  429. #JTATransactionManagerClass=org.apache.ojb.odmg.transaction.WeblogicTransactionManagerFactory
  430. # WebSphere transaction manager factory
  431. #JTATransactionManagerClass=org.apache.ojb.odmg.transaction.WebSphereTransactionManagerFactory
  432. # Orion transaction manager factory
  433. #JTATransactionManagerClass=org.apache.ojb.odmg.transaction.OrionTransactionManagerFactory
  434. #
  435. #----------------------------------------------------------------------------------------
  436. # End of OJB.properties file
  437. #----------------------------------------------------------------------------------------