New GlassFish Integration Feature: Resource Persistence

Folks that have used NetBeans to develop J2EE and Java EE modules and applications have been able to:

very easily for quite some time. When the user finished the dialogs for these actions many different files were affected. This is especially true of modules that used J2EE 1.4 and prior. While the changes between J2EE 1.4 and Java EE 5 have eliminated many of the additional files, the IDE still needs to know what resources need to be registered when the application is deployed.

This information has been persisted into the 'Server Resources' folder of J2EE and Java EE projects in the past, as files with the extension '.sun-resource'. Each of these files conformed to one of the sun-resource_1_X.dtd (like sun-resources_1_2.dtd and were used to persist the resource definitions for a project. When a project is deployed, the files were parsed and their data is used to register new or update existing resources on the server.

While this method has worked, we had heard that the server implementation was going to start leveraging a file based on the sun-resource DTD to register resources. So, we changed the storage format for resources to use a single file instead of multiple files.

For folks that have existing projects, we have kept the loader for the sun-resource files. Many of the old actions supported on these files have been disabled (since they are deprecated). The loader also takes care of migrating the content of your individual dot-sun-resource files into a single sun-resources.xml file automatically.

Screenshots available
I needed to do a presentation of new integration features to some of the teams that work on NetBeans within Sun this morning. I included a couple screenshots related to this topic. I figured I would update this entry with a pointer to that presentation.

Comments:

Post a Comment:
Comments are closed for this entry.
About


Vince Kraemer writes the entries in this blog.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
News
Blogroll

No bookmarks in folder

automarks