Skip to main content
View Archives: Homepage | Spotlights | Articles | Weblogs

java.net Spotlight

As part of Make the Future Java EE 7 Global Celebration, several of us (Reza Rahman, Bruno Borges, and David Delabassee) are traveling around the world and speaking at different events. My latest travelenture takes me to different parts of Africa, literally in all different directions. I plan to show tons of Java EE 7 code samples, meet local developers, learn from them, hopefully run with some of the finest runners in the world, and...

[08/19/2013]

The Java Champions are an exclusive group of passionate technologists, speakers and community leaders who are long-time Java experts. Their feedback, ideas, and direction help Oracle grow the Java Platform. Don’t miss the opportunity to meet some of them at JavaOne. The Java Champions speaking at JavaOne are...

[08/18/2013]

ADEN is a lightweight Java networking framework for message passing applications. This article provides detailed information about ADEN, except about the protocol it uses (we refer to it as ADEN protocol) which will be covered later in a separate article. ADEN's project goal is to provide 'negotiated' connections and reliable data transmission on top of Java's DatagramSockets...

[08/15/2013]

Java EE 7 is out now and so I was curious to play around with the new specifications and APIs from this technology stack. That’s why I didn’t hesitate to add yet another websocket-chat tutorial to the existing ones on the internet in favor of gathering some experience with this technology and a possible integration using a GlassFish 4 server, the new Java API for JSON Processing for...

[08/14/2013]

Calling anyone interested in running for a JCP Executive Committee seat! This year will be an exciting election since the current EC Members and any prospective new EC Members will run for election--24 EC seats will be ratified or elected by the JCP Program Membership (specific details on this below). Now is the time to prepare your nomination! The official nomination period begins...

[08/13/2013]

It has been a couple of weeks since Bean Validation 1.1 has gone final. In the mean time, the Java EE 7 platform spec has been finalized as well, so it's time to have a closer look at what you can expect from these updates in relation to Bean Validation and its reference implementation, Hibernate Validator 5. Over the following weeks, we'll dive into the most exciting new features in a series of blog posts, starting today with the usage of expression language in error messages...

[08/12/2013]

I seem to be on a blogging / open source release roll at the moment, as I’ve got a new release of ControlsFX available today to go with the release of Scenic View I put out the other day. This release of ControlsFX is the first developer preview release of ControlsFX 8.0.2, and contains a number of bug fixes and new features... On top of the numerous bug fixes and the resolution of the issue mentioned above, this release includes the following new features (among others)...

[08/11/2013]

What is the developer community like in China? I put this question to several members of the Java developer community while at JavaOne Shanghai. "Big!" "Passionate!" "They asked good technical questions." "Eager to learn." Find out what JUG leaders and Oracle had to say on this topic. You can view the entire JavaOne Shanghai playlist and lots of other videos on the Java YouTube channel...

[08/08/2013]

Learn about how to adapt and tune the G1 GC for evaluation, analysis and performance. The Garbage First Garbage Collector (G1 GC) is the low-pause, server-style generational garbage collector for Java HotSpot VM. The G1 GC uses concurrent and parallel phases to achieve its target pause time and to maintain good throughput. When G1 GC determines that a garbage collection is necessary, it collects the regions with the least live data first (garbage first)...

[08/07/2013]

