root/trunk/config/bwbuild/default/bedework-eventreg-ds.xml

Revision 3574 (checked in by johnsa, 1 year ago)

event registration datasource corrected

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!DOCTYPE datasources
4         PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
5         "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
6
7 <datasources>
8    <local-tx-datasource>
9       <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
10       <!-- Datasources are not available outside the virtual machine -->
11       <jndi-name>EventregDS</jndi-name>
12
13       <connection-url>jdbc:hsqldb:hsql://localhost:1705</connection-url>
14
15       <!-- The driver class -->
16       <driver-class>org.hsqldb.jdbcDriver</driver-class>
17
18       <!-- The login and password -->
19       <user-name>sa</user-name>
20       <password></password>
21
22       <!--example of how to specify class that determines if exception means connection should be destroyed-->
23       <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name-->
24
25       <!-- this will be run before a managed connection is removed from the pool for use by a client-->
26       <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> -->
27
28       <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
29       <min-pool-size>5</min-pool-size>
30
31       <!-- The maximum connections in a pool/sub-pool -->
32       <max-pool-size>20</max-pool-size>
33
34       <!-- The time before an unused connection is destroyed -->
35       <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
36       <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
37       <idle-timeout-minutes>0</idle-timeout-minutes>
38
39       <!-- sql to call when connection is created
40         <new-connection-sql>some arbitrary sql</new-connection-sql>
41       -->
42
43       <!-- sql to call on an existing pooled connection when it is obtained from pool
44          <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
45       -->
46
47       <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool
48          <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name>
49       -->
50
51       <!-- Whether to check all statements are closed when the connection is returned to the pool,
52            this is a debugging feature that should be turned off in production -->
53       <track-statements/>
54
55       <!-- Use the getConnection(user, pw) for logins
56         <application-managed-security/>
57       -->
58
59       <!-- Use the security domain defined in conf/login-config.xml
60       <security-domain>HsqlDbRealm</security-domain>-->
61
62       <!-- Use the security domain defined in conf/login-config.xml or the
63            getConnection(user, pw) for logins. The security domain takes precedence.
64         <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
65       -->
66
67       <!-- HSQL DB benefits from prepared statement caching -->
68       <prepared-statement-cache-size>32</prepared-statement-cache-size>
69
70       <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
71       <metadata>
72          <type-mapping>Hypersonic SQL</type-mapping>
73       </metadata>
74
75       <depends>jboss:service=HsqlBwEventReg</depends>
76    </local-tx-datasource>
77
78    <mbean code="org.jboss.jdbc.HypersonicDatabase"
79      name="jboss:service=HsqlBwEventreg">
80     <!-- Should be done like this
81      <attribute name="Port">       
82         <value-factory bean="ServiceBindingManager" method="getIntBinding"
83            parameter="jboss:service=HsqlBedework"/>
84      </attribute>
85      <attribute name="BindAddress">       
86         <value-factory bean="ServiceBindingManager" method="getStringBinding"
87            parameter="jboss:service=Hypersonic"/>
88      </attribute>     
89     -->
90      <attribute name="Port">1705</attribute>
91      <attribute name="Silent">true</attribute>
92      <attribute name="Database">EventRegDb3p7</attribute>
93      <attribute name="Trace">false</attribute>
94      <attribute name="No_system_exit">true</attribute>
95    </mbean>
96 </datasources>
97
98
Note: See TracBrowser for help on using the browser.