Technology weblog

IT-Essence
Thursday Apr 21, 2011

Spring-WS and Exception Handling through wsdl:fault - Part 2

I have learned, eventhough the spring-ws documentation is pretty clear, still alot of features are not properly documented. In this post I will focus on creating a demo webservice using Spring-WS 2. I will provide code samples for all elements required to get all exception code where you want it. All this information is based on contract-first webservice development. Here we focus on the XSD's required and how to create your WSDL from those XSD's. This post is divided into 3 parts. This post is part 2. Part 1 can be found here 
[Read More]

Thursday Apr 14, 2011

Spring-WS and Exception Handling through wsdl:fault - Part 1

I have learned, eventhough the spring-ws documentation is pretty clear, still alot of features are not properly documented. In this post I will focus on creating a demo webservice using Spring-WS 2. I will provide code samples for all elements required to get all exception code where you want it. All this information is based on contract-first webservice development. Here we focus on the XSD's required and how to create your WSDL from those XSD's. This post is divided into 3 parts. This post is part 1. 
[Read More]

Wednesday Apr 06, 2011

Why object-relational mappers are dead

Do you recognize the following nuisances?

  • Lazy loading exceptions?
  • Compromises in your domain model because of persistence requirements such as the necessity of abstract classes that don't really represent any business entities or mandatory empty constructors?
  • Issues related to cascading deletes?
  • Persistence meta data residing in your (domain) objects, such as persistence related annotations?
  • Debugging nasty (performance) issues with (generated) queries by the mapping framework?

If not, you have never seriously been involved in using an object-relational mapping framework such as Hibernate, iBatis or EclipseLink (or JPA for that matter).

[Read More]

Sunday Mar 27, 2011

Axon framework does not like HSQLDB 2.0

Apparently, the axon framework does not like the new HSQL DB 2.0.0. We noticed this by the following stack traces:[Read More]

Thursday Sep 09, 2010

New free Maven books on Sonatype website

Today I noticed that on the Sonatype website there are a couple of new Maven books (in addition to the well-known Complete Reference) that are really useful when learning, using and teaching Maven. 

Tuesday Aug 31, 2010

JSON validator

Always wondered whether your JSON syntax is correct? Try JSONLint, the JSON validator!

Excellent JavaScript fiddling site

I found this excellent JavaScript fiddling site, that lets you experiment with HTML, CSS and JavaScript. By copying and pasting the snippets you're working on in the designated text boxes, it lets you execute the JavaScript and subsequently inspect the results. Check it out whenever you are working on front-end development using e.g. JQuery and JSON

Thursday Jul 29, 2010

Nexus distribution management section for release, snapshot and site deployments

This post lists an example distribution management section from a POM where Nexus is used for the deployment of both the artifact releases and snapshots. Moreover, an entry for the site deployment is shown as well.

  <distributionManagement>
<repository>
<id>nexus-repo</id>
<name>Nexus release Repo</name>
<url>http://it-essence.xs4all.nl/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>nexus-repo</id>
<name>Nexus snapshot Repo</name>
<url>http://it-essence.xs4all.nl/nexus/content/repositories/snapshots</url>
</snapshotRepository>
<site>
<id>project-site</id>
<name>Maven project site</name>
<url>file:///tmp/elease-site</url>
</site>
</distributionManagement>

Wednesday Jul 28, 2010

Lightweight deployment with Jetty and Apache as reverse proxy

For quite some time now, I replaced Tomcat as application server for my Java web applications by the more lightweight Jetty. This solution is especially preferable in case you have multiple web applications, since every web application should run in its own application server instance (otherwise a malfunctioning application may bring down all the others with it). The lower footprint of Jetty pays then off for every instance you have running.

Jetty also has the advantage that people no longer feel tempted to mess around with mod_jk. Instead, setting up a reverse proxy via Apache merely requires one line per application in your httpd.conf. As an example, I have Nexus, Hudson and this weblog (Apache Roller) configured like so:

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /hudson http://localhost:9091/hudson
ProxyPass /nexus http://localhost:9092/nexus
ProxyPass /roller http://localhost:8080/roller
ProxyPreserveHost On

Friday Jul 16, 2010

Transactions over multiple JPA persistence units

In this post it is outlined how to configure your application to use two datasources via two separate JPA persistence units. For the domain objects, it will be transparent in which database they live. A description of the configuration of the Spring and JTA transaction manager is also shown.
[Read More]


Hire us
Archives
Tags
Links
Stats
Referrers