Search results

"tag:"java ee""

Title and summary Date/time
Global Data Consistency, Transactions, Microservices and Spring Boot / Tomcat / Jetty
We often build applications which need to do several of the following things together: call backend (micro-) services, write to a database, send a JMS message, etc. But what happens if there is an error during a call to one of these remote resources, ...
Oct 5, 2015
8:59:00 PM
Several Patterns for Binding Non-transactional Resources into JTA Transactions
I recently published an article about how to bind non-transactional resources like web services / microservices into global distributed transactions so that recovery is handled automatically. Over the years I have often had to integrate ...
Aug 11, 2015
9:48:00 PM
Mysql versions prior to 5.7 do not fully support two phase commit
While doing some tests for the recently released generic JCA adapter which is capable of binding remote calls to microservices (as well as other things) into JTA transactions, I discovered a bug in Mysql 5.6 which has been around for nearly ten years. ...
Aug 10, 2015
9:39:00 PM
Global Data Consistency in Distributed (Microservice) Architectures
UPDATE: Now supports Spring and Spring Boot outside of a full Java EE sever. See new article for more details! I've published a generic JCA resource adapter on Github available from Maven (ch.maxant:genericco...
Aug 4, 2015
9:28:00 PM
Is Asynchronous EJB Just a Gimmick?
In previous articles (here and here) I showed that creating non-blocking asynchronous applications could increase performance when the server is under a heavy load. EJB 3.1 introduced the @Asynchronous annotation for specifying that a method will return ...
Jul 25, 2015
1:10:00 PM
Javascript everywhere
I can think of at least two scenarios when you might need to run the same algorithms in both a Javascript and a Java environment. A Javascript client is running in offline mode and needs to run some business logic or complex validation which the ...
Jul 17, 2015
10:50:59 PM
Play 2.0 framework and XA transactions
XAtransactions are useful and out of the box, Play 2.0 today does not have support for them. Here Ishow how to add that support: First off, some examples when XA is useful: - JPA uses two physical connections if you use entities from two different ...
Oct 4, 2012
12:16:00 AM
JSR-299 & @Produces
I've been reading JSR-299 and I have a few thoughts. First, a quote from chapter 1: "The use of these services significantly simplifies the task of creating Java EE applications by integrating the Java EE web tier with Java EE enterprise services. In ...
Nov 7, 2011
10:44:00 PM
Tomcat, WebSockets, HTML5, jWebSockets, JSR-340, JSON and more
On my recent excursion into non-blocking servers I came across Comet, server push technologies and then Web Sockets. I was late arriving at the Comet party, but I think I have arrived at the Web Sockets party just in time. The final standard is still ...
Jun 21, 2011
11:12:00 PM
Non-blocking (NIO) Server Push and Servlet 3
In my previous blog posting, I wrote about what I would expect node.js to do in order to become mature. I introduced the idea of having a framework which lets you define a protocol and some handlers in order to let the developer concentrate on writing ...
Jun 5, 2011
8:40:00 PM
Java non-blocking servers, and what I expect node.js to do if it is to become mature
node.js is getting a lot of attention at the moment. It's goal is to provide an easy way to build scalable network programs, e.g. build web servers. It's different, in two ways. First of all, it brings Javacript to the server. But more importantly, ...
May 22, 2011
9:36:09 PM
Persistent State Machine with Apache SCXML
The source code for this blog article can be downloaded here. I'm bored of reinventing the wheel. Everytime I need a state machine to ensure my states traverse only valid transitions, I find myself either not bothering, because I trust my coding (and ...
Aug 26, 2010
11:21:00 PM
Taking Advantage of Parallelism
A while ago some colleagues attended a lecture where the presenter introduced the idea that applications may not take full advantage of the multi-core servers which are available today. The idea was that if you have two cores but a process which is ...
May 16, 2010
3:50:00 PM
GlassFish 3 In 30 Minutes
The aim: Set up a simple Java EE 6 project on GlassFish v3 in no time at all. The project must include: email, JMS, JPA, web and EJB (session bean, message driven bean and a timer bean). It must also include security and transactions. Sounds like a lot, ...
May 8, 2010
11:40:00 PM