Alexis MP presentation for the NLJUG University in Amersfoort on May 27. Most of the presentation was about all kind of demonstrations of new V3 features (demo's not included)
12. Painless Java EE development !
• Java EE development doesn't have to be painful :)
• Incremental compile of all Java EE artifacts
• Auto-deploy of all Java EE and static artifacts
13. Session Retention
• Deployment option to maintain stateful sessions
across re-deployments
$ asadmin redeploy --properties
keepSessions=true myapp.war
• Greatly simplifies the
development paradigm.
• Integrated in NetBeans 6.5 :
18. Java EE 6 Web Profile
• A fully functional mid-sized profile for web apps
• Accepted:
> Servlet, JSP, EL, JSTL, JSF, EJB Lite, JTA, JPA,
JSR-250, Bean Validation 1.0
• Not decided yet:
> Web Beans 1.0
• Out for now:
> JAX-RS 1.1
• GlassFish v3 to ship in two distributions
> Complete Java EE 6
> Java EE 6 Web distributions
19. GlassFish Embedded
AppServer glassfish = new AppServer(8080);
glassfish.deployWar(warFile);
20. GlassFish Embedded
public class Main {
public static void main (String[] args) {
AppServer glassfish = new AppServer(8080);
glassfish.deployWar(a_useful_app);
}
}
21. GlassFish Embedded
@BeforeClass
public static void setUpClass () {
AppServer glassfish = new AppServer(8080);
glassfish.deployWar(myApplication);
}
@Test
public void pingApplication () {
...
}
22. Extending GlassFish v3
An example
• Extend GlassFish with a Spring container
> using unmodified Spring dm (OSGi)
> simple Spring beans implementing the service
• Invoke the service from a servlet
> using standard @Resource injection
• Never use a GlassFish API !
• No need to chose between Spring and Java EE
• Of course you don't have to use Spring ;)
> Grizzly extensions, plain HK2, ...
Step by step: http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_3
24. A lot more ...
• Dynamic languages : Rails, Grails, Django, ...
• Comet, Cometd/Bayeux
• Embedded API
• Full support for mod_jk, WebDAV, CGI, SSI
• Web Services Metro 1.4 (.Net 3.5)
• OpenMQ
• IPS/pkg(5)
• RESTful admin
• Monitoring
• Extensible !
25. GlassFish v3 – Practical
• Get it from http://glassfish.org
> GlassFish v3 Prelude today (web container)
> GlassFish v3 Preview by JavaOne
• Choice !
> Eclipse or NetBeans (or vi)
> Java 5 and Java 6 (Java EE 6 mandates Java 6)
> Felix or Equinox
• Download size: 26MB
> Graphical Installer, Zip version
> Community-contributed IzPack installer
• Supported product, subscriptions available