I have SI 2.x running against the virgo kernel runtime. The 2.x samples don't have support for OSGi built in.
I started out in STS with the Virgo web server runtime configured, and added the simplest 2. x sample (hello) project, then in Spring Tools menu, added OSGi Bundle project nature, targeted Virgo runtime, and built up the MANIFEST.MF (with added an activator):
Code:
Manifest-Version: 1.0
Bundle-Version: 1.0.0
Bundle-Name: Hello
Bundle-ManifestVersion: 2
Bundle-SymbolicName: hello
Import-Package: org.osgi.framework;version="[1.5.0,1.5.0]",
org.slf4j;version="[1.6.1,1.6.1]"
Bundle-Activator: hello.Activator
Import-Library: org.springframework.spring;version="[3.0.0,3.1.0]"
Import-Bundle: org.springframework.integration;version="[2.0.0,2.1.0]"
Running against the virgo kernel is pretty much the same, without the web support. Here's how to upgrade the kernel runtime to the latest spring framework libs.