You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2007/12/13 03:44:06 UTC
svn commit: r603803 - in
/openejb/trunk/openejb3/container/openejb-core/src/main/resources:
META-INF/org.apache.openejb/service-jar.xml default.openejb.conf
Author: dblevins
Date: Wed Dec 12 18:44:03 2007
New Revision: 603803
URL: http://svn.apache.org/viewvc?rev=603803&view=rev
Log:
update of properties and doc
Modified:
openejb/trunk/openejb3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml
openejb/trunk/openejb3/container/openejb-core/src/main/resources/default.openejb.conf
Modified: openejb/trunk/openejb3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml?rev=603803&r1=603802&r2=603803&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml (original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml Wed Dec 12 18:44:03 2007
@@ -36,14 +36,6 @@
#
# Over time this will be become a library of default
# configurations
- #
- #
- # The Configuraitions in this file reference the following other
- # files:
- #
- # conf/default.cmp_global_tx_database.xml
- # conf/default.cmp_local_tx_database.xml
- # conf/default.idb_database.conf
-->
<!--
@@ -62,6 +54,10 @@
#Engine derby
Engine instantdb
+
+ # ConnectorName is he id of the Connector element which
+ # should provide connectivity for this CMP Container
+
ConnectorName Default JDBC Database
</ServiceProvider>
@@ -157,6 +153,7 @@
# Specifies the time to wait between invocations. This
# value is measured in minutes. A value of 5 would
# result in a time-out of 5 minutes between invocations.
+ # A value of zero would mean no timeout.
TimeOut 20
@@ -254,6 +251,16 @@
factory-name="create"
constructor="JtaManaged"
class-name="org.apache.openejb.resource.jdbc.DataSourceFactory">
+
+ # Determines wether or not this data source should be JTA managed
+ # or user managed. If set to 'true' it will automatically be enrolled
+ # in any ongoing transactions. Calling begin/commit/rollback or setAutoCommit
+ # on the datasource or connection will not be allowed. If you need to perform
+ # these functions yourself, set JtaManaged to 'false'
+ #
+ # In terms of JPA persistence.xml:
+ # "JtaManaged=true" can be used as a <jta-data-source>
+ # "JtaManaged=false" can be used as a <non-jta-data-source>
JtaManaged = true
Modified: openejb/trunk/openejb3/container/openejb-core/src/main/resources/default.openejb.conf
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/resources/default.openejb.conf?rev=603803&r1=603802&r2=603803&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/resources/default.openejb.conf (original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/resources/default.openejb.conf Wed Dec 12 18:44:03 2007
@@ -23,147 +23,187 @@
<openejb>
<Container id="Default CMP Container" ctype="CMP_ENTITY">
-# This container can service CMP 1.1 and 2.x Entity Beans
-#
-# Persistence is achived by taking the entity beans deployed
-# and internally readapting them to the new EJB 3.0 JPA (Java
-# Persistence API) specification. It is possible, though
-# not well documented, to mix in newer JPA concepts with
-# old style Entity beans allowing you to slowly transition
-# your entities to JPA. Aggressively inquiring on the
-# users@openejb.apache.org about this feature will help
-# us generate better documentation.
-# ---------
+ # This container can service CMP 1.1 and 2.x Entity Beans
+ #
+ # Persistence is achived by taking the entity beans deployed
+ # and internally readapting them to the new EJB 3.0 JPA (Java
+ # Persistence API) specification. It is possible, though
+ # not well documented, to mix in newer JPA concepts with
+ # old style Entity beans allowing you to slowly transition
+ # your entities to JPA. Aggressively inquiring on the
+ # users@openejb.apache.org about this feature will help
+ # us generate better documentation.
+ # ---------
-# ConnectorName is he id of the Connector element which
-# should provide connectivity for this CMP Container
+ # ConnectorName is he id of the Connector element which
+ # should provide connectivity for this CMP Container
- ConnectorName Default JDBC Database
+ ConnectorName Default JDBC Database
</Container>
<Container id="Default BMP Container" ctype="BMP_ENTITY">
-# Specifies the size of the bean pools for this
-# bmp entity container.
+ # Specifies the size of the bean pools for this
+ # bmp entity container.
- PoolSize 10
+ PoolSize 10
</Container>
+
<Container id="Default Stateful Container" ctype="STATEFUL">
-# The passivator is responsible for writing beans to disk
-# at passivation time. Different passivators can be used
-# by setting this property to the fully qualified class name
-# of the PassivationStrategy implementation. The passivator
-# is not responsible for invoking any callbacks or other
-# processing, its only responsibly is to write the bean state
-# to disk.
-#
-# Known implementations:
-# org.apache.openejb.core.stateful.RAFPassivater
-# org.apache.openejb.core.stateful.SimplePassivater
-
- Passivator org.apache.openejb.core.stateful.SimplePassivater
-
-# Specifies the time to wait between invocations. This
-# value is measured in minutes. A value of 5 would
-# result in a time-out of 5 minutes between invocations.
-
- TimeOut 20
-
-# Specifies the size of the bean pools for this
-# stateful SessionBean container.
-
- PoolSize 500
-
-# Property name that specifies the number of instances
-# to passivate at one time when doing bulk passivation.
-# Must be less than the PoolSize.
+ # The passivator is responsible for writing beans to disk
+ # at passivation time. Different passivators can be used
+ # by setting this property to the fully qualified class name
+ # of the PassivationStrategy implementation. The passivator
+ # is not responsible for invoking any callbacks or other
+ # processing, its only responsibly is to write the bean state
+ # to disk.
+ #
+ # Known implementations:
+ # org.apache.openejb.core.stateful.RAFPassivater
+ # org.apache.openejb.core.stateful.SimplePassivater
+
+ Passivator org.apache.openejb.core.stateful.SimplePassivater
+
+ # Specifies the time to wait between invocations. This
+ # value is measured in minutes. A value of 5 would
+ # result in a time-out of 5 minutes between invocations.
+ # A value of zero would mean no timeout.
+
+ TimeOut 20
+
+ # Specifies the size of the bean pools for this
+ # stateful SessionBean container.
+
+ PoolSize 1000
+
+ # Property name that specifies the number of instances
+ # to passivate at one time when doing bulk passivation.
+ # Must be less than the PoolSize.
- BulkPassivate 50
+ BulkPassivate 100
</Container>
-
<Container id="Default Stateless Container" ctype="STATELESS">
-# Specifies the time to wait between invocations. This
-# value is measured in milliseconds. A value of 5 would
-# result in a time-out of 5 milliseconds between invocations.
-# A value of zero would mean no timeout.
-
- TimeOut 0
-
-# Specifies the size of the bean pools for this
-# stateless SessionBean container.
-
- PoolSize 10
-
-# StrictPooling tells the container what to do when the pool
-# reaches it's maximum size and there are incoming requests
-# that need instances.
-#
-# With strict pooling, requests will have to wait for instances
-# to become available. The pool size will never grow beyond the
-# the set PoolSize value.
-#
-# Without strict pooling, the container will create temporary
-# instances to meet demand. The instances will last for just one
-# method invocation and then are removed.
+ # Specifies the time to wait between invocations. This
+ # value is measured in milliseconds. A value of 5 would
+ # result in a time-out of 5 milliseconds between invocations.
+ # A value of zero would mean no timeout.
+
+ TimeOut 0
+
+ # Specifies the size of the bean pools for this
+ # stateless SessionBean container.
+
+ PoolSize 10
+
+ # StrictPooling tells the container what to do when the pool
+ # reaches it's maximum size and there are incoming requests
+ # that need instances.
+ #
+ # With strict pooling, requests will have to wait for instances
+ # to become available. The pool size will never grow beyond the
+ # the set PoolSize value.
+ #
+ # Without strict pooling, the container will create temporary
+ # instances to meet demand. The instances will last for just one
+ # method invocation and then are removed.
- StrictPooling true
+ StrictPooling true
</Container>
-<Container id="Default MDB Container" ctype="MESSAGE">
-# The resource adapter delivers messages to the container
- ResourceAdapter Default JMS Resource Adapter
+<Container id="Default " ctype="MESSAGE">
-# Specifies the activation spec class
+ # The resource adapter delivers messages to the container
- ActivationSpecClass org.apache.activemq.ra.ActiveMQActivationSpec
+ ResourceAdapter Default JMS Resource Adapter
-# Specifies the maximum number of bean instances that are
-# allowed to exist for each MDB deployment.
+ # Specifies the message listener interface handled by this container
- InstanceLimit 10
-</Container>
+ MessageListenerInterface javax.jms.MessageListener
+
+ # Specifies the activation spec class
+ ActivationSpecClass org.apache.activemq.ra.ActiveMQActivationSpec
+
+ # Specifies the maximum number of bean instances that are
+ # allowed to exist for each MDB deployment.
+
+ InstanceLimit 10
+
+</Container>
<!--
# For more examples of database configuration see:
-# http://openejb.apache.org/databases.html
+# http://openejb.apache.org/3.0/databases.html
-->
<Connector id="Default JDBC Database" >
- JdbcDriver org.hsqldb.jdbcDriver
- JdbcUrl jdbc:hsqldb:file:hsqldb
- UserName sa
- Password
+ JdbcDriver org.hsqldb.jdbcDriver
+ JdbcUrl jdbc:hsqldb:file:hsqldb
+ UserName sa
+ Password
+ JtaManaged true
</Connector>
+
<Connector id="Default Unmanaged JDBC Database">
- JdbcDriver org.hsqldb.jdbcDriver
- JdbcUrl jdbc:hsqldb:file:hsqldb
- UserName sa
- Password
+ JdbcDriver org.hsqldb.jdbcDriver
+ JdbcUrl jdbc:hsqldb:file:hsqldb
+ UserName sa
+ Password
+ JtaManaged false
</Connector>
+
<Resource id="Default JMS Resource Adapter">
- # Broker configuration
- BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
+ # Broker configuration URI as defined by ActiveMQ
+ # see http://activemq.apache.org/broker-configuration-uri.html
+
+ BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false
+
+ # Broker address
+
+ ServerUrl vm://localhost?async=true
- # Broker address
- ServerUrl vm://localhost?async=true
+ # Specifies the size of the thread pool available to AciveMQ.
+
+ ThreadPoolSize 30
</Resource>
+
<Connector id="Default JMS Connection Factory">
- ResourceAdapter Default JMS Resource Adapter
+ ResourceAdapter Default JMS Resource Adapter
+
+ # Specifies if the connection is enrolled in global transaction
+ # allowed values: xa, local or none
+
+ TransactionSupport xa
+
+ # Maximum number of physical connection to the ActiveMQ broker
+
+ PoolMaxSize 10
+
+ # Minimum number of physical connection to the ActiveMQ broker
+
+ PoolMinSize 0
+
+ # Maximum amount of time to wait for a connection
+
+ ConnectionMaxWaitMilliseconds 5000
+
+ # Maximum amount of time a connection can be idle before being reclaimed
+
+ ConnectionMaxIdleMinutes 15
</Connector>