Has anyone successfully got JNDI datasources up and running under
Milestone 2?
The class packages changed from mortbay to eclipse as I understand it.

My jetty-env.xml file (DOES NOT WORK):

<Configure class="org.eclipse.jetty.webapp.WebAppContext">

<New id="MySQLMSA" class="org.eclipse.jetty.plus.jndi.Resource">
     <Arg></Arg>
     <Arg>jdbc/MyDataSource</Arg>
     <Arg>
         <New class="org.apache.commons.dbcp.BasicDataSource">
            <Set name="driverClassName">com.mysql.jdbc.Driver</Set>
            <Set name="url">jdbc_url</Set>
            <Set name="username">db_user</Set>
            <Set name="password">db_pass</Set>
         </New>
     </Arg>
</New>

</Configure>

Under Milestone 1, this jetty-web.xml works:

<Configure class="org.mortbay.jetty.webapp.WebAppContext">

<New id="DS" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>java:comp/env/jdbc/MySQLMSA</Arg>
    <Arg>
     <New class="org.apache.commons.dbcp.BasicDataSource">
                 <Set name="driverClassName">com.mysql.jdbc.Driver</
Set>
                 <Set name="url">jdbc_url</Set>
                 <Set name="username">db_user</Set>
                 <Set name="password">db_pass</Set>
     </New>
    </Arg>
</New>
</Configure>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to