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

java.net Spotlight

In this post we’ll take a deeper look at acceptance testing as a practice and see what the tools gain us. Acceptance Testing is an agile practice that refers to functional testing a user story. Sometimes it is referred to as Agile Acceptance Testing or Specification by Example. Acceptance testing addresses one of the most significant problems in software development: the requirements...

[12/29/2013]

Java EE 7 includes the new JSR 344 (JSF 2.2) standard and provides developers with new features like Resource Library Contracts, HTML5 Friendly Markup, and Faces Flows. The Liferay Faces team is hard at work at providing 1st class support for JSF 2.2 in Liferay Faces 4.x including the following new portlet demos...

[12/28/2013]

Java 8 will go GA in March 2014. The first proposed final draft of Java 8 JSR 337 was released early this week. One of the main components of this JSR is Lambda Expressions for the language (JSR 337). This brings the functional constructs to the language, which will undeniably make Java a top contender among other functional peers (Scala, Groovy, Clojure) on the JVM for Java developers. Conciseness is only part of the story...

[12/25/2013]

All of the Java.next languages include functional programming constructs, which enable you to think at a higher level of abstraction. However, differences in terminology among the languages can make it difficult to see similar constructs. This installment shows how common functional programming constructs manifest in the Java.next languages, pointing out some subtle differences in the implementation details of those features...

[12/24/2013]

2013 was a year of Java releases, good news, less good news, and a community that just keeps on truckin'. Thanks for a great year! Release of Java EE 7: Java EE 7 was the result of industry-wide development involving open review, ongoing builds, and extensive collaboration between hundreds of engineers from more than 30 companies. Key features included better support for HTML5, websockets, JAX-RS 2.0, an update to JMS 2.0 and more. Java and the Internet of Things: From Forbes to Business Insider, everyone was waking up to the Internet of Things (IoT)...

[12/23/2013]

Let's set up NetBeans IDE 7.4 to use Python. Go to Tools | Plugins and the Plugin Manager opens. In the Settings tab of the Plugin Manager, add a new update center with this URL: http://bit.ly/1fzL5mF Then go to the "Available Plugins" tab of the Plugin Manager and you'll find Python...

[12/22/2013]

That is the agile lean goal, to deliver value at a constant pace with minimum manual intervention right? I have written before about continuously releasing snapshots but in reality what you want to make sure is that once something is tested it can be deployed and that can only be achieved if what you have tested and verified is a release. Here is how to use Maven and Jenkins to help the team with continuous releases of maven projects. The proposal here is...

[12/20/2013]

We decided to pick five of today’s most prominent logging engines, and see how they perform in a number of races. Now, before you take out the torches and pitchforks, I wanted to clarify that the point is not to say which is better, but to give a sense of the differences in throughput between the engines across a number of common logging tasks...

[12/18/2013]

WebSocket is a cool new(ish) technology that allows real-time, two-way communication between the browser and the server, with almost no overhead. What I want to do here, is to provide a very succinct, but sufficient overview of how to start using the technology. So, a few things to start with: * a tcp socket connection is opened between the browser and the server, and each party can send messages to the other...

[12/17/2013]

IT is all about streamlining and automation, so it is somewhat ironic that we developers still tolerate repetitive and boring manual tasks, such as deployment. Also, our ignorance about easily accessible information for application servers, such as monitoring data, is surprising... This article describes the GlassFish management API, which allows you to manipulate the GlassFish application server's configuration, including its monitoring capabilities. It also describes the GlassFish monitoring API, which provides a read-only facility for accessing the Java Virtual Machine (JVM), the GlassFish application server, and the GlassFish application server's metrics and counters...

[12/16/2013]

Just recently I was engaged to assist with an application that wasn’t behaving. The application, running in a 1.7.0_45 JVM, relied heavily on a 3rd party SAAS framework. That vendor provided my client with a list of 26 different JVM flags that should be set. When faced with this long list of flags I couldn’t resist asking why all the flags and why these flags. After all there are more than 700 product flags defined in the JVM and to be honest, I’ve only a vague idea of the effect may have on a runtime. Take the flag AggressiveOpts for example...

[12/15/2013]

It has been a busy month in the JCP program. Many updates to share with you below... Star Spec Lead nominations are still open for 2013 until Monday, 16 December. This is a great opportunity to recognize your favorite JSR Specification Lead. The November EC meeting summary and materials are available. This was the first EC Meeting with the newly elected 2013-2014 EC...

[12/13/2013]

There’s been a number of nice articles written about graphs, graph databases, and, more specifically, Neo4j in the past couple of months. Each one jumping on the hype train and brimming with ‘revelations’ about the coolness of graph databases in general - especially Neo4j. In this article, we would like to continue this love-in by shining a spotlight on a couple of fantastic new features that are part of Neo4j 2.0...

[12/11/2013]

In this video interview, Java Evangelist Jim Weaver, Senior Engineer Gerrit Grunwald and Community Manager Yolande Poirier discussed the Internet of Things(IoT), Java Embedded, and the new IoT community page on Java.net. The page gathers blogs, resources and many sample applications from Java developers who create embedded applications with Java...

[12/10/2013]

As we start to plan for the next revision of the Java EE Platform (Java EE 8), we would like to get input from the community on the relative importance of some of the features that we might add. If you can spare a little time, please participate in this Java EE 8 features survey to let your voice be heard and help us shape the future of Java EE. This is the first part of a two-part survey...

