On Mon, Jul 6, 2009 at 6:12 PM, Vogelsang, Jeff
<jeffvogelsang@...> wrote:
Hello,
I am trying to get the Cargo 1.0 Maven 2 plugin to generate
the following two resources for at Tomcat6x container:
1.) Oracle with Connection Pooling
<Resource
name="THEDS"
type="oracle.jdbc.pool.OracleDataSource"
factory="oracle.jdbc.pool.OracleDataSourceFactory"
url="jdbc:oracle:thin:@localhost:1521:xe"
driverClassName="oracle.jdbc.OracleDriver"
userName="username"
password="password"
auth="Container"
maxActive="100"
maxIdle="30"
maxWait="10000"
logAbandoned="true"
removeAbandoned="true"
removeAbandonedTimeout="60" />
2.) Oracle without Connection Pooling
<Resource
name='THEDS'
type='javax.sql.DataSource'
url=’jdbc:oracle:thin:@localhost:1521:xe’
driverClassName='oracle.jdbc.OracleDriver'
username='username'
password='password'
auth='Container' />
With
Cargo 1.0 and the Maven2 Cargo plugin, I cannot figure out how to create either
of these resources with either cargo.resource.resource or cargo.datasource.datasource.
Can
anyone lend a hand?
Thanks,
Jeff
<configuration>
<resources>
<resource>
<name>someDataSource</name>
<type>javax.sql.DataSource</type>
<parameters>
<url>jdbc...</url>
<maxWait>500</maxWait>
...
</parameters>
</resource>
</resources>
</configuration>
--
Alexander Brill
http://brill.no