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

Reply via email to