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

java.net Spotlight

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’s application server because of how apparently simple and “no-frills” it seems to be, and therefore suited only to the most lightweight of deployments. In reality, many of the features that aren’t included in Tomcat are those that most businesses will never miss...

[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: “Building Block for the Internet of Things”, Nandini Ramani, VP of Java Product Development, Oracle: Get a new perspective on how enterprises may generate value from IoT and what it takes to make IoT work. Learn about...

[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 – how fast is this thing, and when should I use it...

[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’s survey... Today we kicked off the fourth annual open source development and application security survey. You can take the 5 minute survey here — it takes less that 5 minutes, we promise. Looking at last year’s findings, I see so many great discussion topics for your next team meeting, a lunch-and-learn at your office, or at a community MeetUp event. Topics like...

[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’s in the interests of everyone involved to ensure that the IoT moves forward in an orderly and standardized fashion. The Eclipse Foundation and M2M Alliance are already pioneering players in this field, and yesterday a new group of companies threw their collective hats into the ring...

[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]

The March/April issue of Java Magazine jam-packed with information to get you started with Java SE 8, a revolutionary release of the world’s #1 development platform. The biggest change in Java SE 8—what some have called the most significant upgrade to the Java programming language ever—is lambda expressions, or closures. In “Java 8: Explore the Possibilities,” we give you an overview of lambdas, the Nashorn JavaScript engine, Compact Profiles, the new date and time API, the role of community, and more...

[03/26/2014]

The Java™ platform provides excellent support for concurrent programming in all JVM-based languages. Scala extends the concurrency support in the Java language with even more ways to share work among processors and coordinate the results. This first article in a new series on JVM concurrency covers the state of the art in concurrent programming in Java 7 and introduces some of the Scala enhancements. The article also helps prepare the way for understanding concurrency features in Java 8...

[03/25/2014]

JAXenter met with Régis Latawiec, COO of embedded systems solutions providers IS2T, at embedded world this spring to discuss, among other things, the evolution of embedded technology, why Java was their language of choice for in-device software solutions, and what the company envisions for the future of the IoT...

[03/24/2014]

JFXtras has a TimePicker that uses a number of Sliders to represent hours, minutes and seconds. And even though this is functionally an OK user interface, it is visually not very appealing. Recently I changed my phone and ran into this Android TimePicker. Basically the hour picker consists of two round sliders, but I find it visually much more appealing than my slider UI. So I set out to create something similar...

[03/23/2014]

The big news at the latest edition of EclipseCon North America, which wrapped up in San Francisco on Thursday, was Oracle's Java 8 announcements. The conference planners devoted an entire day at the show to Java 8 (George Saab's opening presentation on "Java Day" was standing room only). The Foundation itself is providing Java 8 language support as an add-on to the Eclipse IDE...

[03/21/2014]

To celebrate the release of Java 8 which was released just minutes ago, I am publishing a draft version of my Java 8 Lambdas Tutorial. It is a nice visual way to learn the Streams API, and will help you get started taking advantage of lambdas in your own applications from day 1. This article is scheduled to appear in the next Java Magazine release, so please look forward to the final version...

[03/19/2014]

Two years, seven months, and eighteen days after the release of JDK 7, production-ready builds of JDK 8 are now available for download! Thanks! A major new release of a software system as large as the JDK is the direct work of many hundreds of developers, with indirect contributions from thousands more. By way of thanks I’d like to mention the major contributors here specifically...

[03/18/2014]

This is a good time to consider new options for a “native interconnect” between code managed by the JVM and APIs for libraries not managed by the JVM. Notably, Charles Nutter has followed up on his JVM Language Summit talk (video on this page) by proposing JEP 191, to provide a new foreign function interface for Java. To access native data formats (and/or native-like ones inside the JVM), there are several projects under way including...

[03/17/2014]

Someone once said that: Junior programmers think concurrency is hard. Experienced programmers think concurrency is easy. Senior programmers think concurrency is hard.That is quite true. But on the bright side, Java 8 will at least improve things by making it easier to write concurrent code with lambdas and the many improved APIs. Let’s have a closer look...

[03/16/2014]

This time of the year. Finally. It was about time. The 2014 JavaOne Call-For-Papers opened a few days back. And it is going to be a great one. Plenty of changes upcoming and it will have a huge focus on community speakers. The rolling acceptance process from last year is back, so submit early! There is a new dedicated track for Agile development this year, making a total of nine Java tracks. This year's tracks are...

[03/13/2014]

The long awaited, much anticipated release of Java SE 8 is nearly upon us. March 18th is the official release date, though numerous "launches" and other events will follow. A lot of work went into this release, with contributions coming from many quarters -- including Java User Groups (JUGs) around the world who participated in the Adopt-a-JSR program. The Java Community Process (JCP), which manages the development of standard technical specifications for Java technology, launched the program in December 2011...

[03/12/2014]