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

java.net Spotlight

Now that Java ME 8 is released a lot of people trying it out and are asking for sample code and demos. We’ve got you covered: 1) The first place you should go is the ”Java ME SDK 8 Developer Guide“. This is your one-stop-shop for getting started with Java ME 8 development on your PC (no external hardware required). Chapter 2 is “Creating a Java ME SDK 8 Sample Project”, and part IV is all about “Sample Applications”. 2) Next, you will want to browse the “Java ME Embedded Developer Guide”, which...

[05/04/2014]

“Codes like a class, works like an int!” This is a sketch of proposed enhancements to the Java Virtual Machine instruction set, and secondarily to the Java Language, to support small immutable, identityless value types. (They may also be considered as identityless aggregates, user-defined primitives, immutable records, or restricted classes.) This is an early draft, intended to describe the overall approach...

[05/01/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’t know SQL. And it isn’t even necessarily our fault. We’re just not exposed to SQL nowadays. But consider this: We developers (or our customers) are paying millions of dollars every year to Oracle, Microsoft, IBM, SAP for their excellent RDBMS, only to ignore 90% of their database features and...

[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’d be interesting to look at our options and what are each tools’ selling point, from a developer’s standpoint. This is one post where I would love to hear from you guys about your experiences with some of the tools mentioned (and some that I didn’t)...

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