[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: MBeans waiting for other MBeans
javajambal
do-not-reply at jboss.com
Wed Oct 31 09:03:16 EDT 2007
hi,
my persistence.xml looks like this
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="sampledb">
org.hibernate.ejb.HibernatePersistence
<jta-data-source>java:datasource/sampleDS</jta-data-source>
com.c.p.model.C1
com.c.p.dvrsched.model.C2
</persistence-unit>
and my sample-ds.xml looks like this
<local-tx-datasource>
<jndi-name>datasource/sampleDS</jndi-name>
<connection-url>jdbc:oracle:thin:@127.0.0.l:1521:orcl</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>scott</user-name>
tiger
<min-pool-size>3</min-pool-size>
<max-pool-size>25</max-pool-size>
<type-mapping>Oracle10g</type-mapping>
</local-tx-datasource>
<local-tx-datasource>
<!-- The jndi name of the DataSource, it is prefixed with java:/ -->
<!-- Datasources are not available outside the virtual machine -->
<jndi-name>jdbc/TestingDS</jndi-name>
<!-- For in-process persistent db, saved when jboss stops.
The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown
-->
<connection-url>jdbc:hsqldb:target/testdb</connection-url>
<!-- The driver class -->
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<!-- The login and password -->
<user-name>sa</user-name>
<!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
<min-pool-size>5</min-pool-size>
<!-- The maximum connections in a pool/sub-pool -->
<max-pool-size>20</max-pool-size>
<!-- The time before an unused connection is destroyed -->
<!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
<!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements/>
<!-- HSQL DB benefits from prepared statement caching -->
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>Hypersonic SQL</type-mapping>
<!-- When using in-process (standalone) mode -->
jboss:service=Hypersonic,database=testdb
</local-tx-datasource>
<!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->
testdb
true
I appreciate your help..
thanks..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100638#4100638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100638
More information about the jboss-user
mailing list