Wednesday Apr 16, 2014

JSON Schema

We often tends to compare JSON against XML, i.e. JSON is simple, XML is not so simple. JSON is light, XML is heavyweight, etc. But there are still reasons to prefer, in certain cases, XML over JSON : e.g. transformation capability, XML extensibility, validation, ...

A question I sometime get when I talk about JSON-P support in Java EE is what about Schema? The works around JSON Schema standardisation is progressing but right now, this is still a draft specification. Nevertheless, this is something that you can already start to use. For example, this post shows how-to generate JSON Schema with Eclipse Link MOXy today.

As said earlier, the JSON Schema space is evolving, there are works that needs to be done at various levels but we can expect, over-time, an improved support for JSON Schema in the Java ecosystem. 

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.


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 ?

Friday Jan 06, 2012

Tab Sweep - JSON, OSGi, GlassFish+NetBeans experience, JAXB and JodaTime, file uploads & more

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

Radio Receiver

JSON to Java with JDK6 (Julien)
What does the future hold for OSGi without leader Peter Kriens? (JAXenter)
JavaCloudGuy: Glassfish (Java EE 6) is now available as option in #cumulogic (Twitter)
JAXB and Joda-Time: Dates and Times (Blaise)
JAX-RS Tip of the Day: Using YUI2 and YUI3 DataTables with Jersey and jQuery (John)
JAX-RS @MatrixParam example (mkyong)
First experiences and getting started with GlassFish 3.1 and NetBeans 7.x – it’s a breeze (Lucas)
Maven's WAR Overlay: What are WAR Overlays? (DZone)
Book Review for "Java EE 6 with GlassFish Application Server" (Rick)
Managing unmanaged beans in CDI (Nicolas)
Using Bean Validation together with ExtVal in JPA and JSF (Edwin)
Java EE 6 using WebLogic 12c and NetBeans (Video) (Arun)
Spark, A micro Web Framework (
Multiple File Upload Examples (John Yeary)
Released: NetBeans Platform 7, The Book (Geertjan)
Java 7: Understanding the Phaser (Niklas)
Where's my log file? (Nigel @ Open Messaging)
Sample: Java EE 6 + Wicket + NetBeans + GlassFish + MySQL (Geertjan)
Using Jsp in a Jersey JAX-RS RESTful application (François)
How to change the Glassfish server log level from command line (François)

Saturday Aug 30, 2008

... Metro and JAXB, Sahoo, NetBeans 6.5, SpringSource, OpenDS, and Wonderland and Blender

A compilation of today's news of interest:

Radio Receiver Icon

From Jitu, a description of how to use JAXBContext in Metro.

From the SDN Team, it is Sahoo's turn to have his 15 Minutes of Fame; check out Janice's Interview where they cover many topics, from working from India, to OSGi.

Davis has a short note showing how to get started with a Servlet App using GFv3 Prelude in NetBeans 6.5.

The ever-observant Adam asks whether SpringSource is Working on EJB 3.1. Not sure if he is reading a bit too much into the tealeaves, or whether somebody had an oops...

From OpenDS community, Terry reports on his OpenDS Access Log Analyzer WebApp, intended for a future putback into OpenDS. And, a very complimentary testimonial about the ease of installation of OpenDS from KR in his OpenDS in 5 Minutes.

And, from Wonderland they have started creating a new, high quality, public world (see WonderBlog and Angad). A nice part is that they are going to be using Blender for the graphics. Blender is an open source tool that seems to be gaining adoption, the results are very good - see for instance the trailer for The Big Buck Bunny. Blender is also a Sun offering at Network.Com/Apps/Blender (thanks to Kevin for the tip).

Monday Jul 07, 2008

WebLogic is Oracle's Strategic AppServer - Metro Included


I was "on vacation" last week, so the news are a bit late, but the news on July 1st confirmed the rumor: Oracle WebLogic Server is Oracle's "Strategic AppServer" - see the articles at The Register and InfoWorld. This comes on top of recent surveys on Oracle/BEA usage: SOA-Talk and The Register.

A consequence of this move is that Metro is now used Oracle's main AppServer, increasing the adoption of GlassFish's WebServices stack. The same applies to JAXB RI; and, in that case, I know of no mainstream AppServer that uses a different implementation!

Wednesday Jun 04, 2008

More Java EE 6 Specs - JAXB 2.2 Plans


More progress towards JavaEE 6 with a proposal for JAXB 2.2. This will be a narrow maintenance release and Kohsuke's last JAXB spec as he transfers to his new job.

The implementation will be at JAXB@GlassFish and will be a two-in-one deal, supporting both JAXB 2.1 and JAXB 2.2. Check out Kohsuke's Announcement, and the Detailed Proposal.

Moving forward, JAXB's leadership will be in good hands as it will transfer to MartinG - contratulations! And, btw, do you already know how to juggle? :-)

Saturday May 17, 2008

JAXB 2.1.7 Released

Radio Receiver Icon

From last week, mostly to keep a record of milestones in community projects: JAXB RI 2.1.7 Now Available. This bug-fixing release matches the version bundled in Metro 1.2.

Thursday Jan 31, 2008

Presentation on Advanced JAX-WS

parleys logo

As a follow-up to a previous nice JAX-WS presentation, Stijn Van den Enden's "JAX-WS, beyond the basics" presentation is now available from

Stijn does a good job at explaining JAX-WS handlers, JAXB customization, Dispatch/Provider API (although his example may not feel RESTful to the JAX-RS crowd), some best practices and more in a very didactic and easy to follow presentation. Everything said and presented there applies to the Metro Web Services stack that is part of GlassFish v2 (btw, Stijn is reported to be a happy GlassFish user).

No wonder this is the best-rated program on The only down side is that I don't see the PDF available on the web site anywhere...

Wednesday Dec 19, 2007

New JAXB Release (2.1.6)

Radio Receiver Icon

New JAXB RI Release (2.1.6) available

Kohsuke's Announcement.
• Release ChangeLog.

Sunday Nov 11, 2007

Week Highlights - GFv3 Schedule, IPS, Governance Board, JavaFX, ...

Red Hat Logo

• How-Tos: Clustering, Launchd, Metro & JAXB and GF Profiles
• Community - Interviews, RedHat and OpenJDK and Governance Board
• Future Releases - IPS in UC2, GFv3 Schedule and Sailfin Tooling
• Adoption Indicators - New GeoMap, Nuxeo Core and GF and Geronimo
• Web.Next - JavaFX, jMaki Charting, Bayeux/Comet and JAX-RS
• Events - IJTC
• Try this: GlassFish.ORG

Sunday Nov 04, 2007

Updated Documentation for Metro and JAXB

Radio Receiver Icon

From Kohsuke:

Metro and JAXB users guide gets syntax coloring.

Monday Sep 03, 2007

HowTo - JAXB for simple Java-XML serialization

Informational Sign

A tip from Teera:
JAXB for simple Java-XML serialization

Sunday Jul 22, 2007

JAXB News - New Release, Release Frequency, Use in JBoss

Blackboard with Bus Time Table

The JAXB team recently released a new version, JAXB 2.1.4. In the usual sedimentation process, this release will be incorporated into the next GlassFish release but it can also be used directly and Kohsuke is asking feedback on the current 3 month cycle.

JAXB RI is the JAXB implementation - check some of our Reports on its Adoption. A recent example is in Kohsuke's report on JBoss's usage of one of the RI's extensibility points.

Monday Apr 16, 2007

New JAXB and JAX-WS Releases

Ticker Machine

Two new releases from the GlassFish team, both integrated in GlassFish v2 beta2, due early next month, in time for GlassFish Day and JavaOne.

JAX-WS 2.1.1 is a release candidate for JAX-WS 2.1.

JAXB 2.1.3 is mostly a bug-fixing release - check the list of changes here.

The GlassFish Web Services stack is being adopted by many other projects (e.g. WebLogic Server 10); we believe it has the best performance in the market (earlier comparison, but stay tuned for a nice additional improvement) and it is very extensible (e.g. see JSON support).

Tuesday Feb 06, 2007

ClassLoader Magic - JAX-WS/JAXB 2.1 on JDK6 Without Using Endorsed Standards

Picture with ClassLoader's Magic

Since Java SE 6 includes JAX-WS 2.0 and JAXB 2.0 the straight-forward way to upgrade to the updated maintenance specifications requires using endorsed standards. But Kohsuke has figure out a way to apply some ClassLoader Magic so that this is not necessary. The result is a transparent experience.

ClassLoaders have always been part of the trickiest part of the Java platform; see for example this report from the First JavaOne; I'm looking forward to having a moment to read carefully Kohsuke's description.