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.

Bug 91933 - Issue with persistence resource
Summary: Issue with persistence resource
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-05 21:59 UTC by liwang
Modified: 2007-06-15 04:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liwang 2007-01-05 21:59:06 UTC
Reproduce steps:
1. Install application server 9.1ee 2007-01-04 nightly build on solaris 10 sparc
machine.
2. Install NB 5.5.1 daily build 2007-01-05-0544
3. Register the application server 9.1ee as local default server
4. Create a new web application project
5. Click Server resources -> new -> file/folder -> sun resources
6. Create a persistence resource followed the wizard. It will create a JDBC
datasource and JDBc connection pool as by-products if you select create new
option for them.
7. Register all the three resources ( persistence resource, JDBC datasource,
JDBC connection pool
Now issue come out:
From application server 9.0, the persistence resource has been dropped from
admin GUI. In NB 5.5.1 Runtime tab, it is also not displayed. This is correct. 
But I cannot delete persistence resource either from NB or admin GUI, because
there is no interface for it. I cannot delete the by-products (JDBC datasource
and connection pool) either from both admin GUI and NB because they are
referenced by the persistence resource that saved in domain.xml
Comment 1 liwang 2007-01-08 23:18:10 UTC
Register Application server 9.1 PE build 30 or GlassFish V2 build 30
Comment 2 Vince Kraemer 2007-01-12 01:35:22 UTC
this also applies to 5.5/v1u1, too.

needs to be addressed in 6.0
Comment 3 Nitya Doraisamy 2007-06-15 04:48:15 UTC
Removed persistence resource wizard from plugin wizards.
http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv/src/org/netbeans/modules/j2ee/sun/appsrvapi/layer.xml?r1=1.4&r2=1.5

Persistence resource has been deprecated and jdbc resource can be used in its place.
Comments regarding this deprecation from server's persistence team below,

"This is a usability improvement that saves user from creating a persistence resource. So, to migrate to  use jdbc
resource, all you need to do is to replace the reference to persistence resource with the reference to jdbc resource.
For example if your application is using a persistence resource "jdo/pmf" which is backed by jdbc resource
"jdbc/oracle", just replace "jdo/pmf" with "jdbc/oracle" in your sun-ejb-jar.xml "