[12/09/2013]

The annotation processing API, both the processor-specific portion of the API in javax.annotation.processing and the language modeling portions in javax.lang.model.*, are being updated to support the new language features in Java SE 8. Procedurally, the proposed changes are covered by the second maintenance review of JSR 269: Maintenance Draft Review 2. There are three categories of changes from the version of the API shipped with Java SE 7...

[12/08/2013]

Just wanted to direct your attention to Oracle’s Internet of Things (IoT) home page at oracle.com/iot. This is continuously being updated and is a great entry-point resource featuring: Overview into Oracle’s IoT strategy and platform; Webcasts, Videos, Reports, and White Papers; Additional resources, articles, podcasts and more...

[12/06/2013]

I am incredibly pleased to announce on behalf of the entire ControlsFX team that ControlsFX 8.0.3 is now ready for download! This release comes approximately two months after the 8.0.2 release, and is a major release... the reason why this release is two months in the making rather than the usual one month cycle is that we decided to improve the ControlsFX sampler program. It is now more generic...

[12/04/2013]

Java debugging is a complex space. There are many types of debuggers, and numerous tools to choose from. In this page, we’ll cover the differences between 7 types of debuggers, and review the major tools in each category to help you choose the right tool for the right job. Here are the types of debuggers we cover...

[12/03/2013]

A short story about the complexity of magical frameworks and dependency injection with a happy ending, featuring Resteasy, CDI, and JBoss. Once upon time, I have created a JAX-RS webservice that needed to supply data to a user’s session. I wanted to be fancy and thus created a @Singleton class for the exchange of information between the two (since only a user request serving code can legally access her session, a global data exchange is needed). However...

[12/02/2013]
John Yeary: Minecraft Server on Amazon Elastic Compute Cloud (EC2)

I recently setup a Minecraft Server on Amazon Elastic Compute Cloud (EC2) for one of my sons and his friend. It was an experiment for use with a larger group of Cub Scouts in my Bear den. I signed up for the free hosting for a year from Amazon. The free instance has some limitations, but will work fine. The biggest issue is the amount of ram in the free micro (t1.micro) instance is about 613MB. This is much smaller than the recommendation of 1024MB on the Minecraft website, but worked with a small group. You may need to go to the next tier (m1.small, or m1.medium) for a bigger group. Those instances are not in the free tier, but..

[12/01/2013]
Terrence Barr: V2COM, Gemalto, and Oracle win IDTechEx “Best IoT Application Award”

V2COM, Gemalto, and Oracle recently jointly won the IDTechEx Energy Harvesting & Storage award for best Wireless Sensor Network (WSN)/IoT Application for delivering flexible smart grid solutions in Latin America. For more information on the award and the application, see...

[11/29/2013]

Star Spec Lead nominations are now open until 16 December 2013. Anyone can submit a nomination for a current Spec Lead operating under the most recent versions of the JCP program (version JCP 2.8 or 2.9). Nominations can be for either process or communication criteria--some of the possible criteria for selection is listed below. There are Spec Lead profiles available for most of the active JSRs on JCP.org to use for inspiration...

[11/27/2013]

The clock is ticking... Java 8 is not that far anymore... Adopt OpenJDK allows the Java community to prepare the field for JDK8. There are many ways to contribute. The first step could be to test existing Java applications on top of OpenJDK 8. The next step would then be to adapt those existing applications to leverage some of the new Java 8 enhancements...

[11/26/2013]

Going through the list of Java 8 features, Generalized Target-Type Inference struck me as a particularly interesting, lesser-known gem. It looks as though the Java language designers will ease some of the pain that we’ve been having with generics in the past (Java 5-7). Let’s have a look at their example...

[11/25/2013]

The last few weeks I was busy re-writing pf my puppet WLS module so it fully supports the power of Puppet 3 (thanks for more than 4000 downloads on puppet forge) . With Puppet 3 we now can use Hiera, Iterations and Lambdas expression. This does not sound like a big change but with Hiera and the new Puppet Language features...

[11/24/2013]

Futuristic, automated homes are becoming a reality, and home automation is a prime example of the Internet of Things (IoT). The current issue of Java Magazine looks at IoT and what it opportunities it presents for Java developers. We also bring you a special section on development best practices, community news, and more. Highlights include...

[11/22/2013]

With lambdas and support for asynchronous communication, JavaFX introduces new integration possibilities for back-end services... JavaFX and Java EE 6 and 7 introduced a variety of new synchronous, asynchronous, push, and pull integration strategies. This article focuses on the integration of Java EE services with JavaFX applications...

[11/21/2013]

Pocket size, versatile, and cheap as chips, the Raspberry Pi has enjoyed blockbuster success since its launch... Having recently struck a deal for Java to run natively in every unit, the Raspberry Pi continues to go from strength to strength. To mark this latest sales milestone, JAXenter has compiled a rundown of ten of our favorite creative uses for the very little computer that could...

[11/19/2013]

Back in July, Oracle announced the Oracle Java Platform Integrator (OJPI) program. The OJPI program enables companies developing embedded products on devices to leverage the technologies Oracle is providing across their choice of hardware and operating systems... Since July, we have been busy expanding this offering with more information and additional releases, including...

[11/18/2013]