Does anyone know how to use Java for strong code portability ? Have you ever done this before?
Here I am trying to achieve.
Suppose we have two separate Java applications that communicate over the network. Appendix A and Appendix B.
Appendix A has an x class created as an object and uses it. Appendix B does not know about this class x.
Application A must transfer the instance of class x to application B. Application B must be able to dynamically load class x and save the state of class x.
I have googled around and found a bunch of resources on how to dynamically load a class at runtime. However, I am not sure if the mechanism for transmitting an instance of an object over the network is covered, along with its state, for a dynamic call.
Any pointers would be very helpful, and thanks in advance!
NOTE: I am more interested in how (for example, approach, way of thinking) this problem is solved, and not what is used to solve it; this is because I have been instructed to develop my own solution to solve this problem. Although the indication of the libraries / frameworks is great, it would be ideal if the answers were sent from people who previously did something similar (as if rare).
java dynamic-class-loaders dynamic-class-creation
sivabudh
source share