Home

Search results

"tag:"java""

1 2 3 Next >>

Title and summary Date/time
1
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
2
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
3
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
4
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
5
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
6
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
7
A reactive and performant Spray + Akka solution to "Playing with concurrency and performance in Java and Node.js"
In my previous post I examined a fictitious trading engine and compared a Java based blocking solution to a Node.js based non-blocking solution. At the end of the post I wrote that: I suspect that following the recent success of Node.js, more and more ...
Dec 30, 2014
9:17:00 PM
8
Non-Blocking Asynchronous Java 8 and Scala's Try/Success/Failure
Inspired by a recent newsletter from Heinz Kabutz as well as Scala's Futures which I investigated in my recent book, I set about using Java 8 to write an example of how to submit work to an execution service and respond to its results asynchronously, ...
Oct 13, 2013
10:22:00 PM
9
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
10
100% code coverage, Hibernate Validator and Design by Contract
Code coverage in unit testing was one of the first things I learned in my software engineering career. The company I worked at taught me that you should have 100% coverage as a goal, but achieving it does not mean there are no bugs in the system. At ...
Nov 28, 2011
8:29:37 AM
11
A really simple but powerful rule engine
UPDATE: Version 2.2.0, JavaScript (Nashorn) rules in the JVM - see here. UPDATE: Version 2.1.0, Java 8, Maven, GitHub - see here. UPDATE: Version 2.0 of the library now exists which supports Scala. It is a breaking change in that "Action" ...
Nov 12, 2011
9:26:00 PM
12
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
13
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
14
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
15
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
16
Node JS and Server side Java Script
Let's start right at the beginning. Bear with me, it might get long... The following snippet of Java code could be used to create a server which receives TCP/IP requests: class Server implements Runnable { public void run() { try { ...
Mar 5, 2011
10:36:00 PM
17
DCI and Services (EJB)
Data, Context and Interaction (DCI) is a way to improve the readability of object oriented code. But it has nothing specific to say about things like transactions, security, resources, concurrency, scalability, reliability, or other such concerns. ...
Nov 20, 2010
10:29:00 PM
18
DCI Plugin for Eclipse
The Data, Context, and Interaction (DCI) architecture paradigm introduces the idea of thinking in terms of roles and contexts. See some of my white papers for a more detailed introduction into DCI, but for this blog article, consider the following ...
Nov 16, 2010
9:58:00 PM
19
Dynamic Mock Testing
Have you ever had to create a mock object in which most methods do nothing and are not called, but in others something useful needs to be done? EasyMock has some newish functionality to let you stub individual methods. But before I had heard about that, ...
Nov 3, 2010
8:45:00 PM
20
JAX-WS Payload Validation, and Websphere 7 Problems
A WSDL file contains a reference to an XSD document which defines the data structures which can be sent to the service over SOAP. In an XSD, you can define a Type for an element, or things like the elements cardinality, whether its optional or required, ...
Sep 9, 2010
10:54:00 PM

1 2 3 Next >>