You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lu...@gmail.com> on 2007/02/10 19:48:46 UTC

DAS Support for JDBC connections in a J2SE/pure java application.

I just committed changes from Tuscany-948 that gives the necessary support
to allow DAS to create connections in a J2SE/pure java application
environment. You now can specify in the DAS config file, that you want to
use DriverManager to instantiate a JDBC connection and pass connection
properties such as driver class to use, login timeout, username and
password. Se a sample config below :

<ConnectionInfo dataSource="jdbc:derby:target/dastest; create = true"
useDriverManager="true">
        <ConnectionProperties
            driverClass="org.apache.derby.jdbc.EmbeddedDriver"
            loginTimeout="600000"/>
    </ConnectionInfo>

There is also a new customer sample application that uses DAS in a context
of a pure java application and exercise this new feature.


https://svn.apache.org/repos/asf/incubator/tuscany/java/das/samples/customer/

-- 
Luciano Resende
http://people.apache.org/~lresende