Thursday Apr 12, 2012

EclipseLink Moxy Provider for JAX-RS and JAX-WS

EclipseLink MOXy is a JAXB provider bundled in GlassFish 3.1.2. In addition to JAXB RI, it provides XPath Based Mapping, better support for JPA entities, native JSON binding and many other features.

Learn more about MOXy and JAXB examples on their wiki.

ALT_DESCR

Blaise blogged about how MOXy can be leveraged to create a JAX-WS service.You just need to provide data-binding attribute in sun-jaxws.xml and then all the XPath-based mapping can be specified on JAXB beans.

MOXy can also be used as JAX-RS JSON provider on server-side and client-side.

How are you using MOXy in your applications ?

Wednesday Apr 11, 2012

Concurrency Utilities for Java EE 6: JSR 236 Rebooting

JSR 166 added support for concurrency utilities in the Java platform. The JSR 236's, a.k.a Concurrency Utilities for Java EE, goal was to extend that support to the Java EE platform by adding asynchronous abilities to different application components. The EG was however stagnant since Dec 2003.

Its coming back to life with the co-spec lead Anthony Lai's message to the JSR 236 EG (archived here).

Concurrent Lanes

The JSR will be operating under JCP 2.8's transparency rules and can be tracked at concurrency-spec.java.net. All the mailing lists are archived here. The final release is expected in Q1 2013 and the APIs will live in the javax.enterprise.concurrent package.

Please submit your nomination if you would like to join this EG.

Tuesday Apr 10, 2012

Java EE 6 and Maven 3 using CLI

NetBeans and Eclipse provide tools, templates, wizards and code generators for building a Java EE 6 application. They both also allow a Java EE 6 Maven project to be created. In his recent screencast, Adam Bien explained how a Java EE 6 project can be easily created at command-line using Maven 3.

Java EE 6 using Maven 3 Screencast

The screencast walks through the process of creating the project using command-line. The created project has no dependency on NetBeans and GlassFish but can still be opened in NetBeans and deployed on GlassFish.

A complete list of Adam's screencasts are available here. Tons of similar videos are also available on GlassFishVideos channel.

Monday Apr 09, 2012

JPA and NoSQL using EclipseLink - MongoDB supported

EclipseLink 2.4 has added JPA support for NoSQL databases, MongoDB and Oracle NoSQL are the first ones to make the cut. The support to other NoSQL database can be extended by adding a EclipseLink EISPlatform class and a JCA adapter.

EclipseLink and NoSQL

A Java class can be mapped to a NoSQL datasource using the @NoSQL annotation or <no-sql> XML element. Even a subset of JPQL and the Criteria API are supported, dependent on the NoSQL database's query support. The connection properties are specified in "persistence.xml".

A complete sample showing how JPA annotations are mapping and using @NoSQL is explained here. The MongoDB-version of the source code can also be checked out from the SVN repository.

EclipseLink 2.4 is scheduled to be released with Eclipse Juno in June 2012 and the complete set of supported features is described on their wiki. The milestone and nightly builds are already available.

Do you want to try with GlassFish and let us know ?

Sunday Apr 08, 2012

Unlock the Java EE 6 Platform using NetBeans 7.1

NetBeans IDE provide tools, templates, and code generators that can be used for the specifications that are part of the Java EE 6 Platform.

Key to the Platform

In a recent article Geertjan builds a simple end-to-end application using the standard Model-View-Controller architecture. It uses Java Persistence API 2, Servlets 3, JavaServer Faces 2, Enterprise Java Beans 3.1, Context and Dependency Injection 1.0, and Java API for RESTful Web Services 1.1 showing the complete stack.

A self-paced and an extensive hands-on lab covering this article and much more is also available here. A video (47-minutes) explaining how to build a similar application can be viewed here.

Friday Apr 06, 2012

Tab Sweep: FacesMessage enhancements, Look up thread pool resources, JQuery/JSF integration, Galleria, ...

Recent Tips and News on Java, Java EE 6, GlassFish & more :

Radio Receiver

