[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ecf-dev] getting started with ECF
- From: David Donohue <dd@xxxxxxxxxxxxxxxx>
- Date: Wed, 23 Sep 2009 22:59:22 -0400
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=XxLSNj1LreXnXXVLS5FD7ukFtlwtgSd1CTSVYnq/CquaCZT11i7sLJUARuZjZv/sP9 X8MsNp739pKEwILSVhyS1oceiHe0i+iE596/ahq+vGXimBl013kRL7B2S3vCtW+ePNec 98b2uCIRc7devIJocjd2ecg9dscxSu08Xi1lQ=
Thanks so much, Scott for your most thoughtful reply! It appears that
there is no such method
so I cannot do this
Most of the createContainer() methods require an ID as an argument,
but it seems that to create an ID, I need a container! (Circular
situation). I do not know how to create the proper namespace.
I am sure I am missing something silly. Many thanks for setting me straight.
On Wed, Sep 23, 2009 at 1:03 PM, Scott Lewis <slewis@xxxxxxxxxxxxxxxxx> wrote:
> Hi David,
> David Donohue wrote:
>> ECF looks like just what I need. I have 2 questions.
>> My first question is: which protocols, service APIs, & architecture
>> should I use?
>> I want to have clustered OSGi applications, to permit handling a large
>> load on my calculation-intensive Eclipse RAP web application. I would
>> like to have my UI running as one OSGi instance. This UI would
>> balance load of many users by connecting to distributed data servers,
>> each running as OSGi service, and each storing the data for a
>> different set of users. These OSGi services might be running on the
>> same physical box or on distinct machines, within a network. The
>> client would be doing data operations. Ideally I could share objects
>> between client and servers.
> Interesting. Incidently, I (Scott) have been working on a load balancing
> system for my employer (EclipseSource). I intend to present some of the
> work at Markus' and my ESE talk . It load balances remote service
> requests (i.e. individual method calls on the service interface). We are
> using this to do load balancing of P2 planner operations...as the P2 planner
> can be computationally intensive for large numbers of features/IUs.
> We are currently using JMS/ActiveMQ as the remote service provider for
> ECF...because (among other reasons), JMS/ActiveMQ has support for load
> balancing semantics (distributing messaging/requests over n Queue
> consumers), and we can just use that to do load balancing of remote services
> rather than implement the load balancing semantics ourselves.
>> My second question is: how do I get started? I followed these
>> and I disabled r-OSGi on my Eclipse IDE. However I still get this
>> message when starting the service host:
>> WARNING: Port 9278 already in use. This instance of R-OSGi is running
>> on port 9279
> Yes. This will/does happen when multiple instances of r-OSGi are run
> localhost, because r-OSGi assumes a default port. r-OSGi does allow
> specification of the default port via a system property (i.e. see this page
> for some info about this  ). There is also an enhancement request to
> allow container creators to specify the port for r-OSGi to listen on .
>> So I thought I would use a different protocol. I tried
>> ecf.generic.client and ecf.generic.server. But when I start the host
>> I get an exception
>> ...Caused by: java.lang.IllegalArgumentException: Port value out of range:
>> at java.net.ServerSocket.<init>(ServerSocket.java:180)
>> at java.net.ServerSocket.<init>(ServerSocket.java:141)
>> at org.eclipse.ecf.provider.comm.tcp.Server.<init>(Server.java:39)
> This error is because the ecf generic provider needs to be told what it's
> URI/ID is upon construction (it doesn't have a default). This is done with
> a line like:
> IContainer container =
> <- note the protocol,host,port,path
> I've opened a new bug  to enhance the generic provider to allow a default
> URI (like above) to be set automatically. In the mean time, you will need
> to specify the ID yourself (e.g. as above).
>> Bonus question:
>> It seems that the ECF update site(s) have been down the last few days?
> We are now making ECF daily builds (for ECF 3.1) available as p2 repos
> ...and you should be able to get the daily builds (for 3.1 stream) from
> those repos. If you are having any trouble with getting/installing from the
> given location, please do let us know.
>> Thanks for your help!
> No problem. Please do let us all know what further needs you have WRT your
> project and we will do what we can to help.
>> David Donohue
>  http://www.eclipsecon.org/summiteurope2009/sessions?id=878
>  https://bugs.eclipse.org/bugs/show_bug.cgi?id=267521
>  https://bugs.eclipse.org/bugs/show_bug.cgi?id=290291
>  http://dev.eclipse.org/mhonarc/lists/ecf-dev/msg02913.html