User: d_jencks
Date: 01/08/15 20:05:46
Modified: src/etc/conf/default jboss.jcml
Log:
Rewrote XADataSourceLoader and JDBCDataSourceLoader to delegate to and configure
ConnectionFactoryLoader mbeans. Migration instructions in jboss.jcml and
manual/src/docs/resource.xml
Revision Changes Path
1.58 +222 -364 jboss/src/etc/conf/default/jboss.jcml
Index: jboss.jcml
===================================================================
RCS file: /cvsroot/jboss/jboss/src/etc/conf/default/jboss.jcml,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- jboss.jcml 2001/08/15 15:38:42 1.57
+++ jboss.jcml 2001/08/16 03:05:46 1.58
@@ -1,55 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE server>
+<!-- This is where you can add and configure your MBeans
+ ATTENTION: The order of the listing here is the same order as
+ the MBeans are loaded. Therefore if a MBean depends on another
+ MBean to be loaded and started it has to be listed after all
+ the MBeans it depends on.
+-->
-<!-- ===================================================================== -->
-<!-- -->
-<!-- JBoss Server Configuration -->
-<!-- -->
-<!-- ===================================================================== -->
-
-<!-- $Id: jboss.jcml,v 1.57 2001/08/15 15:38:42 vharcq Exp $ -->
-
-<!--
- | This is where you can add and configure your MBeans.
- |
- | ATTENTION:
- |
- | The order of the listing here is the same order as
- | the MBeans are loaded. Therefore if a MBean depends on another
- | MBean to be loaded and started it has to be listed after all
- | the MBeans it depends on.
- -->
-
<server>
-
<!-- ==================================================================== -->
<!-- Classloading -->
<!-- ==================================================================== -->
-
- <mbean code="org.jboss.web.WebService"
- name="DefaultDomain:service=Webserver">
+ <mbean code="org.jboss.web.WebService" name="DefaultDomain:service=Webserver">
<attribute name="Port">8083</attribute>
</mbean>
-
<!-- ==================================================================== -->
<!-- JNDI -->
<!-- ==================================================================== -->
-
- <mbean code="org.jboss.naming.NamingService"
- name="DefaultDomain:service=Naming">
+ <mbean code="org.jboss.naming.NamingService" name="DefaultDomain:service=Naming">
<attribute name="Port">1099</attribute>
</mbean>
- <mbean code="org.jboss.naming.JNDIView"
- name="DefaultDomain:service=JNDIView"/>
+ <mbean code="org.jboss.naming.JNDIView" name="DefaultDomain:service=JNDIView" />
<!-- ==================================================================== -->
<!-- Transactions -->
<!-- ==================================================================== -->
-
- <mbean code="org.jboss.tm.TransactionManagerService"
- name="DefaultDomain:service=TransactionManager">
+ <mbean code="org.jboss.tm.TransactionManagerService"
name="DefaultDomain:service=TransactionManager">
<attribute name="TransactionTimeout">300</attribute>
<!-- Use this attribute if you need to use a specific Xid
@@ -61,14 +38,12 @@
<!-- Uncomment to use Tyrex (tyrex.exolab.org) transaction manager plugin
instead of the org.jboss.tm.TransactionManagerService and comment out
the TransactionManagerService above
- <mbean code="org.jboss.tm.plugins.tyrex.TransactionManagerService"
- name="DefaultDomain:service=TransactionManager">
+ <mbean code="org.jboss.tm.plugins.tyrex.TransactionManagerService"
name="DefaultDomain:service=TransactionManager">
<attribute name="ConfigFileName">../conf/default/domain.xml</attribute>
</mbean>
-->
- <mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService"
- name="DefaultDomain:service=ClientUserTransaction">
+ <mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService"
name="DefaultDomain:service=ClientUserTransaction">
</mbean>
@@ -77,92 +52,150 @@
<!-- ==================================================================== -->
<!-- Uncomment to enable the sample SRPVerifierStore service
- <mbean code="org.jboss.security.srp.SRPVerifierStoreService"
- name="Security:name=SRPVerifierStoreService">
+ <mbean code="org.jboss.security.srp.SRPVerifierStoreService"
name="Security:name=SRPVerifierStoreService">
<attribute name="JndiName">SRPDefaultVerifierSource</attribute>
<attribute name="StoreFile">SRPVerifierStore.ser</attribute>
</mbean>
- -->
-
+-->
<!-- Uncomment to enable the SRP login service
- <mbean code="org.jboss.security.srp.SRPService"
- name="service:name=SRPService">
+ <mbean code="org.jboss.security.srp.SRPService" name="service:name=SRPService">
<attribute name="JndiName">SRPServerInterface</attribute>
<attribute name="VerifierSourceJndiName">SRPDefaultVerifierSource</attribute>
<attribute name="AuthenticationCacheJndiName">SRPAuthenticationCache</attribute>
<attribute name="ServerPort">10099</attribute>
</mbean>
- -->
+-->
<!-- JAAS security manager and realm mapping -->
- <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
- name="Security:name=JaasSecurityManager">
- <attribute name="SecurityManagerClassName">
- org.jboss.security.plugins.JaasSecurityManager
- </attribute>
+ <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
name="Security:name=JaasSecurityManager">
+ <attribute
name="SecurityManagerClassName">org.jboss.security.plugins.JaasSecurityManager</attribute>
</mbean>
<!-- Uncomment to enable the XML implementation of the JAAS policy
- <mbean code="org.jboss.security.plugins.SecurityPolicyService"
- name="Security:name=SecurityPolicyService">
+ <mbean code="org.jboss.security.plugins.SecurityPolicyService"
name="Security:name=SecurityPolicyService">
<attribute name="JndiName">DefaultSecurityPolicy</attribute>
<attribute name="PolicyFile">sample_policy.xml</attribute>
</mbean>
- -->
+-->
+
+ <!-- ==================================================================== -->
+ <!-- JBossCX setup, for J2EE connector architecture support -->
+ <!-- ==================================================================== -->
+
+ <mbean code="org.jboss.resource.RARDeployer" name="JCA:service=RARDeployer">
+ </mbean>
+
+ <!-- Minerva no transaction connection manager factory.
+
+ Use this for resource adapters that don't support
+ transactions. -->
+ <mbean code="org.jboss.resource.ConnectionManagerFactoryLoader"
+
name="JCA:service=ConnectionManagerFactoryLoader,name=MinervaNoTransCMFactory">
+ <attribute name="FactoryName">MinervaNoTransCMFactory</attribute>
+ <attribute name="FactoryClass">
+ org.jboss.pool.connector.jboss.MinervaNoTransCMFactory
+ </attribute>
+ <attribute name="Properties"></attribute>
+ </mbean>
+
+ <!-- Minerva local transaction connection manager factory.
+
+ Use this for resource adapters that support "local"
+ transactions. -->
+ <mbean code="org.jboss.resource.ConnectionManagerFactoryLoader"
+
name="JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory">
+ <attribute name="FactoryName">MinervaSharedLocalCMFactory</attribute>
+ <attribute name="FactoryClass">
+ org.jboss.pool.connector.jboss.MinervaSharedLocalCMFactory
+ </attribute>
+ <attribute name="Properties"></attribute>
+ </mbean>
+
+ <!-- Minerva XA transaction connection manager factory
+
+ Use this for resource adapters that support "xa"
+ transactions. -->
+ <mbean code="org.jboss.resource.ConnectionManagerFactoryLoader"
+ name="JCA:service=ConnectionManagerFactoryLoader,name=MinervaXACMFactory">
+ <attribute name="FactoryName">MinervaXACMFactory</attribute>
+ <attribute name="FactoryClass">
+ org.jboss.pool.connector.jboss.MinervaXACMFactory
+ </attribute>
+ <attribute name="Properties"></attribute>
+ </mbean>
+
+
+ <!-- This is an example of using a resource adapter that supports XA
+ transactions. The Minerva XA resource adapter requires an
+ XADataSource to be in JNDI somewhere. JBoss doesn't include a
+ database with an XA-compliant JDBC driver, so this will need to
+ be configured to use whatever XADataSource implementation you
+ have.
+
+
+ <mbean code="org.jboss.resource.ConnectionFactoryLoader"
+ name="JCA:service=ConnectionFactoryLoader,name=XAMinervaDS">
+ <attribute name="FactoryName">XAMinervaDS</attribute>
+ <attribute name="RARDeployerName">JCA:service=RARDeployer</attribute>
+ <attribute name="ResourceAdapterName">
+ Minerva JDBA XA Resource Adapter
+ </attribute>
+ <attribute name="Properties">
+ XADataSourceClass=put your XADataSource class name here
+ </attribute>
+ <attribute name="ConnectionManagerFactoryName">
+ MinervaXACMFactory
+ </attribute>
+ <attribute name="ConnectionManagerProperties">
+ # Pool type - uncomment to force, otherwise it is the default
+ #PoolConfiguration=per-factory
+ # Connection pooling properties - see
+ # org.jboss.pool.PoolParameters
+ MinSize=0
+ MaxSize=10
+ Blocking=true
+ GCEnabled=false
+ IdleTimeoutEnabled=false
+ InvalidateOnError=false
+ TrackLastUsed=false
+ GCIntervalMillis=120000
+ GCMinIdleMillis=1200000
+ IdleTimeoutMillis=1800000
+ MaxIdleTimeoutPercent=1.0
+ </attribute>
+
+ <attribute name="PrincipalMappingClass">
+ org.jboss.resource.security.ManyToOnePrincipalMapping
+ </attribute>
+ <attribute name="PrincipalMappingProperties">
+ userName=sa
+ password=
+ </attribute>
+ </mbean>
+ -->
+
<!-- ==================================================================== -->
<!-- JDBC -->
<!-- ==================================================================== -->
- <mbean code="org.jboss.jdbc.JdbcProvider"
- name="DefaultDomain:service=JdbcProvider">
- <attribute name="Drivers">
- org.hsql.jdbcDriver,
- org.enhydra.instantdb.jdbc.idbDriver
- </attribute>
+ <mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
+ <attribute name="Drivers">org.hsql.jdbcDriver</attribute>
</mbean>
- <mbean code="org.jboss.jdbc.HypersonicDatabase"
- name="DefaultDomain:service=Hypersonic">
+ <mbean code="org.jboss.jdbc.HypersonicDatabase"
name="DefaultDomain:service=Hypersonic">
<attribute name="Port">1476</attribute>
<attribute name="Silent">true</attribute>
<attribute name="Database">default</attribute>
<attribute name="Trace">false</attribute>
</mbean>
- <mbean code="org.jboss.jdbc.XADataSourceLoader"
- name="DefaultDomain:service=XADataSource,name=InstantDB">
- <attribute name="PoolName">InstantDB</attribute>
- <attribute name="DataSourceClass">
- org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
- </attribute>
- <attribute name="Properties"></attribute>
- <attribute name="URL">
- jdbc:idb:../conf/default/instantdb.properties
- </attribute>
- <attribute name="GCMinIdleTime">1200000</attribute>
- <attribute name="JDBCUser" />
- <attribute name="MaxSize">10</attribute>
- <attribute name="Password" />
- <attribute name="GCEnabled">false</attribute>
- <attribute name="InvalidateOnError">false</attribute>
- <attribute name="TimestampUsed">false</attribute>
- <attribute name="Blocking">true</attribute>
- <attribute name="GCInterval">120000</attribute>
- <attribute name="IdleTimeout">1800000</attribute>
- <attribute name="IdleTimeoutEnabled">false</attribute>
- <attribute name="LoggingEnabled">false</attribute>
- <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
- <attribute name="MinSize">0</attribute>
- </mbean>
- <mbean code="org.jboss.jdbc.XADataSourceLoader"
- name="DefaultDomain:service=XADataSource,name=DefaultDS">
+<!-- XADataSourceLoader is now deprecated. It now converts to
ConnectionFactoryLoader mbeans. See below for brief instructions
+ <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=DefaultDS">
<attribute name="PoolName">DefaultDS</attribute>
- <attribute name="DataSourceClass">
- org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
- </attribute>
+ <attribute
name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attribute>
<attribute name="Properties"></attribute>
<attribute name="URL">jdbc:HypersonicSQL:hsql://localhost:1476</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
@@ -179,27 +212,67 @@
<attribute name="LoggingEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">0</attribute>
- </mbean>
+ </mbean>-->
+<!--This ConnectionFactoryLoader configuration was generated from the preceding
+XADataSourceLoader configuration with the "migration" XADataSourceLoader.
+To convert your XADataSourceLoaders, follow these steps.
+
+1. Make sure the resource adapter mbeans rardeployer and the three
ConnectionManagerFactoryLoaders are in this file before any XADataSourceLoaders, as in
this particular file.
+
+2. Start jboss.
+
+3. Make sure there is a jboss-auto.jcml file in conf/default (or wherever you are
running from)
+
+4. Using the ConfigurationService mbean display (port 8082) press the
SaveConfiguration button. This will save your configuration including the converted
mbeans to jboss-auto.jcml.
+
+5. Look through jboss-auto.jcml and copy the ConnectionFactoryLoader mbeans
corresponding to your XADataSourceLoader mbeans to this file. Clean up the
indentation and comment out or remove the XADataSourceLoader mbeans.
+
+You can keep running with your XADataSourceLoader mbeans... but they will go away
in a future jboss release. Why not convert now? -->
+
+<mbean code="org.jboss.resource.ConnectionFactoryLoader"
name="DefaultDomain:service=ConnectionFactoryLoader,name=DefaultDS">
+ <attribute name="Properties">#
+ #Wed Aug 15 16:17:29 EDT 2001
+ ConnectionURL=jdbc\:HypersonicSQL\:hsql\://localhost\:1476
+ </attribute>
+ <attribute name="FactoryName">DefaultDS</attribute>
+ <attribute name="TransactionManagerName">java:/TransactionManager</attribute>
+ <attribute name="ResourceAdapterName">Minerva JDBC LocalTransaction
ResourceAdapter</attribute>
+ <attribute name="RARDeployerName">JCA:service=RARDeployer</attribute>
+ <attribute
name="ConnectionManagerFactoryName">MinervaSharedLocalCMFactory</attribute>
+ <attribute name="ConnectionManagerProperties">#
+ #Wed Aug 15 16:17:29 EDT 2001
+ InvalidateOnError=false
+ Blocking=true
+ IdleTimeoutMillis=1800000
+ MaxSize=10
+ TimestampUsed=false
+ IdleTimeoutEnabled=false
+ GCIntervalMillis=120000
+ MinSize=0
+ GCMinIdleMillis=1200000
+ GCEnabled=false
+ MaxIdleTimeoutPercent=1.0
+ </attribute>
+ <attribute
name="PrincipalMappingClass">org.jboss.resource.security.ManyToOnePrincipalMapping</attribute>
+ <attribute name="PrincipalMappingProperties">#
+ #Wed Aug 15 16:17:29 EDT 2001
+ userName=sa
+ </attribute>
+</mbean>
<!-- ==================================================================== -->
<!-- JBoss Server Management -->
<!-- ==================================================================== -->
-
- <!-- AS Temporary not available
- <mbean code="org.jboss.management.ServerDataCollector"
- name="Management:service=Collector">
+ <mbean code="org.jboss.management.ServerDataCollector"
name="Management:service=Collector">
<attribute name="RefreshSleep">5000</attribute>
</mbean>
- -->
-
<!-- ==================================================================== -->
<!-- J2EE deployment -->
<!-- ==================================================================== -->
- <mbean code="org.jboss.ejb.ContainerFactory"
- name=":service=ContainerFactory">
+ <mbean code="org.jboss.ejb.ContainerFactory" name=":service=ContainerFactory">
<attribute name="VerifyDeployments">true</attribute>
<attribute name="ValidateDTDs">false</attribute>
<attribute name="MetricsEnabled">false</attribute>
@@ -208,295 +281,103 @@
</mbean>
<!-- Uncomment to add embedded tomcat service
- <mbean code="org.jboss.tomcat.EmbeddedTomcatServiceSX"
- name="DefaultDomain:service=EmbeddedTomcat"/>
- -->
+ <mbean code="org.jboss.tomcat.EmbeddedTomcatServiceSX"
name="DefaultDomain:service=EmbeddedTomcat" />
+ -->
- <!--
- | Uncomment to enable the Jetty service.
- |
- | Besure to check that the configuration values are valid for your
- | environment.
- <mbean code="org.jboss.jetty.JettyService"
- name=":service=Jetty">
- <attribute name="JettyHome">../../jetty</attribute>
- <attribute name="Configuration">jetty.xml</attribute>
- <attribute name="WebDefault">../../jetty/etc/webdefault.xml</attribute>
- <attribute name="UnpackWars">true</attribute>
- <attribute name="PublishMBeans">true</attribute>
+ <!-- Uncomment and set file URL to add Jetty service (you can set config more
than once)
+ <mbean code="org.jboss.jetty.JettyService" name="DefaultDomain:service=Jetty">
+ <attribute name="Configuration">file URL to jetty.xml e.g.
file:/usr/local/jboss/dist/conf/default/jetty.xml</attribute>
</mbean>
- -->
-
+ -->
<!-- ==================================================================== -->
<!-- JBossMQ -->
<!-- ==================================================================== -->
-
- <mbean code="org.jboss.mq.server.JBossMQService"
- name="JBossMQ:service=Server"/>
+ <mbean code="org.jbossmq.server.JBossMQService" name="JBossMQ:service=Server"/>
<!-- The StateManager is used to keep JMS perisitent state data. -->
<!-- For example: what durable subscriptions are active. -->
- <mbean code="org.jboss.mq.server.StateManager"
- name="JBossMQ:service=StateManager">
- <attribute name="StateFile">jbossmq-state.xml</attribute>
+ <mbean code="org.jbossmq.server.StateManager" name="JBossMQ:service=StateManager">
+ <attribute name="StateFile">jbossmq-state.xml</attribute>
</mbean>
<!-- The PersistenceManager is used to store messages to disk. -->
- <mbean code="org.jboss.mq.pm.file.PersistenceManager"
- name="JBossMQ:service=PersistenceManager">
+ <mbean code="org.jbossmq.pm.file.PersistenceManager"
name="JBossMQ:service=PersistenceManager">
<attribute name="DataDirectory">../../db/jbossmq/</attribute>
</mbean>
<!-- InvocationLayers are the different transport methods that can be used to
access the server -->
- <mbean code="org.jboss.mq.il.jvm.JVMServerILService"
- name="JBossMQ:service=InvocationLayer,type=JVM">
+ <!-- The most stable transports are enabled by default -->
+ <mbean code="org.jbossmq.il.jvm.JVMServerILService"
name="JBossMQ:service=InvocationLayer,type=JVM">
<attribute name="ConnectionFactoryJNDIRef">java:/ConnectionFactory</attribute>
<attribute
name="XAConnectionFactoryJNDIRef">java:/XAConnectionFactory</attribute>
- </mbean>
-
- <mbean code="org.jboss.mq.il.rmi.RMIServerILService"
- name="JBossMQ:service=InvocationLayer,type=RMI">
- <attribute name="ConnectionFactoryJNDIRef">RMIConnectionFactory</attribute>
- <attribute name="XAConnectionFactoryJNDIRef">RMIXAConnectionFactory</attribute>
</mbean>
-
- <mbean code="org.jboss.mq.il.oil.OILServerILService"
- name="JBossMQ:service=InvocationLayer,type=OIL">
+ <mbean code="org.jbossmq.il.rmi.RMIServerILService"
name="JBossMQ:service=InvocationLayer,type=RMI">
<attribute name="ConnectionFactoryJNDIRef">ConnectionFactory</attribute>
<attribute name="XAConnectionFactoryJNDIRef">XAConnectionFactory</attribute>
</mbean>
- <mbean code="org.jboss.mq.il.uil.UILServerILService"
- name="JBossMQ:service=InvocationLayer,type=UIL">
+ <!-- Uncomment the following section to enable the OIL and UIL Invocation Layers.
-->
+ <!-- They provided better performance and features, but may not be as stable. -->
+ <!--
+ <mbean code="org.jbossmq.il.oil.OILServerILService"
name="JBossMQ:service=InvocationLayer,type=OIL">
+ <attribute name="ConnectionFactoryJNDIRef">OILConnectionFactory</attribute>
+ <attribute name="XAConnectionFactoryJNDIRef">OILXAConnectionFactory</attribute>
+ </mbean>
+ <mbean code="org.jbossmq.il.uil.UILServerILService"
name="JBossMQ:service=InvocationLayer,type=UIL">
<attribute name="ConnectionFactoryJNDIRef">UILConnectionFactory</attribute>
<attribute name="XAConnectionFactoryJNDIRef">UILXAConnectionFactory</attribute>
</mbean>
+ -->
<!-- The following three line create 3 topics named: testTopic, example, and bob
-->
- <mbean code="org.jboss.mq.server.TopicManager"
- name="JBossMQ:service=Topic,name=testTopic"/>
- <mbean code="org.jboss.mq.server.TopicManager"
- name="JBossMQ:service=Topic,name=example"/>
- <mbean code="org.jboss.mq.server.TopicManager"
- name="JBossMQ:service=Topic,name=bob"/>
+ <mbean code="org.jbossmq.server.TopicManager"
name="JBossMQ:service=Topic,name=testTopic"/>
+ <mbean code="org.jbossmq.server.TopicManager"
name="JBossMQ:service=Topic,name=example"/>
+ <mbean code="org.jbossmq.server.TopicManager"
name="JBossMQ:service=Topic,name=bob"/>
<!-- The following 9 line create 9 topics named: testQueue, controlQueue, A, B,
-->
<!-- C, D, E, F, and ex -->
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=testQueue"/>
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=controlQueue"/>
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=A"/>
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=B"/>
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=C"/>
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=D"/>
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=E"/>
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=F"/>
- <mbean code="org.jboss.mq.server.QueueManager"
- name="JBossMQ:service=Queue,name=ex"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=testQueue"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=controlQueue"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=A"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=B"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=C"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=D"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=E"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=F"/>
+ <mbean code="org.jbossmq.server.QueueManager"
name="JBossMQ:service=Queue,name=ex"/>
<!-- ==================================================================== -->
<!-- For Message Dirven Beans -->
<!-- ==================================================================== -->
-
- <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
- name=":service=JMSProviderLoader,name=JBossMQProvider">
+ <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name=":service=JMSProviderLoader,name=JBossMQProvider">
<attribute name="ProviderName">DefaultJMSProvider</attribute>
- <attribute name="ProviderAdapterClass">
- org.jboss.jms.jndi.JBossMQProvider
- </attribute>
- <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
- <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
+ <attribute
name="ProviderAdapterClass">org.jboss.jms.jndi.JBossMQProvider</attribute>
+ <attribute name="QueueFactoryRef">java:/ConnectionFactory</attribute>
+ <attribute name="TopicFactoryRef">java:/ConnectionFactory</attribute>
</mbean>
- <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader"
- name=":service=ServerSessionPoolMBean,name=StdJMSPool">
+ <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader"
name=":service=ServerSessionPoolMBean,name=StdJMSPool">
<attribute name="PoolName">StdJMSPool</attribute>
- <attribute name="PoolFactoryClass">
- org.jboss.jms.asf.StdServerSessionPoolFactory
- </attribute>
+ <attribute
name="PoolFactoryClass">org.jboss.jms.asf.StdServerSessionPoolFactory</attribute>
</mbean>
<!-- Make sure you change EmbeddedTomcat to Jetty if you are using Jetty -->
- <mbean code="org.jboss.deployment.J2eeDeployer"
- name="J2EE:service=J2eeDeployer">
+ <mbean code="org.jboss.deployment.J2eeDeployer" name="J2EE:service=J2eeDeployer">
<attribute name="DeployerName">Default</attribute>
<attribute name="JarDeployerName">:service=ContainerFactory</attribute>
<attribute name="WarDeployerName">:service=EmbeddedTomcat</attribute>
</mbean>
- <!-- Uncomment this and disable previous J2eeDeployer
- entry to enable an alternative "scoped" deployment
- <mbean code="org.jboss.deployment.scope.J2eeGlobalScopeDeployer"
- name="J2EE:service=J2eeDeployer">
+ <!-- Uncomment this and disable previous J2eeDeployer entry to enable an
alternative "scoped" deployment
+ <mbean code="org.jboss.deployment.scope.J2eeGlobalScopeDeployer"
name="J2EE:service=J2eeDeployer">
<attribute name="DeployerName">Default</attribute>
<attribute name="JarDeployerName">:service=ContainerFactory</attribute>
<attribute name="WarDeployerName">:service=EmbeddedTomcat</attribute>
</mbean>
-->
-
- <!-- ==================================================================== -->
- <!-- JBossCX setup, for J2EE connector architecture support -->
- <!-- ==================================================================== -->
-
- <mbean code="org.jboss.resource.RARDeployer"
- name="JCA:service=RARDeployer">
- </mbean>
-
- <!-- Minerva no transaction connection manager factory.
-
- Use this for resource adapters that don't support
- transactions. -->
- <mbean code="org.jboss.resource.ConnectionManagerFactoryLoader"
-
name="JCA:service=ConnectionManagerFactoryLoader,name=MinervaNoTransCMFactory">
- <attribute name="FactoryName">MinervaNoTransCMFactory</attribute>
- <attribute name="FactoryClass">
- org.jboss.pool.connector.jboss.MinervaNoTransCMFactory
- </attribute>
- <attribute name="Properties"></attribute>
- </mbean>
-
- <!-- Minerva local transaction connection manager factory.
-
- Use this for resource adapters that support "local"
- transactions. -->
- <mbean code="org.jboss.resource.ConnectionManagerFactoryLoader"
-
name="JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory">
- <attribute name="FactoryName">MinervaSharedLocalCMFactory</attribute>
- <attribute name="FactoryClass">
- org.jboss.pool.connector.jboss.MinervaSharedLocalCMFactory
- </attribute>
- <attribute name="Properties"></attribute>
- </mbean>
-
- <!-- Minerva XA transaction connection manager factory
-
- Use this for resource adapters that support "xa"
- transactions. -->
- <mbean code="org.jboss.resource.ConnectionManagerFactoryLoader"
- name="JCA:service=ConnectionManagerFactoryLoader,name=MinervaXACMFactory">
- <attribute name="FactoryName">MinervaXACMFactory</attribute>
- <attribute name="FactoryClass">
- org.jboss.pool.connector.jboss.MinervaXACMFactory
- </attribute>
- <attribute name="Properties"></attribute>
- </mbean>
-
- <!-- Connection factory for the Minerva JDBC resource adapter. This
- points at the same database as DefaultDS. -->
- <mbean code="org.jboss.resource.ConnectionFactoryLoader"
- name="JCA:service=ConnectionFactoryLoader,name=MinervaDS">
- <attribute name="FactoryName">MinervaDS</attribute>
- <attribute name="RARDeployerName">JCA:service=RARDeployer</attribute>
- <attribute name="ResourceAdapterName">
- Minerva JDBC LocalTransaction ResourceAdapter
- </attribute>
- <attribute name="Properties">
- ConnectionURL=jdbc:HypersonicSQL:hsql://localhost:1476
- </attribute>
-
- <attribute name="ConnectionManagerFactoryName">
- MinervaSharedLocalCMFactory
- </attribute>
- <!-- See the documentation for the specific connection manager
- implementation you are using for the properties you can set -->
- <attribute name="ConnectionManagerProperties">
- # Pool type - uncomment to force, otherwise it is the default
- #PoolConfiguration=per-factory
-
- # Connection pooling properties - see
- # org.jboss.pool.PoolParameters
- MinSize=0
- MaxSize=10
- Blocking=true
- GCEnabled=false
- IdleTimeoutEnabled=false
- InvalidateOnError=false
- TrackLastUsed=false
- GCIntervalMillis=120000
- GCMinIdleMillis=1200000
- IdleTimeoutMillis=1800000
- MaxIdleTimeoutPercent=1.0
- </attribute>
-
- <!-- Principal mapping configuration -->
- <attribute name="PrincipalMappingClass">
- org.jboss.resource.security.ManyToOnePrincipalMapping
- </attribute>
- <attribute name="PrincipalMappingProperties">
- userName=sa
- password=
- </attribute>
- </mbean>
-
- <!-- This is an example of using a resource adapter that supports XA
- transactions. The Minerva XA resource adapter requires an
- XADataSource to be in JNDI somewhere. JBoss doesn't include a
- database with an XA-compliant JDBC driver, so this will need to
- be configured to use whatever XADataSource implementation you
- have.
-
- <mbean code="org.jboss.jdbc.RawXADataSourceLoader"
- name="DefaultDomain:service=RawXADataSourceLoader,name=MinervaXADS">
- <attribute name="PoolName">MinervaXADS</attribute>
- <attribute name="DataSourceClass">
- Put your XADataSource implementation class here
- </attribute>
- <attribute name="Properties"></attribute>
- </mbean>
-
- <mbean code="org.jboss.resource.ConnectionFactoryLoader"
- name="JCA:service=ConnectionFactoryLoader,name=XAMinervaDS">
- <attribute name="FactoryName">XAMinervaDS</attribute>
- <attribute name="RARDeployerName">JCA:service=RARDeployer</attribute>
- <attribute name="ResourceAdapterName">
- Minerva JDBA XA Resource Adapter
- </attribute>
- <attribute name="Properties">
- XADataSourceName=java:/MinervaXADS
- </attribute>
-
- <attribute name="ConnectionManagerFactoryName">
- MinervaXACMFactory
- </attribute>
- <attribute name="ConnectionManagerProperties">
- # Pool type - uncomment to force, otherwise it is the default
- #PoolConfiguration=per-factory
-
- # Connection pooling properties - see
- # org.jboss.pool.PoolParameters
- MinSize=0
- MaxSize=10
- Blocking=true
- GCEnabled=false
- IdleTimeoutEnabled=false
- InvalidateOnError=false
- TrackLastUsed=false
- GCIntervalMillis=120000
- GCMinIdleMillis=1200000
- IdleTimeoutMillis=1800000
- MaxIdleTimeoutPercent=1.0
- </attribute>
-
- <attribute name="PrincipalMappingClass">
- org.jboss.resource.security.ManyToOnePrincipalMapping
- </attribute>
- <attribute name="PrincipalMappingProperties">
- userName=sa
- password=
- </attribute>
- </mbean>
- -->
-
<!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->
<mbean code="org.jboss.resource.ConnectionFactoryLoader"
name="JCA:service=ConnectionFactoryLoader,name=JmsXA">
@@ -526,42 +407,29 @@
</attribute>
<!-- Principal mapping configuration -->
- <attribute name="PrincipalMappingClass">
- org.jboss.resource.security.ManyToOnePrincipalMapping
- </attribute>
+ <attribute
name="PrincipalMappingClass">org.jboss.resource.security.ManyToOnePrincipalMapping</attribute>
<attribute name="PrincipalMappingProperties">
</attribute>
</mbean>
-
<!-- ==================================================================== -->
<!-- Auto deployment -->
<!-- ==================================================================== -->
-
<mbean code="org.jboss.ejb.AutoDeployer" name="EJB:service=AutoDeployer">
<attribute name="Deployers">
J2EE:service=J2eeDeployer;
JCA:service=RARDeployer
- </attribute>
- <attribute name="URLs">
- ../deploy,
- ../deploy/lib
</attribute>
- <attribute name="Timeout">
- 3000
- </attribute>
+ <attribute name="URLs">../deploy,../deploy/lib</attribute>
</mbean>
-
<!-- ==================================================================== -->
<!-- JMX adaptors -->
<!-- ==================================================================== -->
- <mbean code="org.jboss.jmx.server.JMXAdaptorService"
- name="Adaptor:name=RMI"/>
+ <mbean code="org.jboss.jmx.server.JMXAdaptorService" name="Adaptor:name=RMI" />
- <mbean code="org.jboss.jmx.server.RMIConnectorService"
- name="Connector:name=RMI"/>
+ <mbean code="org.jboss.jmx.server.RMIConnectorService" name="Connector:name=RMI"
/>
<mbean code="com.sun.jdmk.comm.HtmlAdaptorServer" name="Adaptor:name=html">
<attribute name="MaxActiveClientCount">10</attribute>
@@ -569,11 +437,9 @@
<attribute name="Port">8082</attribute>
</mbean>
-
<!-- ==================================================================== -->
<!-- Mail Connection Factory -->
<!-- ==================================================================== -->
-
<mbean code="org.jboss.mail.MailService" name=":service=Mail">
<attribute name="JNDIName">Mail</attribute>
<attribute name="ConfigurationFile">mail.properties</attribute>
@@ -581,19 +447,15 @@
<attribute name="Password">password</attribute>
</mbean>
-
<!-- ==================================================================== -->
<!-- Uncomment to enable JMX monitoring of the bean cache
- <mbean code="org.jboss.monitor.BeanCacheMonitor"
- name="Monitor:name=BeanCacheMonitor"/>
+ <mbean code="org.jboss.monitor.BeanCacheMonitor"
name="Monitor:name=BeanCacheMonitor"/>
-->
<!-- ==================================================================== -->
-
<!-- ==================================================================== -->
<!-- Scheduler Service -->
<!-- ==================================================================== -->
-
<!-- Uncomment this to enable Scheduling - ->
<mbean code="org.jboss.util.Scheduler" name=":service=Scheduler">
<constructor>
@@ -609,18 +471,14 @@
<!- - -->
<!-- Uncomment this and set up according to manual to add Castor JDO service
- <mbean code="org.jboss.jdo.castor.CastorJDOImpl"
- name="DefaultDomain:service=CastorJDO,name=someName">
- <attribute name="Configuration">
- file:../conf/default/database.xml
- </attribute>
+ <mbean code="org.jboss.jdo.castor.CastorJDOImpl"
name="DefaultDomain:service=CastorJDO,name=someName">
+ <attribute name="Configuration">file:../conf/default/database.xml</attribute>
<attribute name="JndiName">jdo/someName</attribute>
<attribute name="LockTimeout">0</attribute>
<attribute name="LoggingEnabled">false</attribute>
<attribute name="CommonClassPath">false</attribute>
</mbean>
-->
-
<!-- ==================================================================== -->
<!-- Add your custom MBeans here -->
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development