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 


JavaOne

Based on the results of the last-completed Java.net poll, this year's JavaOne in San Francisco, CA is going to be a huge success. Of course, Java.net 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

Security

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="http://www.w3.org/2001/XMLSchema" ...
on Apr 19, 2013
Servlet 3.1 was in Public Review in Janurary 2013. And it is in Proposed Final Draft now. Most of the new features are related to security. In this following, I will highlight features since Servlet 3.1 Public Review: add new API javax.servlet.http.Part#getSubmittedFileName add new API javax.servlet.ServletContext#getVirtualServerNameThis API allows a JASPIC module to be registered in a Servlet...
on Mar 18, 2013

JSR

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

Community

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
Assembling a team of Java developers can be a challenging task. Getting the right people together requires a combination of luck, skill, and plenty of patience. When someone new joins your team, they could also be new to your company. Over the years, we have conducted many job interviews of Java developer candidates wishing to join our team and company. Our Java job interview format is simple and...
on Mar 16, 2013

Tools

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’t have to unlearn them as you dive deeper into the build...
on Apr 12, 2013

Databases

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
The applications have grown together with the man dream to get more and more information, then more application have been emerging and the man had became hostage of the application. For example we can recognized the evolution between man and machine: In the first time: Many men to just one machine ( like mainframe's age) then one man to one machine ( in to Personal computer era) and...
on Mar 17, 2013

Servlets

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

Swing

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

Deployment

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

Programming

One of my favorite sessions at Jfokus 2013 was presented by Typesafe co-founder and Java Champion Jonas Bonér. I always enjoy discussions about how technology evolves over the decades, how we break away from concepts, then sometimes weave our way back via the latest and greatest thing, which can sometimes appear strikingly similar to something that was very much in vogue a decade or so earlier....
on Mar 18, 2013
Ember.js Core Features by Joachim Haagen Skeie, author of Ember.js in Action Ember.js makes it possible to write large web applications without having to constantly consider how our data will get from A to B, how your web elements will be updated in a clean and efficient manner, and being able to easily integrate with any third-party JavaScript framework of your choice. This article, based on...
on Mar 18, 2013
Building a Java Web Application with Gradle by Benjamin Muschko, author of Gradle in Action Gradle provides a build-by-convention approach for certain problem domains like Java projects by introducing pre-defined project layouts with sensible defaults. In this article, based on chapter 3 of Gradle in Action, author Benjamin Muschko explains how to apply the Java, War and Jetty plugins to build...
on Mar 18, 2013

J2EE

This quick blog entry is just to advertise the availability of the Proposed Final Draft of JSF 2.2 (JSR-344). You may download the draft of the spec at <http://jcp.org/aboutJava/communityprocess/pfd/jsr344/index.html>. You may try out the implementation by dropping this maven GAV into the modules directory of GlassFish 3.1.2.2: <a href="http://search.maven.org/#search|ga|1|g%3A%...
on Mar 15, 2013