You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Weisu <we...@gmail.com> on 2007/07/20 07:37:30 UTC
T5 - DataSource in Jetty5
Hi, I am using Tomcat for my old app, now I am tring to use Jetty5. In
Tomcat, I put my datasource in xml file under
tomact\conf\Catalina\localhost\xxx.xml as:
<Resource
name="jdbc/myDataSource"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://myServer:1433;databaseName=MyDatabase;user=reader;password=123456"/>
How do I do this in Jetty5? And I would like to use Oracle 9.
Thanks in advance!!!
Wei.
--
View this message in context: http://www.nabble.com/T5---DataSource-in-Jetty5-tf4115195.html#a11702510
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 - DataSource in Jetty5
Posted by Weisu <we...@gmail.com>.
Thanks Thomas,
Because Eclipse Jetty launch only works on Jetty5, that is why I am looking
for Jetty5's example.
Regards,
Wei.
Thomas Hackel wrote:
>
> Weisu schrieb:
>> Hi, I am using Tomcat for my old app, now I am tring to use Jetty5. In
>> How do I do this in Jetty5? And I would like to use Oracle 9.
>
> This is not Jetty5 but in Jetty6 it is like this (jetty-env.xml):
>
> <Configure class="org.mortbay.jetty.webapp.WebAppContext">
> <New id="SOMEID" class="org.mortbay.jetty.plus.naming.Resource">
> <Arg>jdbc/SOMENAME</Arg>
> <Arg>
> <New
>
> class="oracle.jdbc.pool.OracleConnectionPoolDataSource">
> <Set name="URL">SOMEURL</Set>
> <Set name="User">SOMEUSER</Set>
> <Set name="Password">SOMEPASSWORD</Set>
> </New>
> </Arg>
> </New>
> </Configure>
>
> The jetty docs and examples on their website have improved, its a good
> source now!
>
> Regards,
> Thomas Hackel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/T5---DataSource-in-Jetty5-tf4115195.html#a11719605
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 - DataSource in Jetty5
Posted by Thomas Hackel <th...@bi-so.com>.
Weisu schrieb:
> Hi, I am using Tomcat for my old app, now I am tring to use Jetty5. In
> How do I do this in Jetty5? And I would like to use Oracle 9.
This is not Jetty5 but in Jetty6 it is like this (jetty-env.xml):
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<New id="SOMEID" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>jdbc/SOMENAME</Arg>
<Arg>
<New
class="oracle.jdbc.pool.OracleConnectionPoolDataSource">
<Set name="URL">SOMEURL</Set>
<Set name="User">SOMEUSER</Set>
<Set name="Password">SOMEPASSWORD</Set>
</New>
</Arg>
</New>
</Configure>
The jetty docs and examples on their website have improved, its a good source now!
Regards,
Thomas Hackel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org