Fixing remote GlassFish server errors on NetBeans (Igor Cardoso)
FacesMessage Enhancements (PrimeFaces)
How to create and look up thread pool resource in GlassFish (javahowto)
Jersey 1.12 is released (Jakub Podlesak)
VisualVM problem connecting to monitor Glassfish (Raymond Reid)
JSF 2.0 JQuery-JSF Integration (John Yeary)
JDBC-ODBC Bridge Example (John Yeary)
The Java EE 6 Example - Gracefully dealing with Errors in Galleria - Part 6 (Markus Eisele)
Logout functionality in Java web applications (JavaOnly)
LDAP PASSWORD POLICIES AND JAVAEE (Ricky's Hodgepodge)
Java User Groups Promote Java Education (java.net Editor's Daily Blog)
JavaEE Revisits Design Patterns: Aspects (Interceptor) (Developer Chronicles)
Java EE 6 Hand-on Workshop @ IIUI (Shahzad Badar)
javaee6-crud-example (Arjan Tims)
Sample CRUD application with JSF and RichFaces (Mark van der Tol)
5 useful methods JSF developers should know (Java Code Geeks)

Here are some tweets from this week ...

Almost 9000 Parleys views at the #JavaEE6 #Devoxx talk I did with @BertErtman. Not even made available for free yet! #JavaEE6 is hot :-)
Sent three proposals for ├średev, about #JavaEE6, #OSGi and a case study about Leren-op-Maat (OSGi in the cloud) together with @m4rr5
[blog] The Java EE 6 #Example - Gracefully dealing with #Errors in #Galleria - Part 6 http://t.co/Drg1EQvf #javaee6
Tomorrow, there is a session about Java EE6 #javaee6 at islamia university #bahawalpur under #pakijug.about 150 students going to attend it.

Thursday Apr 05, 2012

Contribute to GlassFish in Five Different Ways

GlassFish has a lot to offer from Java EE 6 compliance, HA & Clustering, RESTful administration, IDE integration and many other features. However a recent blog by Markus, a GlassFish Champion, said something different:

Ask not what GlassFish can do for you, but ask what you can do for GlassFish!

JFK Inaugural Address

Markus explained how you can easily contribute to GlassFish without being a programming genius. The preparatory steps are simple:

• First of all: Don't be afraid!
• Prepare yourself - Get up to speed!

And then specific suggestions with cross-referenced documents:

• Review, Suggest and Add Documentation!
• Help Others - be a community hero!
• Find and File Bugs on Releases!
• Test-drive Promoted Builds and Release Candidates!
• Work with Code! Get things done!

Are you ready to contribute to GlassFish ? Read more details in Markus's blog.

Wednesday Apr 04, 2012

JSF 2.2 Update from Ed Burns

In a recent interview the JavaServer Faces specification lead, Ed Burns, gave an update on JSF 2.2. This is a required component of the Java EE 7 platform.

The work is expected to wrap up by CY 2012 and the schedule is publicly available. The interview provide an update on how Tenant Scope from CDI and multi-templating will be included. It also provide details on which HTML 5 content categories will be addressed.

Ed Burns

The EG discussions are mirrored at jsr344-experts@javaserverfaces-spec-public. You can also participate in the discussion by posting a message to users@javaserverfaces-spec-public. All the mailing lists are open for subscription anyway and JIRA for spec provide more details about features targeted for the upcoming release.

A blog at J-Development provide complete details about the new features coming in this version. And an Early Draft of the specification is available for some time now.

Tuesday Apr 03, 2012

Tuning GlassFish for Production

The GlassFish distribution is optimized for developers and need simple deployment and server configuration changes to provide the performance typically required for production usage. The formal Performance Tuning Guide provides an explanation of capacity planning and tuning tips for application, GlassFish, JVM, and the operating system.

ALT_DESCR

The GlassFish Server Control (only with the commercial edition) also comes with Performance Tuner that optimizes the runtime for optimal throughput and scalability.

And then there are multiple blogs that provide more insights as well:

Optimizing GlassFish for Production (Diego Silva, Mar 2012)
GlassFish Production Tuning (Vegard Skjefstad, Nov 2011)
GlassFish in Production (Sunny Saxena, Jul 2011)
Putting GlassFish v3 in Production: Essential Surviving Guide (JeanFrancois, Nov 2009)
A GlassFish Tuning Primer (Scott Oaks, Dec 2007)

What is your favorite source for GlassFish Performance Tuning ?

Monday Apr 02, 2012

Welcome Stephen Chin and James Weaver to Oracle!

Stephen Chin and James Weaver - the two JavaFX "rockstar" speakers from the community are joining Oracle's Java Evangelist Team. Both of them have co-authored a recently released book - Pro Java FX 2 and are well known for their passion to promote JavaFX.

ALT_DESCR ALT_DESCR

This shows Oracle's continued commitment to Java and JavaFX. Jim blogs at javafxpert.com and can be reached on @JavaFXpert. Steve blogs at and can be reached at steveonjava.com and can be reached at @steveonjava. You'll have an opportunity to meet and engage with them at different community facing activities.

Welcome Stephen and James to Oracle!

Sunday Apr 01, 2012

Reminder: JavaOne Call For Papers Closing April 9th, 11:59pm

JavaOne 2012 Call For Papers is closing on April 9th. Make sure to get your submissions in time and make the reviewers job exciting. Submit now!

ALT_DESCR

Read tips for paper submission here and an insight into the review process and more tips here.

The conference will be held in San Francisco from September 30th to October 4th, 2012. And between now and this JavaOne in San Francisco, the conference is also going to Japan, Russia, and India.