Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blog Entries by Topic

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


Frans Thamura is a leader of JUG Indonesia, a Java Champion, an entrepreneur, and the founder of Meruvian. He has implemented the JEDI program in Indonesia under the goverment's Java education services JENI Project. In this fourth "Lightning Interview" I asked Frans about starting and leading a Java User Group. Interview 1. Why did you decide to start JUG Indonesia? Frans: I...
on May 12, 2013
Tuning Java code presents many challenges and addresses several goals. One of these goals is to make the application "run faster". Recently, our end-users were getting multiple-second response times from our web application's home page. This was unacceptable. We were asked to see what we can do to make the web application "run faster". We began by looking at the usual suspects... database access...
on Apr 14, 2013
One of the first things we did as we began to learn about Java was to create our own library of Java books. Every member of the development team was given the chance (and funding) to build their own collection of books. In time, these book collections became a sort of "comfort blanket" for the developers. In addition to being a valuable source of reference material, these collections act as a...
on Mar 29, 2013
One of the biggest challenges facing us during the creation of our first Java application was learning to develop with the Java programming language. We were concerned about how well our team of developers would learn and adapt to Java. Since Java was an object-oriented programming language, we had object-oriented concepts to learn as well. Our first Java training class was titled, "Developing...
on Mar 24, 2013


Update: Invoke WebConnection#close when there is an error. Servlet 3.1 Specification (JSR 340) is almost ready for the release. One of the new features is the support for protocol upgrade. HTTP protocol upgrade was introduced in HTTP 1.1 (RFC 2616): The Upgrade general-header allows the client to specify what additional communication protocols it supports and would like to use if the server...
on May 7, 2013
Have you wanted to do something with asynchronous I/O? I did. After doing some work with Node.js, I wanted to find a way to get some of the goodness of its programming model for Java. The Acteur project is the result - a framework for building scalable, asynchronous web applications using Netty + Guice - was the result. The programming model is a little unusual - you treat constructors as...
on Apr 7, 2013


Robert Engels works for OptionsCity, which develops financial service platforms using Java. Their products include Freeway, a multi-asset algorithmic trading platform that won the 2012 Chicago Innovation Awards. Robert is the Chief Architect for Freeway development. If you're familiar with modern automated trading, you'll also be quite aware of the necessity to achieve maximal performance....
on May 3, 2013

Web Applications

Web Forms is one of the exciting new features of the recently released BPM To really embrace the power of Web Forms, one must understand Forms Rules, which can give your forms dynamic behavior, such as showing a field or calculating a sum total. In this example, I'm going to show you how to use Form Rules to dynamically populate a dropdown (or list). Step 1: Create the Web Form Using...
on May 3, 2013

Web Services and XML

By default, all connections to the Oracle Cloud are encrypted: The Problem Browsers automatically import the necessary certificates, however, trying to access these services from a Java client, you will not be so successful. Take this Java Client: import com.sun.jersey.api.client.Client;import com.sun.jersey.api.client.WebResource;import com.sun.jersey.api.client.config.ClientConfig;import com....
on May 2, 2013


In this blog entry I outline the steps necessary to deploy JAX-RS (JSR 311) RESTful web services to the Oracle Cloud. We'll be using Jersey, which is the reference implementation for JAX-RS, and JDeveloper, which is my primary Java IDE. Step 1. Create a Jersey Library in JDeveloper Download the latest version of jersey-bundle.jar, which at the time of this writing is version 1.17.1. Start...
on Apr 30, 2013
Update: One should not use response in AsyncListener#onComplete. Only print debug in this example. Servlet 3.1 (JSR 340) is almost ready for the release. One of the new features is the support for non-blocking IO. ReadListener and WriteListener are introduced to allow non-blocking processing in Servlet. Non-blocking IO can only be used in async (defined in Servlet 3.0) or the upgrade mode. We can...
on Apr 16, 2013
I'm very proud to announce that in order to be fully compatible with the new multi-core era, we (the lambda expert group) have decided to deprecate the class syntax in Java 8 and to remove it in Java 9. With the introduction of lambda, classes are not needed anymore and are now seen as stimagata from the past. so instead of writing a class User like this: public class User {  private final...
on Apr 1, 2013


Based on the results of the last-completed poll, this year's JavaOne in San Francisco, CA is going to be a huge success. Of course, polls aren't scientific, but it's still surprising when developers overwhelmingly select a single option in a poll. A total of 2146 votes were cast in the poll, making this one of the more popular polls in recent months. The exact question and...
on Apr 30, 2013


Servlet 3.1 Specification (JSR 340) and Java Authorization Contract for Containers (JSR 115) MR3 are almost ready for release. Besides "*", the role-name "**" is introduced in the above two specifications. In a nutshell, "*" means any role defined in web.xml and "**" means any authenticated user. Prior to Servlet 3.1, web containers use proprietary mechanisms to add security-constraints for any...
on Apr 19, 2013
Servlet 3.1 Specification (JSR 340) is almost ready for the release. Several new security features have been added in this version of Servlet specification. In this blog, I will explain one of the security features, namely deny-uncovered-http-methods. Let us take a look at a simple security-constraint in web.xml as follows: <web-app xmlns="" ...
on Apr 19, 2013


Setting up SBT and an SBT Build by Joshua D. Suereth and Matthew Farwell, authors of SBT in Action The simple build tool (SBT) is a tool for building Java and Scala projects. SBT aims to build well and allow users to customize endlessly, but above all, SBT strives to provide consistency of basic concepts so that, once learned, you don
on Apr 12, 2013


Domain Model Metadata by Christian Bauer, Gavin King, and Gary Gregory, authors of Java Persistence with Hibernate, Second Edition The Java Platform, Enterprise Edition (Java EE) standard solves the problem of leaky concerns with metadata as annotations in your code or as external XML descriptors. This approach allows the runtime container to implement predefined cross-cutting concerns—...
on Apr 9, 2013


Creating a JavaFX 2 (or should I say FX8) application can be a time consuming task. We all got used to powerful frameworks helping us creating such applications based on Swing (NetBeans Platform) or SWT (Eclipse). There even was an attempt at getting this standardized in Java for Swing - JAF anyone? So where is such an application framework based on JavaFX 2/8, which leverages all the nice...
on Mar 24, 2013


Kanban Principles by Marcus Hammarberg and Joakim Sunden, author of Kanban in Action Kanban is an approach to software development based on the principles of lean. It has quickly been picked up by many businesses around the world. You can pick it up too! This article, based on chapter 2 of Kanban in Action, defines kanban, introduces kanban principles, and gets you started using kanban. In...
on Mar 21, 2013


One of my favorite sessions at Jfokus 2013 was presented by Typesafe co-founder and Java Champion Jonas Bon
on Mar 18, 2013