|Re: [ecf-dev] Not Able to Obtain Shared Object from ecf.generic.server|
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
contains a RegistrySharedObject  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 . See particularly the TestMessagingSharedObject  and the test cases that use it.
Another approach would be to create and use an IChannel from the datashare API . Here is an example that does so . Note that this example uses the ActiveMQ provider (which is located ), 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.
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.