This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using the MevenIDE plugin for Netbeans it is possible to create a project with packaging type EJB. After doing so, editing the project properties allows you to select the application server to which to deploy the project to. It would be great to be able to select "New" -> "Entity Classes from Database" and then be able to select a data source from the application server. Also, creating a Persistence Unit should allow to select the application server data sources and not only the database connections that are present in Netbeans.
it's necessary to implement org.netbeans.modules.j2ee.persistence.spi.datasource.JPADataSourcePopulator and org.netbeans.modules.j2ee.persistence.spi.datasource.JPADataSourceProvider in maven projects. These are not a public api so far.
http://hg.netbeans.org/main/rev/d6323cdb74c5 I think I've got it fixed now, however can't really verify as I have no idea how to add the datasources to the app server. jpospisil, can you please check? I think some JPA related wizards shall start working now as well.
Integrated into 'main-golden', will be available in build *200901170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d6323cdb74c5 User: Milos Kleint <mkleint@netbeans.org> Log: #121150 implement j2ee persistence contract in maven modules