The application has to use the generated stub class. I have generated the DataImpl_Stub.class, but how can I be sure that the application uses it? I'm afraid that it is still possible that
the application uses dynamic class downloading?
I have tested this by deleting the file and then using the jvm parameter -Djava.rmi.server.ignoreStubClasses=false. Everything still works fine. But I'm not sure can the jvm parameter get the value false.