Monday Dec 16, 2013

Java EE@Pune JUG

Pune JUG organized a meetup at the Symbiosis Institute of Computer Studies and Research (SICRSR) college campus on December 14th. Led by Harshad Oak (Java Champion and organizer of the IndicThreads conference), Pune JUG is the oldest JUG in India and boasts a vibrant developer community. This month's meetup was focused on the Java EE 7 platform and the ecosystem that is building up around it. The meeting was led by Oracle India's own Vijay Nair. Vijay is a good friend and a lead developer with Oracle's FLEXCUBE development group in India. Among many other things like evangelizing Java EE at local Java user groups and conferences, Vijay contributes heavily to the Cargo Tracker Java EE Blue Prints project in his spare time.

 The event saw an attendance of close to around 100 people with a lot of demos/code and high quality interactions with the audience. Vijay presented no less than three sessions at the meetup:

  • JavaEE.Next(): Java EE 7, 8, and Beyond - This is basically our flagship talk at the moment. The talk briefly covers the evolution of the platform, details the changes in Java EE 7 and invites developers to help shape Java EE 8. The materials for the talk is posted here.
  • Android and iOS Development with Java EE 7 - This was a fairly popular technical session at JavaOne San Francisco 2013 led by me, Ryan Cuprak and Bala Muthuvarathan. The session demonstrates how Java EE 7 acts as an excellent platform for building "headless" back-ends for native mobile applications with REST and WebSocket as the client communication protocols. The materials for the talk is posted here. The code is posted on GitHub.
  • Using NoSQL with JPA, EclipseLink and Java EE - This session explores the current state of the NoSQL landscape and how Java EE can be utilized to access NoSQL solutions such as Oracle NoSQL, MongoDB, Cassandra, etc utilizing JPA style facades or plain CDI. The materials for the talk is posted here. The code is posted on GitHub.

Overall, this was a very positive experience with developers giving two thumbs way up to the Java EE 7 platform!

Friday Jun 21, 2013

JAX-RS 2.0, JTA 1.1, JMS 2.0 Replay: Java EE 7 Launch Webinar Technical Breakouts on YouTube


As stated previously (here) (here), the On-Demand Replay of Java EE 7 Launch Webinar is already available. You can watch the entire Strategy and Technical Keynote there, and all other Technical Breakout sessions as well.

We are releasing the next set of Technical Breakout sessions on GlassFishVideos YouTube channel as well. In this series, we are releasing JAX-RS 2.0, JTA 1.1, and JMS 2.0.

Here's the JAX-RS 2.0 session:



Here's the JTA 1.1 session:



Here's the JMS 2.0 session:



Enjoy watching them over the next few days before we release the next set of videos!

And don't forget to download Java EE 7 SDK and try numerous bundled samples.

Friday Jul 06, 2012

Jersey 2 Integrated in GlassFish 4

JAX-RS 2.0 has released Early Draft 3 and Jersey 2 (the implementation of JAX-RS 2.0) released Milestone 5.

Jakub reported that this milestone is now integrated in GlassFish 4 builds. The first integration has basic functionality working and leaves EJB, CDI, and Validation for the coming months.

Jersey 2.0 in GlassFish 4

TOTD #182 explains how to get started with creating a simple Maven-based application, deploying on GlassFish 4, and using the newly introduced Client API to test the REST endpoint.

GlassFish 4 contains Jersey 2 as the JAX-RS implementation. If you want to use Jersey 1.1 functionality, then Martin's blog provide more details on that. All JAX-RS 1.x functionality will be supported using standard APIs anyway. This workaround is only required if Jersey 1.x functionality needs to be accessed.

Here are some pointers to follow

Provide feedback on Jersey 2 to users@jersey.java.net and JAX-RS specification to users@jax-rs-spec.java.net.

Friday Jun 08, 2012

JAX-RS 2.0 Early Draft - Third Edition Available

JAX-RS 2.0 Early Draft Third Edition is now available. This updated draft include new samples explaining the features and clarifications in content-negotiation, discovery of providers, client-side API, filters and entity interceptors and several other sections.

ALT_DESCR

Provide feedback to users@jax-rs-spec.

Jersey 2.0, the Reference Implementation of JAX-RS 2.0, released their fourth milestone a few days ago as well. Several features have already been implemented there. Note, this is an early development preview and several parts of the API and implementation are still evolving.

Feel like trying it out? Simply go to Maven Central (of course none of this is production quality at this point). The latest JAX-RS Javadocs and Jersey 2.0 API docs are good starting points to explore. And provide them feedback at users@jersey.java.net or @gf_jersey.

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 Mar 28, 2012

Jersey 2.0 Milestone 2 Now Available

Jersey 2.0 milestone 2 is now available. It builds upon the first milestone and adds several new features such as server-side asynchronous processing, server-side content negotiation, improved JAX-RS parameter injection, and several others.

ALT_DESCR

The REST endpoints can be published on Java SE HTTP Server, Grizzly 2 HTTP container, and some basic Servlet-based deployments. It also provides HTTPURLConnection-based client API implementation. Read about these and more about what's new in Marek's detailed post. Of course this is also the future reference implementation for JAX-RS 2.0.

Feel like trying it out? Simply go to Maven Central (of course none of this is production quality at this point). The latest JAX-RS Javadocs and Jersey 2.0 API docs are good starting points to explore. And provide them feedback at users@jersey.java.net.

Thursday Feb 09, 2012

A status on JAX-RS 2.0. Early Draft.

With the Early Draft of JAX-RS 2.0 review period closed for a little while now, here's Arun's walk through the technology's new and improved features.

ALT_DESCR

The Client API seems to be a very popular feature and one that seems pretty stable at this point. Filters and Handlers is another set of new features enabling interception of requests and responses while Hypermedia, a founding principle for REST, is better supported. JAX-RS 2.0 also offers the ability to validation parameters with BeanValidation, introduces asynchronous processing (returning Future objects on the client side) and finally better connection negotiation. Read all about it here.

JAX-RS has become an important component of the Java EE platform and the cloud theme going forward is only making it even more relevant. Check out this earlier post for Marek's (co Spec Lead on JAX-RS 2.0) take on where the JSR stands.

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 (spark.com)
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)

Monday Nov 21, 2011

Marek's JAX-RS 2.0 content from Devoxx 2011

Marek Potociar, one of the two co-spec leads for the upcoming JAX-RS 2.0 had a very well-attended session at Devoxx and wrote a blog post about it detailing his conference experience (1st time at Devoxx) and running through the new features of the specification.

A link to slides is also included in his post.

ALT_DESCR

The work by the expert group seems very solid at this point as you can read for yourself in details in the recently published early draft document.

You can follow the remaining work between now and the middle of new year on the specification project pages on java.net.

Sunday Oct 16, 2011

JAX-RS 2.0 Progress and Client API

One of the very well attended set of sessions and highly anticipated Java EE 7 technology is JAX-RS 2.0 (JSR 339), a specification that now has an early draft awaiting publication.

Co-spec lead Santiago Pericas-Geertsen has started a series of blogs on important features, starting with the Client API.

ALT_DESCR

As expected, this defines a Client class and a builder pattern for better readability. Make sure you read Santiago's piece to understand what Message Body Writers (or MBWs) are and how configurable this API is meant to be.

Sunday Feb 06, 2011

Everyone talking about JAX-RS and Jersey

There's been a flurry of JAX-RS and Jersey posts recently on the blogosphere. First, Andy Gibson walks you through the steps to create a RESTful resource available via GET's and POST's with some JPA in the mix and full code included.

Then, Gin-Lung Cheng offers another post decomposing the steps into : define the URLs, define the data representation, configure Jersey, create the JAX-RS resource classes and test them.

ALT DESCR

Celinio's post covers JAX-RS in Apache CXF, while Craig Ringer discusses how to use Jersey 1.5 extensions to handle file uploads. This involves using the jersey-multipart module and is discussed in the context of JSF 2.0.

Update: WebLogic's very own Steve Button also has a piece on Using JAX-RS with WebLogic Server 10.3.4 (using NetBeans). Check it out!

While we're on the JAX-RS and Jersey topic, Marek Potociar will be the new lead for Jersey and a co-spec lead on JAX-RS 2.0, effectively replacing Paul Sandoz who has decided to pursue another exciting opportunity. Thanks for everything Paul, you've really made a difference! Welcome Marek!

Tuesday Jan 25, 2011

JCP votes are in, work on JPA 2.1 and JAX-RS 2.0 JSRs can start

JCP votes

The voting period for the newly proposed JPA 2.1 and JAX-RS 2.0 JSRs (both tentatively scheduled for inclusion in Java EE 7) has now ended and the results are identical for both JSRs - 11 YES votes, 0 NO vote, and two EC members not casting in their vote.

You can find the details on these respective pages: JSR 338/JPA 2.1 voting results, JSR 339/JAX-RS 2.0 voting results, including the few comments made by some of the voters.

The expert groups will now be forming and each JSR page has a link (JAX-RS 2.0 / JPA) to join them if you are interested. This earlier post has good background on the process (and of course there's news from the source).

Expect more JCP news in the next few weeks (elections, more JSRs submitted, etc...).

Thursday Jan 21, 2010

Jersey 1.1.5 out the door - Atmosphere, GAE, tracing, and docs

Jersey 1.1.5

As advertised (and discussed) on the USERS mailing list earlier this month, Jersey 1.1.5 (an update to the JAX-RS 1.1 implementation) has now been released.

This new release works on Goggle App Engine, includes Hudson-inspired tracing and will align with the also now released Atmosphere 0.5 release. Many samples are also included, some of which come from Bill Burke's (JBoss RESTeasy lead) book.

You can get to Jersey 1.1.5 by reading the instructions on Paul's blog, or simply by waiting for GlassFish v3's update center to host it (wait for the notifier to ping you or check the content of the repository).