<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: mixing EJB2.1 with EJB3, datasource is down
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/kobiianko">Kobi Ianko</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/575159#575159">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>the DS file works fine if I use only the EJB2.1 project or use only the new EJB3 JAR in the deploy directory.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>ds file:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><!-- The Hypersonic embedded database JCA connection factory config<br/>$Id: sybase-ds.xml,v 1.2 2010/05/26 12:18:11 kianko Exp $ --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><br/><datasources><br/>   <local-tx-datasource></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- The jndi name of the DataSource, it is prefixed with java:/ --><br/>      <!-- Datasources are not available outside the virtual machine --><br/>      <jndi-name>AllotDS</jndi-name></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- for tcp connection, allowing other processes to use the hsqldb<br/>      database. This requires the org.jboss.jdbc.HypersonicDatabase mbean.<br/>      <connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url><br/>--><br/>      <!-- for totally in-memory db, not saved when jboss stops. <br/>      The org.jboss.jdbc.HypersonicDatabase mbean is unnecessary<br/>      <connection-url>jdbc:hsqldb:.</connection-url><br/>--><br/>      <!-- for in-process db with file store, saved when jboss stops. The<br/>      org.jboss.jdbc.HypersonicDatabase is unnecessary<br/>--><br/>      <connection-url>jdbc:sybase:Tds:10.90.90.81:50078?ServiceName=kobi_cfg&amp;autocommit=FALSE&amp;</connection-url></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- The driver class --><br/>      <driver-class>com.sybase.jdbc3.jdbc.SybDataSource</driver-class><br/>      <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation><br/>      <!-- The login and password --><br/>      <user-name>user</user-name><br/>      <password>pass</password></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!--example of how to specify class that determines if exception means connection should be destroyed--><br/>      <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name--></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- this will be run before a managed connection is removed from the pool for use by a client--><br/>      <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use --><br/>      <min-pool-size>100</min-pool-size></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- The maximum connections in a pool/sub-pool --><br/>      <max-pool-size>200</max-pool-size></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- The time before an unused connection is destroyed --><br/>      <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use --><br/>      <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections --><br/>      <idle-timeout-minutes>5</idle-timeout-minutes></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- sql to call when connection is created --><br/>      <new-connection-sql>SELECT 1</new-connection-sql></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><br/>      <!-- sql to call on an existing pooled connection when it is obtained from pool <br/>         <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql><br/>      --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool<br/>         <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name><br/>      --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Whether to check all statements are closed when the connection is returned to the pool,<br/>           this is a debugging feature that should be turned off in production --><br/>      <track-statements>true</track-statements></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Use the getConnection(user, pw) for logins<br/>        <application-managed-security/><br/>      --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Use the security domain defined in conf/login-config.xml --><br/>      <!--security-domain>HsqlDbRealm</security-domain--></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Use the security domain defined in conf/login-config.xml or the<br/>           getConnection(user, pw) for logins. The security domain takes precedence.<br/>        <security-domain-and-application>HsqlDbRealm</security-domain-and-application><br/>      --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Add this depends tag if you are using the tcp connection url<br/>      <depends>jboss:service=Hypersonic</depends><br/> --><br/>   </local-tx-datasource></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- This mbean should be used only when using tcp connections. Uncomment<br/>   when the tcp based connection-url is used. --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></datasources></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>10x, Kobi</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/575159#575159">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>