I have try to manage host remoting services with my Spring support (I'm using my LocalContainerFactoryBean class) and it works:) The bundle need NONE Java code, only XML file Spring is used. Here this XML file Spring :
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="
http://www.springframework.org/schema/beans"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="
http://www.springframework.org/schema/osgi"
xsi:schemaLocation="
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<osgi:reference id="containerManager"
interface="org.eclipse.ecf.core.IContainerManager" timeout="1000" />
<bean class="org.springframework.remoting.ecf.LocalContainerFactoryBean">
<property name="containerManager" ref="containerManager"></property>
<property name="containerType" value="ecf.generic.server"></property>
</bean>
<bean id="helloService"
class="org.eclipse.ecf.examples.remoteservices.hello.impl.Hello"></bean>
<osgi:service ref="helloService"
interface="org.eclipse.ecf.examples.remoteservices.hello.IHello">
<osgi:service-properties>
<entry key="osgi.remote.interfaces" value="*" />
</osgi:service-properties>
</osgi:service>
</beans>
I think you can use Spring DM without my LocalContainerFactoryBean class which create the ECF IContainer, but with this class you are full declarative. I have seen your work about DS and you must create IContainer into Java.
I have intention to create a bug with my work but before I have several questions :
1. Package name.
1.1 org.springframework.remoting.ecf.*
My class LocalContainerFactoryBean is into the bundle org.springframework.remoting.ecf into the package org.springframework.remoting.ecf. I have choosen this package name because it's base package name of Spring remoting (ex : org.springframework.remoting.httpinvoker).
My question is do you agree to have this package name or do you prefer having a package name like org.eclipse.ecf.springframework ?