Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 95 lines (80 sloc) 4.79 kB
defd7e7 @sebersole SVN layout migration for core/trunk
sebersole authored
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- ===================================================================== -->
4 <!-- -->
5 <!-- JBoss Server Configuration -->
6 <!-- -->
7 <!-- ===================================================================== -->
8
9 <server>
10
11 <!-- ==================================================================== -->
12 <!-- New ConnectionManager setup for mysql using 2.0.11 driver -->
13 <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
14 <!-- ==================================================================== -->
15
16 <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name="jboss.jca:service=LocalTxCM,name=Hibernate Resource Adapter">
17
18 <attribute name="JndiName">jca/test</attribute>
19 <depends optional-attribute-name="ManagedConnectionFactoryName">
20 <!--embedded mbean-->
21 <mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=Hibernate Resource Adapter">
22
23 <attribute name="ManagedConnectionFactoryProperties">
24 <properties>
25 <config-property>
26 <config-property-name>ConnectionURL</config-property-name>
27 <config-property-type>java.lang.String</config-property-type>
28 <config-property-value>jdbc:mysql:///test</config-property-value>
29 </config-property>
30 <config-property>
31 <config-property-name>DriverClass</config-property-name>
32 <config-property-type>java.lang.String</config-property-type>
33 <config-property-value>com.mysql.jdbc.Driver</config-property-value>
34 </config-property>
35 <config-property>
36 <config-property-name>Password</config-property-name>
37 <config-property-type>java.lang.String</config-property-type>
38 <config-property-value></config-property-value>
39 </config-property>
40 <config-property>
41 <config-property-name>UserName</config-property-name>
42 <config-property-type>java.lang.String</config-property-type>
43 <config-property-value>dbradby</config-property-value>
44 </config-property>
45 <config-property>
46 <config-property-name>Dialect</config-property-name>
47 <config-property-type>java.lang.String</config-property-type>
48 <config-property-value>org.hibernate.dialect.MySQLDialect</config-property-value>
49 </config-property>
50 <config-property>
51 <config-property-name>MapResources</config-property-name>
52 <config-property-type>java.lang.String</config-property-type>
53 <config-property-value>Simple.hbm.xml</config-property-value>
54 </config-property>
55 </properties>
56 </attribute>
57
58 <!--Below here are advanced properties -->
59 <!--hack-->
60 <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Hibernate Resource Adapter</depends>
61
62 </mbean>
63 </depends>
64 <depends optional-attribute-name="ManagedConnectionPool">
65 <!--embedded mbean-->
66 <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=LocalTxPool,name=Hibernate Resource Adapter">
67
68 <attribute name="MinSize">0</attribute>
69 <attribute name="MaxSize">50</attribute>
70 <attribute name="BlockingTimeoutMillis">5000</attribute>
71 <attribute name="IdleTimeoutMinutes">15</attribute>
72 <!--criteria indicates if Subject (from security domain) or app supplied
73 parameters (such as from getConnection(user, pw)) are used to distinguish
74 connections in the pool. Choices are
75 ByContainerAndApplication (use both),
76 ByContainer (use Subject),
77 ByApplication (use app supplied params only),
78 ByNothing (all connections are equivalent, usually if adapter supports
79 reauthentication)-->
80 <attribute name="Criteria">ByContainer</attribute>
81 </mbean>
82
83 </depends>
84 <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
85
86 <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
87
88 <!--make the rar deploy! hack till better deployment-->
89 <depends>jboss.jca:service=RARDeployer</depends>
90 <attribute name="TransactionManager">java:/TransactionManager</attribute>
91 </mbean>
92
93
94 </server>
Something went wrong with that request. Please try again.