Home

Search results

"tag:"design""

1 2 Next >>

Title and summary Date/time
1
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
2
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
3
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
4
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
5
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
6
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
7
Playing with Cache Performance
My current client has a service which connects to an old IBM z/OS application (legacy system). The data centre charges for each message sent to this legacy system, rather than using a processor or hardware based pricing model. The output from this ...
Dec 30, 2010
10:43:00 PM
8
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
9
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
10
User Mental Models
I've spent the last 6 weeks looking into an interesting paradigm called Data, Context & Interaction (DCI). I've written a few introductory papers, and some tools too. DCI has the following goals: To improve the readability of object-oriented ...
Nov 1, 2010
11:04:00 PM
11
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
12
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
13
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
14
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
15
Auto-update of Midlets
Any professional application should be capable of updating itself over the internet. Even Midlets! The idea is fairly easy in that the Midlet needs to make a call to the server to check what version the latest software has, and compare that to the ...
Mar 18, 2010
8:11:00 PM
16
Choosing a Model/Event Pattern
The following diagrams show different implementation patterns of models and corresponding events, as typically used in the UI. Depending upon your needs, you can use the following tables to decide which pattern to implement. The patterns are split into ...
Mar 17, 2010
11:00:00 PM
17
Idempotency and Two Phase Commit
The requirement for services to be idempotent is often stated as being important for enterprise applications. But what does that mean, and why? Idempotent means that a service can be called multiple times with the same data, and the result will always be ...
Sep 29, 2009
4:12:58 PM
18
Building a Webmail Solution on top of Apache James Mail Server
Part of maxant's offering to small businesses is email hosting. As well as standard POP3/SMTP access, maxant offers webmail access. A quick search on the web shows that there are several open source webmail solutions available. The problem with all of ...
Sep 29, 2009
3:49:21 PM
19
Reporting Stats
A few years ago when I was the integration architect in charge of my Global 500 customers EAI projects, the product that we used did not really offer any way to track the number of messages travelling through the system. To get around this, we added a ...
Aug 20, 2008
10:52:00 PM
20
OSGi - Just another fad?
In the last few weeks I have heard the term OSGi come up more and more, and one blog posting I read suggested that it was the hot topic of 2008. So I started to research a little. I am currently working heavily with the Eclipse Rich Client Platform ...
Jun 10, 2008
10:31:00 PM

1 2 Next >>