Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] ECF Spring Support

Hi Scott,

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=""
    xmlns:xsi="" xmlns:osgi=""

    <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 id="helloService"

    <osgi:service ref="helloService"
            <entry key="osgi.remote.interfaces" value="*" />


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 ?

1.2 hello consumer/host  example with Spring DM.

I have named my projects org.eclipse.ecf.examples.remoteservices.hello.springdm.consumer and
Is it ok with that? (I have followed the DS name org.eclipse.ecf.examples.remoteservices.hello.ds.consumer)

2. Question about IContainer.

I would like manage into my LocalContainerFactoryBean the URL (containerId) of client/server side, but I'm newbie with ECF and I don't know how manage that? Could you help me for that? Thank a lot.

If you have time and you want we could tchat together to discuss about Spring Support for ECF.

Thank a lot for your help.

Regards Angelo

2010/2/4 Angelo zerr <angelo.zerr@xxxxxxxxx>

I'm very happy that my (very basic) work please you!

Yes sure I can create a bug and attach my source with the sample and update the wiki. Before I would like just comments my work and manage another thing like URL of server bundle. I must study your Host code to see if we can manage the server side with Spring DM. If you want we could tchat on ECF IRC together about the Spring support. Tell me and I will connect me if I can.

Regards Angelo

2010/2/4 Scott Lewis <slewis@xxxxxxxxxxxxx>

Hi Angelo,

Angelo zerr wrote:
Hi Scott,

I have studied ECF and start to implement Spring support for ECF for remoting service. I can manage the sample org.eclipse.ecf.examples.remoteservices.hello.consumer with Spring DM. So you need NOT use ServiceTracker to get remoting service. Full Declarative Services is used. Let's me explain you how it works.

<explanation deleted for brevity>

My work is very basic (I have not managed future IRemoteService like the example), but you can manage basic remoting services.

What do you think about that? Do you like?

Yes, this is wonderful!!

If you like I could send you my (little) work and I will be happy to tchat with you to perform Spring support someone could explained me more feature about ECF.

Angelo, would you consider contributing to ECF your example hello world service with Spring code?  If you agree to this, I would like to include your examples in the set of examples we make available.  We currently have 'normal' hello host and consumers, and we have example host and consumers using OSGi declarative services, and it would be excellent if we could include your Spring-based hello world examples (both host and consumer, if possible).

Further, would you be willing to take your description and create wiki page about this work with Spring and ECF remote services?  We can put it alongside this (new) examples/tutorial page I have been and am continuing to work on

I will happily assist you with both the contribution and with the wiki page, if you like and answer any/all questions you have.  Once we have the contribution and wiki page I will blog about this work publicly, so that both the Spring and ECF communities can be made more aware of it.

If you agree to contribute the work, we can open a new bug (e.g. Create hello world example using Spring) and attach your new project to the bug (as exported zip).

How does this sound?  Would you consider contributing the example code?

Great work...and thanks for letting us know about it.


ecf-dev mailing list

Back to the top