Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

netbeans IDE: how to delete data source

I have a Java Web application that contains a Persistence unit. In this persistence unit I can select an existing data source or create a new data source. When I run this web application on the build in glassfish server, the data source is created on the build in glassfish server. Also a connection pool is created.

I can delete the data source and / or connection pool on the build in glassfish server. This does not delete the data source from the Netbeans IDE. When I run the web application again, the data sources and connection pools are recreated.

How can I delete the data source and connection pools in the netbeans IDE? I can't find this functionality anywhere.

I want to delete the existing data sources and connection pools because I have an problem with a new data source / connection pool. To make sure that there is no mix up happening somewhere between the data sources / connection pools I want to remove the old ones that I am not using anymore.

like image 385
WillamS Avatar asked Mar 07 '12 13:03

WillamS


1 Answers

You have to go to services window (Ctrl + 5) and expand Severs > GlassFish Server (version) > Resources > JDBC Resources and locate the unnecessary data sources. Right click and select Unregister. This will remove appearing it in all the Netbeans Projects.

like image 67
Buddhika Ariyaratne Avatar answered Sep 22 '22 02:09

Buddhika Ariyaratne