New GlassFish 3.1 Screencast: Application-scoped resources
[URL="http://www.youtube.com/watch?v=jlFRbN2Yb3g"] [IMG]http://blogs.sun.com/theaquarium/resource/AppScopedResouces-small.png[/IMG] [/URL] This [URL="http://www.youtube.com/watch?v=jlFRbN2Yb3g"]short screencast[/URL] demonstrates the new application-scoped resources feature available starting with Milestone 4 of GlassFish 3.1 (the demo used [URL="http://download.java.net/glassfish/3.1/promoted/"]promoted build[/URL] #17). Such resources are bound to a module (war, ear, ejb) and as such they are created on deploy and destroyed when the module is undeployed. They are defined in a file called glassfish-resources.xml ([URL="http://glassfish.org/dtds/glassfish-resources_1_5.dtd"]schema-constrained[/URL]) and shipped with the archive.
These resources are available only from the application they "belong" to which offers some level of security, more configuration flexibility (no resource name collision and different settings for different applications) as well as some level of performance isolation. They overall provide a single click/single deploy
More details such as full demo description, application-scoped vs. module-scoped, location of glassfish-resources.xml and more are available from [URL="http://wikis.sun.com/display/GlassFish/Gfv31ConnectorsJDBC#Gfv31ConnectorsJDBC-4.1.3Applicationscopedresources"]Feature one-pager[/URL] (GlassFish Wiki) and [URL="http://wikis.sun.com/display/GlassFish/Application+Scoped+Resources+and+JDBC+Monitoring+Features+for+MS4"]Application Scoped Resources[/URL] (Demo instructions).
[url=http://blogs.sun.com/theaquarium/entry/new_screencast_application_scoped_resources]Read More about [New GlassFish 3.1 Screencast: Application-scoped resources...[/url]