Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Re: error using multiple ecf.generic.server instances on the same box

Hi David,

I'll take a look at this shortly...we have an ecf conference call at the moment. A couple of things:

1) I'm interested in your use case for multiple server containers
2) If you would like to use a single port but with multiple container instances...e.g. ecftcp://localhost:3787/server1 and ecftcp://localhost:3787/server2 there is quite a lot of code (in org.eclipse.ecf.server and org.eclipse.ecf.server.generic) to support that.

Scott

David Donohue wrote:
I was able to get each server (3787 and 3788) to receive a message
from the client.  In the client, I had to do this

IContainerFactory containerFactory =
getContainerManagerService().getContainerFactory();
containerFactory.createContainer(protocol, new Object[]
{"ecftcp://localhost:3787/server", "3787"});

containerFactory = getContainerManagerService().getContainerFactory();
containerFactory.createContainer(protocol, new Object[]
{"ecftcp://localhost:3788/server", "3788"});

So ECF using ecf.generic.server seems to work, connecting to 2
different localhost servers on different ports.  However, I still get
the error message, below [error line].

Any idea why I get the error on starting the second server?

Thanks!
David Donohue

[error line]
[log;-0400 2009.10.22
06:15:30:973;ERROR;org.eclipse.ecf.osgi.services.distribution;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.distribution;code=4;message=org.eclipse.ecf.internal.osgi.services.distribution.DiscoveredServiceTrackerImpl:handleDiscoveredServiceAvailable:getRemoteServiceReferences
result is empty. containerHelper=RemoteServiceContainer
[containerID=StringID[ecftcp://localhost:3788/server],
container=org.eclipse.ecf.provider.generic.TCPServerSOContainer@1e0f2f6,
containerAdapter=org.eclipse.ecf.provider.remoteservice.generic.RegistrySharedObject@153f67e]remoteReferences=null;severity4;exception=null;children=[]]]

_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev



Back to the top