Heinz is a Java programmer living on the beaches of the Island of Crete in the Mediterranean. It is from there that he publishes his entertaining "Java Specialists' Newsletter", read by about 70000 Java experts in at least 130 countries (http://www.javaspecialists.eu/countries.html). Heinz tries to "push the envelope" with Java, so if you've ever wondered how to...

[08/06/2013]

There is an interesting discussion happening on the LinkedIn “Internet of Things” group right now, in response to the InfoWorld article a few days ago titled “Oracle hitches Java to ‘Internet of things’“. The discussion touches on some interesting details on why Java may or may not be a good choice for embedded. Besides the fact that Java is already proven to be one of the most widely deployed embedded technologies, I think the discussion misses a key point...

[08/05/2013]

One of the big features I’ve known people have wanted for a long time (hey, I’ve wanted it too!) is support for returning a TableView back to its original, unsorted state after being sorted by the end user... So, what is the current approach to sorting in TableView (which is still applicable to those of you that don’t want to support returning to the unsorted state)? It looks a little something like this...

[08/04/2013]

Brand the "Community Keynote" at JavaOne this year by submitting a crazy, fancy, funny, geeky slogan about what you LOVE with Java below! Find 140 characters (not a coincidence) to describe your personal love to the worlds mostly used programming language and share it with us.The winner will receive a FULL PASS to JavaOne...

[08/01/2013]

Support and maintenance is one of the added values of Oracle GlassFish Server, the commercial version of GlassFish. Two GlassFish Patches have been released in July, one for the 3.1.2 version and another for the 2.1.1 version (Java EE 5!). For those who can't move to a more recent version of Java EE, Oracle continues to provide support for the older version of the product, Sun GlassFish Enterprise Server 2.1.1 in this case. This GlassFish For Business"\ post provides more details...

[07/31/2013]

Uncover the basics of cross-site scripting attacks and learn how you can prevent them using a Java-based approach to encode HTML output from a server. In a cross-site scripting (XSS) attack, the attacker injects malicious code into a legitimate web page that then runs malicious client-side script. When a user visits the infected web page, the script is downloaded to, and run from, the user's browser. There are many variations to this scheme...

[07/30/2013]

Critics of Java are often quick to decry the death of their least favourite programming language, but perhaps they shouldn’t be so hasty. The latest rankings from developer analysts RedMonk are in for Q3, showing that Java has edged to the top of the pile, but only just. The RedMonk Programming Language Rankings measures the traction of languages on two of the biggest communities out there, by correlating the number of tags on Stack Overflow questions against the number of GitHub projects in that given language. The results are shown below...

[07/29/2013]

This is what Mike Milinkovich, executive director of the Eclipse Foundation, had to say about the grant: "It is important for the Eclipse Foundation to provide our community with the tools they need to enhance developer productivity. As a key contributor to EclipseLink and other projects, Oracle has been a strong supporter of our efforts. Through the Oracle Compatibility Testing Scholarship Program...

[07/28/2013]

Wouldn't it be handy to know how many messy methods you have, and where they are found in your application, that is, where exactly are the worst culprits, those that are just really wildly long with multiple nested clauses and loops and return statements everywhere? And what about all those classes with bizarre numbers of constructors? Or the constructors where dozens of parameters are received or classes that are hopelessly intertwined with other classes? Enter NetBeans code metrics, introduced in NetBeans IDE 7.4...

[07/26/2013]

As I wrote previously, a WebSocket API is only the starting point for WebSocket-style messaging applications. Many practical challenges remain. As one Tomcat mailing list user mused recently: "It does seem to me that websockets is still not really "production-ready", (I am not talking about the Tomcat implementation per se, but more generally) … native websockets capability in IE is only available since IE-10 and that solutions which allow this to work in lower IE versions are a bit "iffy"..."

[07/24/2013]

Oracle has announced the general availability of the latest releases to Java ME Embedded 3.3 and Java ME Software Development Kit (SDK) 3.3, a complete client Java runtime and toolkit optimized for microcontrollers and other resource-constrained devices. This release includes improvements of interest to developers, including ways to not have to build so much "core plumbing" for an app, and more information about memory and network usage, which can be critical for low-power apps...

[07/23/2013]

This issue features "Securing Java - New Track for JavaOne SF 2013!" - Security is a broad interest shared by the entire Java community. To meet community security interests head-on we added a new track to JavaOne - Securing Java. Many developers will never have the opportunity to attend a security conference. At JavaOne, security is integrated into our program...

[07/22/2013]

The Java API for JSON Processing provides portable APIs to parse, generate, transform, and query JSON. JSON (JavaScript Object Notation) is a lightweight, text-based, language-independent data exchange format that is easy for humans and machines to read and write. JSON can represent two structured types: objects and arrays. An object is an unordered collection of zero or more name/value pairs. An array is an ordered sequence of zero or more values...

[07/21/2013]

Back in 2011 I wrote a blog post about what I wanted to have in Java EE 7. Java EE 7 has been released, some of my Java EE 7 wishes have been fulfilled (Flow management and Batch processing), books have started to be published, and now it’s time to start thinking of Java EE 8. Here is what I would like to have in Java EE 8: More transparency and cohesion in the JCP...

[07/18/2013]

Every week, we feature a new developer/blogger from the DZone community here and in our newsletter, catching up to find out what they're working on now and what's coming next. This week we're talking to Dr. Richard Warburton, developer at jClarity, author of an upcoming O'Reilly book on Java 8 Lambdas, and PhD in Computer Science. His most recent DZone posts include...

[07/17/2013]

Learn about the field of heuristic search and its application to artificial intelligence. This article's authors show how they arrived at a successful Java implementation of the most widely used heuristic search algorithm. Their solution exploits an alternative framework to Java Collections and uses best practices for avoiding excessive garbage collection...

[07/16/2013]

It’s been almost 2 years since we released JavaFX 2.0 on Windows, followed by Mac OS X and Linux support, and plenty of new features. It has been a blast for us, and we’re pretty happy with what we’ve accomplished so far. JavaFX 8 (JDK 8) is looking in great shape, and we’re pretty much done open sourcing all of JavaFX through OpenJFX. However, nothing matches hearing from you and getting a pulse on the developer community. So...

[07/15/2013]

A key feature of Java ME Embedded is the ability for developers to access peripheral devices directly from Java application code. This significantly simplifies development effort because the device-related code is much easier to write, portable across platforms, and there is no need for complicated native code development and integration. The latest Device Access API is available in Java ME Embedded 3.3, and already supports a host of features...

[07/14/2013]

Oracle WebLogic 12.1.2 is now available. WebLogic 12.1.2 contains EclipseLink 2.4.2, this means that for the first time EclipseLink MOXy's JSON-binding is available in WebLogic out of the box. I will demonstrate the benefits of using MOXy for JSON-binding with an example. Below is the Java model we will use for this post. The same metadata will be used to customize the XML and JSON produced by our JAX-RS service...

[07/12/2013]

Tobias Schlotte asked the question (via twitter @tobsch), "Where is thread-safety on your agenda for Nashorn?" The quick answer is that multithreading is very high on the list, but MT-safety is a very complicated issue. I'll attempt to explain our plan of action...

[07/10/2013]

We are in the process of designing a table within our JavaFX UI which is being developed using Scene Builder and FXML with CSS for the UI styling. The table contains information about shipping containers with a requirement that the table row be color coded based on the status of the particular container... I could not find an online tutorial which covered this type of conditional formatting with the UI written in FXML and CSS, so I wanted to document a solution for this problem...

[07/08/2013]