Monday, April 7, 2008

Making Spring Dynamic Modules work

Spring Dynamic Modules (Spring support for OSGi) is a great thing. Just in case I am not the only one who struggled to get the required bundles straight, here goes. These are the bundles that I had to import to make Spring DM work on the Equinox OSGi implementation:

aopalliance.osgi-1.0-SNAPSHOT.jar
backport-util-concurrent.osgi-3.1-SNAPSHOT.jar
jcl104-over-slf4j-1.4.3.jar
log4j.osgi-1.2.15-SNAPSHOT.jar
slf4j-api-1.4.3.jar
slf4j-log4j12-1.4.3.jar
spring-aop-2.5.1.jar
spring-beans-2.5.1.jar
spring-context-2.5.1.jar
spring-core-2.5.1.jar
spring-osgi-core-1.0.jar
spring-osgi-extender-1.0.jar
spring-osgi-io-1.0.jar

Install these and then make sure that you install a bundle which contains the LOG4J configuration of your choice. This is described here, so I won't go over that again.

BTW, the version numbers on the above bundles might change, if you use later versions of Spring DM and their dependencies.

No comments: