[nbj2ee] CustomerDB RESTFul WebService sample project

  • From: "Sharma, Ashutosh" < >
  • To: " " < >
  • Subject: [nbj2ee] CustomerDB RESTFul WebService sample project
  • Date: Wed, 10 Oct 2012 15:35:06 +0000
  • Accept-language: en-US

I have this running with Apache Derby DB.

I already have the MySQL DB which has sample DB(or catalog) which has the tables and the required data from the older version of this project(CustomerDB).

Even after following all the steps as per this url:



it still connects to Apache Derby and not to my MySQL DB.


My CustomerDB\setup\ sun-resources.xml




    <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="org.apache.derby.jdbc.ClientDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="SamplePool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">

        <property name="serverName" value="localhost"/>

        <property name="portNumber" value="1527"/>

        <property name="databaseName" value="sample"/>

        <property name="User" value="app"/>

        <property name="Password" value="app"/>

        <property name="URL" value="jdbc:derby://localhost:1527/sample"/>

        <property name="driverClass" value="org.apache.derby.jdbc.ClientDriver"/>


    <jdbc-resource enabled="true" pool-name="SamplePool" jndi-name="jdbc/sample"  object-type="user"/>



and that's the culprit.

How I can make it for MySQL? I am ready to edit it manually rather than waiting for some tool(which I am afraid is not working).





Ashutosh Sharma



IMPORTANT: Any information contained in this communication is intended for the use of the named individual or entity. All information contained in this communication is not intended or construed as an offer, solicitation, or a recommendation to purchase any security. Advice, suggestions or views presented in this communication are not necessarily those of Pershing LLC nor do they warrant a complete or accurate statement.

If you are not an intended party to this communication, please notify the sender and delete/destroy any and all copies of this communication. Unintended recipients shall not review, reproduce, disseminate nor disclose any information contained in this communication. Pershing LLC reserves the right to monitor and retain all incoming and outgoing communications as permitted by applicable law.

Email communications may contain viruses or other defects. Pershing LLC does not accept liability nor does it warrant that email communications are virus or defect free.

[nbj2ee] CustomerDB RESTFul WebService sample project

Sharma, Ashutosh 10/10/2012

[nbj2ee] Re: CustomerDB RESTFul WebService sample project

Sharma, Ashutosh 10/10/2012

[nbj2ee] Re: CustomerDB RESTFul WebService sample project

Jeff Rubinoff 10/11/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 25 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm