Monday Nov 25, 2013

Asynchronous clients integration with Java EE 7

"The client is not always right." (Enzo Ferrari)

Integrating clients with a back-end server may pose some challenges as it involve a mix between asynchronous and synchronous behaviour and data exchange.

The 'communication related APIs' of Java EE 7 APIs have all some asynchronous capabilities, e.g. JAX-RS 2.0, WebSocket 1.0 , JMS 2.0, Servlet 3.1, JAX-WS 2.2. In his 'JavaFX Integration Strategies' article, Adam Bien explain some strategies to easily integrate JavaFX clients with a back-end using some of the asynchronous capabilities of Java EE 7. The article also illustrate how to push information from the server to the client using WebSocket.

The article uses JavaFX as the client side UI framework but the patterns and strategies described are not necessarily JavaFX specific and are easily applicable to almost any types of client. As Adam says "REST and JSON become the new, least common denominator for communication with HTML5 clients, Java applications, and even low-level devices.". Finally, the article also illustrate how Java SE 8 Lambda leads to a cleaner code.

Monday Oct 01, 2012

The first day of JavaOne is already over!

In the past Sunday used to be a more relaxing day with ‘just’ some JavaOne activities going on. Sunday used to be a soft day to prepare yourself for an exhausting week. This is now over as JavaOne is expanding; Sunday is now an integral part of the conference. One of the side effect of this extra day is that some activities related to JavaOne and OpenWorld such as MySQL Connect are being push to start a day earlier on Saturday (can you spot the pattern here?).

On the GlassFish front, Sunday was a very busy day! It started at the Moscone Center with the annual GlassFish Community Event where the Java EE 7 and GF 4 roadmaps were presented and discussed. During the event, different GlassFish users such as ZeroTurnaround (the JRebel guys), Grupo RBS and IDR Solutions shared their views on GF, why they like GF but also what could be improved. The event was also a forum for the GF community to exchange with some of the key Java EE / GlassFish Oracle Executives and the different GF team members.

The Java Strategy Keynote and the JavaOne Technical Keynote were held in the Masonic Auditorium later in the after-noon. Oracle executives have presented the plans for Java SE, Java FX and Java EE. Here are some personal takeaways from those keynotes.

Modularity
Modularity is a big deal. We know by now that Project Jigsaw will not be ready for Java SE 8 but in any case, it is already possible (and encouraged) to test Jigsaw today.
In the future, Java EE plan to rely on the modularity features provided by Java SE, so Project Jigsaw is also relevant for Java EE developers.
Shorter term, to cover some of the modular requirements, Java SE will adopt the approach that was used for Java EE 6 and the notion of Profiles. This approach does not define a module system per say; Profiles is a way to clearly define different subsets of Java SE to fulfill different needs (e.g. the full JRE is not required for a headless application). The introduction of different Profiles, from the Base profile (10mb) to the Full Profile (+50mb), has been proposed for Java SE 8.

Embedded
Embedded is a strong theme going forward for the Java Plaform. There is now a dedicated program : Java Embedded @ JavaOne

Java by nature (e.g. platform independence, built-in security, ability easily talks to any back-end systems, large set of skills available on the market, etc.) is probably the most suited platform for the Internet of Things.

You can quickly be up-to-speed and develop services and applications for that space just by using your current Java skills. All you need to start developing on ARM is a 35$ Raspberry Pi ARM board (25$ if you are cheap and can live without an ethernet connection) and the recently released JDK for Linux/ARM. Obviously, GlassFish runs on Raspberry Pi.

If you wan to go further in the embedded space, you should take a look Java SE Embedded, an optimized, low footprint, Java environment that support the major embedded architectures (ARM, PPC and x86).

Finally, Oracle has recently introduced Java Embedded Suite, a new solution that brings modern middleware capabilities to the embedded space. Java Embedded Suite is an optimized solution that leverage Java SE Embedded but also GlassFish, Jersey and JavaDB to deploy advanced value added capabilities (eg. sensor data filtering and) deeper in the network, closer to the devices.

JavaFX
JavaFX is going strong! Starting from Java SE 7u6, JavaFX is bundled with the JDK. JavaFX is now available for all the major desktop platforms (Windows, Linux and Mac OS X). JavaFX is now also available, in developer preview, for low end device running Linux/ARM. During the keynote, JavaFX was shown running on a Raspberry Pi!

And as announced during the keynote, JavaFX should be fully open-sourced by the end of the year; contributions are welcome!.

There is a strong momentum around JavaFX, it’s the ideal client solution for the Java platform. A client layer that works perfectly with GlassFish on the back-end. If you were not convince by JavaFX, it’s time to reconsider it!

As an old Chinese proverb say “One tweet is worth a thousand words!”

HTML5, Project Avatar and Java EE 7
HTML5 got a lot of airtime too, it was covered during the Java EE 7 section of the keynote. Some details about Project Avatar, Oracle’s incubator project for a TSA (Thin Server Architecture) solution, were diluted and shown during the keynote.

On the tooling side, Project Easel running on NetBeans 7.3 beta was demo’ed, including a cool NetBeans debugging session running in Chrome!

HTML 5, Project Avatar and Java EE 7 deserve separate posts...

Feedback
We need your feedback! There are many projects, JSRs and products cooking : GlassFish 4, Project Jigsaw, Concurrency Utilities for Java EE (JSR 236), OpenJFX, OpenJDK to name just a few. Those projects, those specifications will have a profound impact on the Java platform for the years to come! So if you have the opportunity, download, install, learn, tests them and give feedback! Remember, you can "Make the Future Java!"


Finally, the traditional GlassFish Party at the Thirsty Bear concluded the first JavaOne day. This party is another place where the community can freely exchange with the GlassFish team in a more relaxed, more friendly (but sometime more noisy) atmosphere. Arun has posted a set of pictures to reflect the atmosphere of the keynotes and the GlassFish party.


You can find more details on the others Java EE and GlassFish activities here.

Tuesday Jun 19, 2012

LightView: JavaFX 2 real-time visualizer for GlassFish

Adam Bien launched LightFish, a light-weight monitoring and visualization application for GlassFish. It comes with a introduction and a screencast to get you started.

The tool provides monitoring information about threads and memory (such as heap size, thread count, peak thread count), transactions (commits and rollbacks), HTTP sessions, JDBC sessions, and even "paranormal activity".

ALT_DESCR

In a recently released first part of a tri-part article series at OTN, Adam explains how REST services can be exposed as bindable set of properties for JavaFX. The article titled "Enterprise side of JavaFX" shows how a practical combination of REST and JavaFX together.

It explains how read-only and dynamic properties can be created. The fine-grained binding model allows clear separation of the view, presentation, and business logic.

Read the first part here.

Thursday Apr 26, 2012

JDK 7 U4 and JavaFX 2.1 for Mac and NetBeans 7.1.2 Released

Java SE 7 U4 may sound like a normal patch release. But this is the first delivery of both the Java Development Kit (JDK) and JavaFX Software Development Kit (SDK) for Mac OS X by Oracle. The consumer version, including a JRE, will be released later this year.

NetBeans 7.1.2 provides support for the updated JDK. In this release, Ant is upgraded to 1.8.3 and it even has some minor performance improvements. Download it today!

This JDK release also contains G1 Garbage Collector that provides a predictable garbage collection even for very large Java applications. All the performance improves from Oracle JRockit have also been merged into Oracle Java Hotspot and OpenJDK. Several new features are available in Java FX 2.1 as well.

Space Duke

What is holding you back ? Download JDK 7 U4 and NetBeans 7.1.2.

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!

Monday Oct 03, 2011

NetBeans 7.1 beta - 50+ CDI enhancements in Java editor

NetBeans 7.1 beta is here and while Java FX 2.0 (which just shipped here at JavaOne 2011) is the main theme for this release, there are also a number of improvement for Java EE and GlassFish developers.

ALT_DESCR

In addition to Vince Kraemer's Cluster and Instance Deployment description, this "New and Noteworthy" page lists of the new Java EE-related features, including no less than 50+ CDI enhancements in the java editor including some very neat hints for decorators and interceptor bindings but also great JPA improvement with (for instance) code completion for table names, column names and persistence unit names.

Check it out and remember to file issues as you find them!

Monday Feb 21, 2011

"Java and Oracle, One Year Later", the replay

The OTN live session dubbed "Java and Oracle, One Year Later" is now available as a replay. In about 20 minutes Ajay Patel, VP Product Development, covers mostly future directions for Java, the role of the (much) larger Java community, a discussion about the JCP, upcoming JavaOne conferences, JavaFX and last but not least: GlassFish.

Terrence Barr has extracted some key quotes by Ajay Patel, check them out!

ALT DESCR

Whether communication (in this case with the Java community) is an art or a science, the best way to improve is to practice. Expect more from Oracle and provide feedback!

Saturday Apr 24, 2010

JavaFX 1.3 SDK - New Features and a 100d Release

JavaFX 1.3 is now available.  This is the first release of JavaFX under Oracle - in O's terminology, it is a 100day release - and incorporates Oracle's copyrights, marks and logos, as well as the approach of presenting the license on website prior to download rather than during the installer.  We should expect similar changes in other 100d releases.

There are several coordinated releases: the JavaFX 1.3 SDK, the JavaFX 1.3 Production Suite, and NetBeans 6.9. See What's New for a full list.

The NetBeans release includes a beta for the JavaFX Composer, as well as other tutorials (like this Sample Logo).  The SDK release includes support for JavaFX Desktop, Mobile and TV.  Plenty of links from the downloads page.   Steve Chin has a nice overview: JavaFX 1.3 Top 10 Features and Jim Weaver has a sample tutorial in Your Calendar PWN3D. Also, Kevin's latest Java.Net poll is on What's the most important enhancement on JavaFX 1.3.

Congratulations to all the teams that got this release out. We are working on our own 100d release as part of the GlassFish Roadmap and we know how much work it involves.

Monday Dec 14, 2009

NetBeans 6.8 - Get Tomorrow Today

ALT DESCR

NetBeans 6.8 was released last Thursday. This release provides full support for Java EE 6, including improved support for JSF 2.0/Facelets, JPA 2.0, EJB 3.1, JAX-RS and GlassFish v3. NetBeans 6.8 also has improvements to the PHP and JavaFX editors, has better Maven support and tighter integration with Kenai.com. The full list of features is available here.

