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

java.net Spotlight

So you want to build the Reference Implementation of Java EE 7 from the source code after tweaking a little bit? Guess what, it is not hard at all. Andrew Pielage from C2B2 provided us with a nice blog post about the steps required to build GlassFish Open Source Edition from the source. Below you find just a few hints of how easy it is to build GlassFish, but don't forget to check Andrew's post for more details on how to modify source code, build with better options, load...

[05/07/2014]

The first Devoxx4Kids Denver was a wild success! This last Saturday, 20 enthusiastic Minecraft hackers gathered at Thrive in Cherry Creek to learn from one of the best. With masterful skill, Scott Davis, founder of ThirstyHead.com, taught everyone how to get a development environment setup, run a local Minecraft server and install plugins into it. You can see the materials we used for this class on Scott's site, at...

[05/06/2014]

These are questions which are likely to be too advanced to ask in any interview as they may just put candidates off. Never the less, they may be worth practicing in your own time. Myth 1) System.exit(0) prevents finally being called. Why does this code...

[05/05/2014]

Now that Java ME 8 is released a lot of people trying it out and are asking for sample code and demos. We

[05/04/2014]

Today, we are announcing the general availability (GA) of the Java ME 8 release. This release is the culmination of a two-year effort driving a major update of the Java ME technology as a modern embedded software platform, purpose-built as a foundation for new services in the Internet Of Things. We are closely collaborating with industry partners and are seeing strong interest in Java ME 8 across a number of markets such as...

[04/30/2014]

If anything at all, our jOOQ talks at various JUGs and conferences have revealed mostly one thing: Java developers don

[04/29/2014]

Sometimes we see JRockit users who experience frequent full GCs as the JVM tries to clean up after application threads that have finished executing. In this post I'll write about why this happens, how to identify it in your own environment, and what the possible solutions might be. What exactly is happening? If there are many threads that have finished execution, but...

[04/28/2014]

The JCP Executive Committee (EC) continues to work on improving the JCP program as part of the JCP.Next effort started in 2010. Several JSRs have started going through the process. First: JSR 348, Transparency aka JCP 2.8 (implemented in 2010-2011). Second: JSR 355, EC Merge (implemented in 2012-2013). Third: JSR 358, A major Revision to the Java Community Process. This JSR continues in development...

[04/27/2014]

As you know the JavaOne CFP is now closed. I want to take this opportunity to thank all of those that submitted their thoughtful topics and all those who considered submitting. We had the highest number of JavaOne CFP submissions in recent years. This is a testament to your passion for the Java community and a great start on the road to keeping JavaOne a true success. In terms of the Java EE track we now have all the raw material we need to construct a strong selection...

[04/25/2014]

To deal with the growth of log data a host of log management & analysis tools have been built over the last few years to help developers and operations make sense of the growing data. I thought it

[04/23/2014]

Behavior Driven Development (BDD) is an approach that uses conversions around concrete examples to discover, describe and formalize the behavior of a system. BDD tools such as JBehave and Cucumber are often used for writing web-based automated acceptance testing. But BDD is also an excellent approach to adopt if you need to design a web service. In this article, we will see how you can use JBehave and Thucydides to express and to automate clear, meaningful acceptance criteria for a RESTful web service.

[04/22/2014]

PrimeFaces, a popular JavaServer Faces (JSF) UI framework, can be used to quickly develop sophisticated applications for the enterprise or for standard websites. This article focuses on how to efficiently build data-driven applications for the enterprise using PrimeFaces. In this article, we'll be developing an enterprise application, making use of PrimeFaces to create a user-friendly, robust experience. The application we will be developing is called AcmePools, and...

[04/21/2014]

As you know, CDI 1.1 is an important part of Java EE 7. You may be happy to know that the CDI specification just releases another minor point release - 1.2. As you can imagine the release contains a small number of fixes and clarifications. If you are surprised that a technology that is part of the Java EE platform had an independent release, you really shouldn't be. Although for various practical reasons Java EE technologies are usually synchronized with the platform JSR...

[04/20/2014]

Learn How to Plug Into the Internet of Things A global network of billions of devices sharing data is opening up unprecedented business opportunities. How well positioned is your company to take advantage of this seismic shift? Join Oracle, our partners and customers on Thursday, April 24 to learn how to turn the Internet of Things into real business value. http://medianetwork.oracle.com/video/player/3331878151001

[04/17/2014]

