Hi Bhupendra,
First, sorry for the unusually slow response...I've been away and
out of Internet access for the last 4 days.
On 6/4/2016 5:29 AM, bhupendra nath wrote:
Hi All,
I am new to ECF framework. I have two osgi bundles one for ecf.generic.server and one for ecf.generic.client. I am able to start ecf.generic.server successfully and able to connect client as well.
I have created a MySharedObject through which I want to send message to server and get the response back. This seems to be a simple task. But I am not able to do so.
Somehow I am not able to Receive SharedObject in my client and ISharedObjectActivatedEvent is not happening.
It is possible for you to do this with the shared object api
directly/yourself, but there are already a number of implementations
for doing similar thins that you might be able to use or at least
consult. For example, this bundle
org.eclipse.ecf.provider.remoteservices [1]
contains a RegistrySharedObject [2] that uses messages between
shared object replicas to implement a replicated remote service
registry (which is used to implement OSGi remote services for the
generic provider).
Another example is in the test code for shared objects, which is
here [3]. See particularly the TestMessagingSharedObject [4] and
the test cases that use it.
Another approach would be to create and use an IChannel from the
datashare API [5]. Here is an example that does so [6]. Note
that this example uses the ActiveMQ provider (which is located [7]),
but it should also work with the generic provider.
Hope this helps. If not, please let me know and we'll get you more
specific details, examples, etc.
Scott
[1]
http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/providers/bundles/org.eclipse.ecf.provider.remoteservice
[2]
http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java
[3]
http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/tests/bundles/org.eclipse.ecf.tests.sharedobject
[4]
http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/tests/bundles/org.eclipse.ecf.tests.sharedobject/src/org/eclipse/ecf/tests/sharedobject/TestMessagingSharedObject.java
[5]
http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/framework/bundles/org.eclipse.ecf.datashare
[6]
http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/examples/bundles/org.eclipse.ecf.examples.datashare.app
I am attaching my Source Code. I am using Eclise Mars.1 as my target environment.
Kindly help me in solving this problem.
Thanks and Regards,
Bhupendra Nath
________________________________________
From: ecf-dev-bounces@xxxxxxxxxxx <ecf-dev-bounces@xxxxxxxxxxx> on behalf of ecf-dev-request@xxxxxxxxxxx <ecf-dev-request@xxxxxxxxxxx>
Sent: Saturday, June 4, 2016 5:44 PM
To: bhupendra.kec@xxxxxxxxxxx
Subject: Welcome to the "ecf-dev" mailing list (Digest mode)
Welcome to the ecf-dev@xxxxxxxxxxx mailing list!
To post to this list, send your message to:
ecf-dev@xxxxxxxxxxx
General information about the mailing list is at:
https://dev.eclipse.org/mailman/listinfo/ecf-dev
If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:
https://dev.eclipse.org/mailman/options/ecf-dev/bhupendra.kec%40hotmail.com
You can also make such adjustments via email by sending a message to:
ecf-dev-request@xxxxxxxxxxx
with the word `help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.
You must know your password to change your options (including changing
the password, itself) or to unsubscribe without confirmation. It is:
9582145509
Normally, Mailman will remind you of your eclipse.org mailing list
passwords once every month, although you can disable this if you
prefer. This reminder will also include instructions on how to
unsubscribe or change your account options. There is also a button on
your options page that will email your current password to you.
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ecf-dev
|