Serialization of numeric types with BlazeDS

We are analyzing BlazeDS 3.2.0 for communication between the Flex client and the Java server. BlazeDS uses the AMF binary protocol to serialize and deserialize Java classes, and the Flash Player does the same for the Flex classes on the client side. To make the switch to BlazeDS for existing code smoother, and to ensure we have the best mapping we can get, we slightly customize the way serialization happens on the Java side for primitive types. [...]

Configuring modular JPA applications with Spring

One of the top problem with JPA configuration is the inability to provide a true modular configuration of an application’s persistence unit. The persistence unit declares the entities that are to be included for a particular JPA-compliant implementation like Hibernate. The problem in practice is that it is forbidden to link entities if they are placed in two different persistence units so a single persistence unit, defined at the application level must be used. This single configuration file needs to declare the entities and/or the list of JAR files to be scanned in the application and it needs to be aware of all the modules that are used by the application (that is, it cannot update itself based on the available modules). This blog entry explains how this issue can be circumvented using Spring. A sample showcase project is also attached. [...]

Identifying performance bottlenecks in multi tier applications

In a multi tier application, it is often difficult to have a global overview of the time spent in the different layers for a request. Read what tools can be used in this process, and how they can be combined to get a global overview of the system. [...]