WamSys AB, located in Gothenburg, Sweden, focuses on developing products with Oracle DB and the NetBeans Platform. In particular, the NetBeans Platform is used as the basis of their Mozart Platform, which provides generic modules for custom Swing components, including a table component with support for grouping, "frozen" rows and columns, and built-in aggregates. Furthermore, the Mozart Platform facilitates the building of products on top of it. For example...

[04/16/2014]

The latest update to the Java EE 7 Tutorial is now public. Update 7.0.4 includes many bug fixes, both in the examples and in the documentation. Although most of these fixes were small, taken together they significantly improve the quality of the tutorial. Kin-man Chung conducted a thorough review and provided several corrections and good suggestions that we incorporated to greatly improve Chapter 9, Expression Language. Additional instructions for...

[04/15/2014]

Use stream operations to express sophisticated data processing queries. What would you do without collections? Nearly every Java application makes and processes collections. They are fundamental to many programming tasks: they let you group and process data. For example...

[04/14/2014]

While working on FlexGanttFX I had to deal a lot with the JavaFX Canvas node. I am using it to render activities on a timeline. Each row in the Gantt chart is a Canvas node. The user has the option to resize each row individually. So I had to figure out the best way to resize a canvas, which out-of-the-box is not resizable. The listing below shows how...

[04/13/2014]

Debates about the usefulness of ORM (Object-Relational Mapping) have been going on for the last decade. While many people would agree that Hibernate and JPA solve a lot of problems very well (mostly the persistence of complex object graphs), others may claim that the mapping complexity is mostly overkill for data-centric applications. JPA solves mapping problems by...

[04/12/2014]
Mike Croft: How to set up a cluster with Tomcat 8, Apache and mod_jk

Despite the popularity of Tomcat, it seems to have something of a reputation for being a developer

[04/10/2014]

A host of new content was released with the recent Java 8 launch and the YouTube Java channel features a number of interesting videos and interviews. For example:

[04/09/2014]

The biggest change in Java 8 is the addition of support for lambda expressions. Lambda expressions are blocks of code that can be passed by reference. They are similar to closures in some other programming languages: code that implements a function, optionally takes one or more input parameters, and optionally returns a result value. Closures are defined in a context and have access (read-only access, in the case of lambda expressions) to values from that context...

[04/08/2014]
David Delabassee: Free Java Virtual Developer Day

Next month, Oracle will host a Virtual Developer Day covering Java SE 8, Java EE 7 and Java Embedded. By attending the VDD Java EE Track, you will get an introduction to the new APIs added to Java EE 7 : Concurrency Utilities for Java EE (JSR 236), the Batch API (JSR 352), JSON-P (JSR 353) and the WebSocket API (JSR 356). In addition, JAX-RS 2.0 and JMS 2.0 will also be covered...

[04/07/2014]

One of the key new features introduced in Java 8 is parallel array operations. This includes things like the ability to sort, filter and group items using Lambda expressions that automatically leverage multi-core architectures. The promise here is to get an immediate performance boost with minimal effort from our end as Java developers. Pretty cool. So the question becomes

[04/03/2014]

Every week here and in our newsletter, we feature a new developer/blogger from the DZone community to catch up and find out what he or she is working on now and what's coming next. This week we're talking to Nicolas Frankel, IT consultant with 10 years experience in Java and JEE environments. Some of his most recent DZone posts include...

[04/02/2014]

Want to win a programmable LEGO robot? Share your voice in this year

[04/01/2014]

As many of you know, we have been reaching out to the community through the Java EE 8 survey to solidly kick start the next revision of the platform. While the first and second parts of the survey asked for input about specific items to consider, the third and last part of the survey asked the community to prioritize among a distilled subset of the most popular features. We closed the last part of the survey last Monday and now are very proud to share the final results with you...

[03/31/2014]

Fragmentation is a big potential stumbling block for the rise of the Internet of Things. With future profits hedged on the ability of objects to align with digital systems, it

[03/30/2014]

In The new Java 8 Date and Time API: An interview with Stephen Colebourne, Stephen Colebourne tells Hartmut Schlosser, "I think the most important language change isn't lambdas, but static and default methods on interfaces." Colebourne adds, "The addition of default methods removes many of the reasons to use abstract classes." As I read this, I realized that Colebourne is correct and that many situations in which I currently use abstract classes could be replaced with interfaces with JDK 8 default methods...

[03/27/2014]