javax.servlet.http.HttpSession provides a way to identify an user across multiple HTTP requests and to store user specified information. In other words, it provides a support of stateful communications with the stateless HTTP protocol.
For security and memory management, sessions need to be invalidated at a certain time. There are two related methods in HttpSession.
on Aug 29, 2013
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
“Indexing, updating and deleting data” is new to Elasticsearch in Action + 45% off
Save 45% on Elasticsearch in Action with Promo code mlhinmanjn at manning.com
Elasticsearch in Action by Matthew Lee Hinman and Radu Gheorghe has been updated.
Chapter 4, “Indexing, updating and deleting data”.
Chapter 4 looks at getting data in and out of Elasticsearch: indexing, updating and deleting...
on Aug 29, 2013
Save 45% on The Programmer's Guide to Apache Thrift with Promo code mlthriftjn2 at manning.com.
The Programmer's Guide to Apache Thrift by Randy Abernethy has been updated!
•Chapter 1-3 have been updated and the following chapters have been added:
•Chapter 4, "Handling Exceptions"
•Chapter 5, "Serializing Data with Protocols"
•Chapter 6, "Apache Thrift IDL"
We have three new chapters...
on Aug 28, 2013
“Artifact assembly & publishing” is new to Gradle in Action + 45% off
Gradle in Action by Benjamin Muschko is 45% off with Promo code mlmuschkojn at manning.com.
In the context of continuous delivery, publishing your artifact plays a crucial role. Once you've packaged the delivery with a specific version, it’s ready to be deployed to various target environments for acceptance...
on Aug 27, 2013
"Using State in Actors" is new to Akka in Action + 45% off
Akka in Action is written by Raymond Roestenburg, Rob Bakker, and Rob Williams
Save 45% on Akka in Actionwith promo code mlakkajn at manning.com.
In chapter 7, you learned about two possible ways to keep state in an Actor by using class attributes and the become/unbecome functionality. Chapter 10 talks about two more solutions that you...
on Aug 27, 2013
Save 45% on The Mikado Method with Promotional code mlellnestamjn at manning.com. Offer expires Aug 26, 2013.
Chapter 6, “Emergent design with the Mikado Method”
Chapter 6 discusses the principles that make software more responsive to changes and gives you strategies to use when you need to decide where to take the design. You’ll learn about each SOLID design principle, package...
on Aug 21, 2013
Kanban in Action MEAP Update + 44% off
Save 44% on Kanban in Action with Promotional code mlkanbanjn at manning.com
Chapter 9, “Planning and estimating”.
Planning involves taking everyone who is connected to your process into consideration and keeping them informed and up to date. Chapter 9 helps you plan the kanban way and gives you estimating, story points, and other relative...
on Aug 20, 2013
Grails in Action, Second Edition MEAP Update + 44% off
Save 44% on Grails in Action, Second Edition with Promotional code mlgsmith2jn at manning.com
Chapter 9, “Building reliable applications”.
We have now introduced all the core elements that make up a standard Grails application. The question now is how to further develop the application while ensuring that we don’t introduce bugs...
on Aug 20, 2013
According to research, most complex report development work can be simplified by performing the data source computation in advance. For example, find out the clients who bought all products in the given list, and then present the details of these clients.
In developing such reports, it is the “computation” part and not the “presentation” part that brings about major difficulties. In which stage...
on Aug 20, 2013
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
In Java development, the typical data computation problems are characterized with:
Long computation procedure requiring a great deal of debugging
Data may from database, or Excel/Txt
Data may from multiple databases, instead of just one.
Some computation goals are complex, such as relative position computation, and set-related computation
Just suppose a sales department needs to make statistics...
on Aug 13, 2013
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
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
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
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
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