Search results
"tag:"java""
| Title and summary | Date/time | |
|---|---|---|
|
1
|
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 |
|
2
|
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 |
|
3
|
A really simple but powerful rule engine
UPDATE: Version 2.0 of the library now exists which supports Scala. It is a breaking change in that "Action" instances as shown below are now "AbstractAction... |
Nov 12, 2011 9:26:00 PM |
|
4
|
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 |
|
5
|
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 |
|
6
|
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 |
|
7
|
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 |
|
8
|
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 |
|
9
|
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 |
|
10
|
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 |
|
11
|
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 |
|
12
|
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 |
|
13
|
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 |
|
14
|
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 |
|
15
|
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 |
|
16
|
Transfer-Encoding: chunked
The J2ME HTTPConnection which comes with MIDP lets you make HTTP requests to your server. It doesn't do much at a high level, for example the API doesn't have methods like addCookie() - you need to manually add them with a request header. But the ... |
Feb 24, 2010 7:27:00 AM |
|
17
|
A J2ME Library and a simple HTTP Service Framework
J2ME's support for calling a server is rather simple and low level. Not only do you have to deal with the HTTP Connection at a low level, there is no high level support for cookies, authentication or remote procedure calling. So if you want to pass an ... |
Feb 21, 2010 11:29:00 PM |
|
18
|
Base X Encoding
Ever needed to shorten a number so that its easier to remember? Or provide someone with a temporary PIN which is short enough to remember, but long enough to pretty much ensure it wont be randomly guessed by someone else? Converting a binary number into a ... |
Feb 2, 2010 8:19:00 PM |
|
19
|
Enterprise GWT: Combining Google Web Toolkit, Spring and Other Features to Build Enterprise Applications
The following is just the introduction taken from a new white paper available at www.maxant.co.uk/whi... |
Jan 25, 2010 8:00:00 PM |
|
20
|
Professional enterprise JAX-WS in no time at all?
My current client is talking about migrating to Java 1.6 and a Java EE 5 app server (we are currently still on 1.5 because our data center only supports an older app server). One reason for doing so is that this stack supports JAX-WS. Not knowing much ... |
Dec 22, 2009 10:26:00 PM |