Archive for June, 2010

Testing CXF with Autowiring using Spring

Here is how to create a test for a CXF web service implementation class. The test use spring-mock base classes and hereby support stuff like transactions and autowiring through annotations. Neat.
I have a base class like this:

import org.springframework.test.jpa.AbstractJpaTests;

public abstract class AbstractCxfWsBeanTest extends AbstractJpaTests {
public static final String[] SERVICE_CONFIG_LOCATION = new String[]{
[...]

June 20, 2010  Tags: , , , ,   Posted in: Programming  No Comments

One Pool to Rule Them All…in tomcat

I am developing a system that gets deployed as a bunch of separate webapps but all in the same tomcat instance. Not long ago, we opened up production for a lot more users, which quickly led to some resource exhaustion-primarily on the database backend. In other words, … we were beating oracle to death.
After some [...]

June 13, 2010  Tags: , , ,   Posted in: Programming  No Comments