New GlassFish Integration Feature: Resource Persistence
By vbkraemer on Jun 22, 2007
Folks that have used NetBeans to develop J2EE and Java EE modules and applications have been able to:
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 availableI 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.