Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Convert context.xml resource from Tomcat to Jetty

http://wiki.eclipse.org/Jetty/Howto/Configure_JNDI_Datasource

On Fri, Feb 25, 2011 at 10:03 PM, Heizer, Charles <heizer1@xxxxxxxx> wrote:
> Hello,
> I would like to know how to convert this Tomcat context.xml file to Jetty
> 7? I have been searching but have not found anything.
>
> Thanks,
> Charles
>
>
> context.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <Context>
>  <Resource
>  auth="Container"
>  description="DB Connection"
>  name="jdbc/nickyb"
>  type="javax.sql.DataSource"
>  driverClassName="com.mysql.jdbc.Driver"
>  url="jdbc:mysql://localhost:3306/myAppDB?autoReconnect=true"
>  username="roUsr"
>  password="roUsr"
>  maxIdle="2"
>  maxWait="5000"
>  maxActive="4"/>
> </Context>

-- 
Filipe Sousa


Back to the top