Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializing EmfServer #4

Open
sdybiec opened this issue May 28, 2024 · 3 comments
Open

Serializing EmfServer #4

sdybiec opened this issue May 28, 2024 · 3 comments

Comments

@sdybiec
Copy link

sdybiec commented May 28, 2024

I've made some progress attaching emfcollab to my EMF-generated editor. The client and server are communicating, and the EmfCollabEditorExtension is wired into the editor. Here's my problem: EmfCollabEditorExtension.loadModel() makes the following call:

EmfServer server = multiServer.getServerForResource(sessionKey, credentials, resourceName);

This requires that the EmfServer instance be serialized, but it is does now implement 'Serializable'. Did you use a 'CoolRMIReplaceEntry' to deal with this somehow?

Thanks.

@rizsi
Copy link
Member

rizsi commented May 29, 2024

Yes, you are right. Brilliant analysis of a complex topic! The user of the lib has to configure the EmfServer class to be a remoting stub of the IEmfServer interface when the CoolRMI service is created. So all calls to this object on the client side are remoted to the server automatically. We created this library several years ago but we never got to the point to publicate the usage example. We are not testing it currently. If you intend to use it then it may be necessary to dust it a little.

@sdybiec
Copy link
Author

sdybiec commented May 29, 2024

Thanks. Your comment was helpful in getting it working.

The sample EMF 'Library' sample model I'm using for testing EMFCollab contains FeatureMaps and multiplicity-many attributes, and it seems those are not yet supported by EMFCollab. Perhaps worth a contribution if I figure out how to get these working. Thanks again for your help.

@rizsi
Copy link
Member

rizsi commented May 30, 2024

Yes, we have only implemented the minimal features that we needed. Your welcome, feel free to ask!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants