How to register serialisation class on server #826
-
In IdentifiedDataSerializer example only client point of view is shown, i have also implemented it. But struggling to find anywhere, how to register my class on server side in c++. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @abhishek852008 Sorry for late response, I missed your question. Here is the answer: For the server side, you have to have a Java code implemented and this class jar needs to be put on the server's classpath so that the server also sees the same class. The Java side class implementation details can be found at this page. You have to make sure that the class and factory id should be exactly the same as in C++ client implementation. Here is the code sample for the Java side implementation. |
Beta Was this translation helpful? Give feedback.
Hello @abhishek852008 Sorry for late response, I missed your question. Here is the answer:
For the server side, you have to have a Java code implemented and this class jar needs to be put on the server's classpath so that the server also sees the same class. The Java side class implementation details can be found at this page. You have to make sure that the class and factory id should be exactly the same as in C++ client implementation. Here is the code sample for the Java side implementation.