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 


Programming

Java API for WebSocket is a new JSR to Java EE 7. It provides a stardard Java API for creating WebSocket applications. This gives web applications the ability to push data. In Java EE 6 samples, we added a chat room sample to illustrate how to use of Servlet 3.0 asynchronous operation. In that sample, the servlet code did the following: keep track of AsyncContext in a Queue create a thread to...
on Aug 13, 2013
Our books are great. But don’t just trust us; here are some reviews from developers who have actually bought, read and loved the books. Trust them! Clojure Made Simple – John Stevenson Great first step into Clojure, a pleasure to read – Sisu **** 4 Stars I’m new to Clojure, and rather than coming to grips immediately with functional programming for large projects, I wanted to get familiar with...
on Jul 29, 2013
In Java development, we may encounter the complex set operations. Java alone is not powerful enough to save programmers’ efforts in implementing the computation details, which is time-consuming and poor in code reuse. In view of this, programmers usually resort to dynamic calculation script for set operation. SQL is surely the first kind of script that comes into most programmers’ mind. However,...
on Jul 16, 2013
How much code documentation is a symptom of bad coding (i.e. poor method or variables names, poor class or package structure, missing logging, etc)?
on Jul 15, 2013
What should be in a source control commit message for a single file add? Ideas: Reason: The reason for the file should be in a comment in a file so it would be a duplicate to also include in the commit message. File add: Already part of the commit Issue identifier From http://jamesjava.blogspot.com/2012/11/source-control-message-for-single-file.html
on Jul 15, 2013

Servlets

WebSocket is a bi-directional, full-duplex, TCP based messaging protocol. It is originally proposed as part of HTML5 and is a IETF-defined Protocol (RFC 6455). And W3C has defined JavaScript API for WebSocket which is in candidate recommendation since 2012-09-20. JSR 356: Java API for WebSocket provides a standard Java API for creating WebSocket Applications. The specification provides an API for...
on Aug 7, 2013
Expression Language (EL) was first introduced as part of JSTL 1.0, was then moved JSP 2.0 and was unified with JSF 1.2 in JSP 2.1. In Java EE 7, EL is a new separate JSR, JSR 341. Many new features are introduced in EL 3.0. This blog shows how to use new following new features of EL 3.0: Standalone environment Lambda expression (section 1.20 of EL 3.0 spec) The new operator ; to separate...
on Jul 1, 2013

Databases

In report development, we may need to present the data from multiple databases in one report, such as data from MSSQL database for CRM and Oracle database for ERP. If the reporting tool like iReport only supports single data source, then we need to consolidate the multiple data sources into a single data source. The Crystal, BIRT, and other so-called reporting tools for multiple data source can...
on Aug 6, 2013
The Browser Binding with a CMIS Repository By Florian Müller, Jay Brown, and Jeff Potts, authors of CMIS and Apache Chemistry in Action A big part of the CMIS specification describes how the CMIS domain model is mapped to the bytes that are transferred. These mappings are called bindings. CMIS 1.0 defines two bindings, the Web Services...
on Jul 2, 2013

Web Applications

Apache Thrift’s Role in Distributed Applications By Randy Abernethy, authors of The Programmer's Guide to Apache Thrift Apache Thrift helps programmers build high performance cross-language services to address the growing need for multilanguage integration. In this article, based on chapter 1 of The Programmer’s Guide to Apache Thrift, author Randy...
on Aug 1, 2013

Tools

The data computation layer in between the data persistent layer and the application layer is responsible for computing the data from data persistence layer, and returning the result to the application layer. The data computation layer of Java aims to reduce the coupling between these two layers and shift the computational workload from them. The typical computation layer is characterized with...
on Jul 31, 2013
Recently, I read Why Big Data Projects Fail by Stephen Brobst. I can’t agree more with his opinions which exposed the problem I’ve been worried about. In this article, I am going to further discuss this topic to remind the enterprises to beware of falling into such pitfall of failure. Let’s have a look on a positive example. As a successful enterprise in leveraging big data, how does Google make...
on Jul 24, 2013

Open Source

The 15th anniversary of OSCON showed its interest in diversity, and continuing to broaden the market for open source technology. I saw a lot of discussions on how to get people interested, and keep people involved. It was remarkably open to all sorts of ideas on how to keep open source going into the future. I started with Tim Berglund’s GitHub Power Tools, which was filled with people who had...
on Jul 30, 2013
OSCON 2013 (Open Source CONvention) is underway in Portland, Oregon. Even if you can't be there, you can still participate by watching the keynote sessions, which will be live-streamed on Wednesday, Thursday, and Friday. While all the keynotes are likely to be quite good (I found them to be so when I was at OSCON some years ago), several keynotes in particular stand out for me (all times are US...
on Jul 23, 2013

Community

Do you know who my current hero is? Jono Bacon. Even for you coders/developers, he's a hand you should shake. He gets community leaders together to think about their community and ways to help it to be better. He helps us to help you, and it's more important than I had realized. CLS was an amazing opportunity for me to listen to and discuss questions on the non-tech side, which helps me to be...
on Jul 25, 2013

J2EE

This brief blog entry explains the Mojarra bug triage process, and shares some tips for maximizing the chances your bug will be quickly fixed and find its way into a release. Mojarra is the JSF implementation in several app servers and is the source code from which the reference implementation of the JSF specification is derived. Mojarra has had a publically accessable issue tracker since 2004,...
on Jul 15, 2013

Patterns

What are the cost vs. benefits of creating interfaces and how should they be balanced? I am only considering cases where interfaces are optional and aren’t needed. Benefits: Simplify interaction: Easier to see how to use a List than an ArrayList Make testing easier because replacement implementations can be used Can make future changes easier Costs: Harder to understand what the code is doing...
on Jul 15, 2013

Security

Is it more secure to allow the browser to save a website password or prohibit the browser from saving the password? Benefits of allow the browser to save the password: Spoof websites are more easily detected because the username and password don't show up (this may be a mute point if the username is saved but not the password). Keyloggers won't pick up the password if you don't type it. (Thanks...
on Jul 15, 2013

Performance

Could java.util.concurrent.lock.Lock use a static list of all threads that have locks and ThreadLocal locks lists to know about all in use locks and then check for incorrect order when lock() is called. Consider: In lock: Check the ThreadLocal list and if there are no other locks then proceed. Else if there are other locks then look through other threads to determine if any have any of the same...
on Jul 15, 2013

Blogging

How did you first get into developing / coding? My first encounter with a computer was in 1987 during a physics class. This particular one (a Commodore C64) went immediately to my Xmas wish list. When I teared away the gift wrapping, I found the datasette broken. A datasette was a tape drive using audio cassettes for storage – without it, there were no chance to play any of the bundled games;...
on Jun 24, 2013