The NetBeans team also released the Multi-Lingual Release (see Masaki's note) and the Java FX Composer Preview (entry, screencast)

Friday Oct 23, 2009

NetBeans 6.8 Beta is Now Available

ALT DESCR

NetBeans 6.8 beta is now available (Download, NB 6.8 Home Page). NB 6.8 has a number of key features, from support for GlassFish v3 to JavaFX to PHP frameworks like symfony.

The NB6.8 website links to other documentation that is being updated as we get closer to fcs, including Tutorials and Screencasts. NetBeans screencasts can also be found in the NB Channel at Channel Sun (for example, see the Symfony Support recording; and that of kick butt).

Tuesday Jul 28, 2009

NetBeans 6.7.1 Now Available... with JavaFX Support

ALT DESCR

NetBeans 6.7.1 is now available. The main new feature is that the JavaFX 1.2 Plugin is now included and bundled. See the Release Notes and the announcements from Octavian, Charles and Tor.

Download it from the Usual Location.

Tuesday Jun 23, 2009

Last 3 Days of Free JavaFX, MySQL and GlassFish Training Class - Atlanta, Raleigh, Cleveland

ALT DESCR

I just found out but Sang has been teaching a series of 1-day free training sessions on JavaFX, MySQL and GlassFish. The full list is at his JavaPassion Site but by now there are only 3 days left, so check it out and signup if you are interested and available.

June 24th, Atlanta, GA
June 25th, Raleigh, NC
June 26th, Cleveland, OH

Monday Jun 22, 2009

Jazoon Preview - GlassFish, JavaEE 6, Hudson, Metro, JavaFX... and James

Not exactly the Antipodes but I think we can argue we have the whole world covered... While FISL is hosted in Porto Alegre, Jazoon will be held in Zurich.

Check out the Jazoon Home Page and Schedule and check Alexis' List of Talks related to GlassFish.

And, if you are on the other side, check GlassFish @FISL!

Saturday Apr 18, 2009

GlassFish and More at MySQL Users Conference

ALT DESCR

Mon-Thu I'll be attending the MySQL User's Conference here in Santa Clara. The tone of the conference is noticeably different to that of its (even larger) sibling JavaOne in San Francisco, and the topics are very grounded in the practical needs of the Users of the technology. There are many very interesting talks, below is a small selection extracted from my Personal Schedule.

Starting with those related to topics we normally cover here: Several BOFs: OpenSSO, OpenDS and LDAP, JavaFX Clients, OpenSolaris and Web Stack. Several Technical Sessions: MySQL and ZFS, Twitter and NetBeans and GlassFish and MySQL (that's Arun).

The rest of this list is not comprehensive but, here it is...

Keynotes: State of the Dolphin, Google, KickFire, Cloud, Andi, SmugMug, Infobrite and JasperSoft, Obama.
Fun Events Quizz Show.
Tutorials: Scale out, MapReduce, Partitioning, Memcached
DTrace: Intro, MySQL and Dtrace, Another DTrace
Cloud: MySQL and EC2, Hadoop and MySQL, Cloud Backup for MySQL, MySQL Clusters in the Cloud, MapReduce
Drizzle: Rethinking MySQL, Memory, libdrizzle, Drizzle BOF, Clusters
Memcached: Beginners, Distributed and InnoDB, And Flash!, Libraries, Advanced Use
Engines: InnoDB, Falcon, Maria, PBXT.
General: Performance and Scalability, the Future, Code Contributions (Masood's), Craig's List, Sandbox, Death.

... and I reserve the right to add and/or remove entries from my schedule at any time :-)

Monday Dec 22, 2008

Catching Up - JavaFX Launch and VirtualBox 2.1 Recap

One last launch recap before the holiday break; this one will be far shorter than the OpenSolaris 2008.11 recap as I'm about to turn into a pumkin.

Radio Receiver Icon

JavaFX - We released JavaFX on Dec 4th, a couple of days later than originally scheduled. The launch was preceded by the release of the new JavaFX Script Language Reference and a few blog entries, but the bulk of the posts happened after. Danny has done a couple of nice recaps - check top 10 things and then a very complete News Recap.

After the launch, the team took the show to Devoxx (nee Javopolis); Danny gave one of the keynotes in day one (see his Show Report), and Mark did the same for Day 2 - modularity being key to delivering Java on a multiplicity of platforms, see Mark's notes on the Modular Java Platform and Jigsaw. Danny provided a summary of JavaFX in Devoxx; judged by the whiteboards (caveat emptor and all of that), JavaFX was pretty well received - see the "ultra-cool" section in the Java Cool Wall.

Ah!... And Mr. Jeet now has his Own Blog; welcome to the blogosphere! :-)

VirtualBox 2.1 - The last recap is for VirtualBox 2.1, released on Nov 17th. This is yet another strong release from the VirtualBox team; they are turning releases very quickly (see earlier reports tagged VirtualBox).

Two summaries of the functionality are from Joerg and TheFatBloke. The release includes support for hardware features, improved ease of use and interoperability. It all looks very good, and I really want to host a webinar set at TheAquarium Online on the VirtualBox; the calendar is pretty crowded but we added an extra optional slot per week to cover cases like this.

The VB team records over 8M d/ls of VB - which is very good; if you want to try it out, you can check the latest ChangeLog and then go to the Download page.