How to register serialisation class on server #826
Answered
by
ihsandemir
abhishek852008
asked this question in
Q&A
|
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++. |
Answered by
ihsandemir
Sep 20, 2021
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. |
0 replies
Answer selected by
sancar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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.