Call Remote Java Methods using JKRemoteReflection
Last updated: 2025-09-14
Server
-
Create Maven project with the followig POM file:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-remote-reflection-tutorial.adoc - include::inc/remote-reflection/server/pom.xml[]
If you are using Eclipse, be sure to refresh your project (select your project→ right click→ Maven→ Update Project) |
-
Create Service class with the following contents:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-remote-reflection-tutorial.adoc - include::inc/remote-reflection/server/src/main/java/com/app/server/Service.java[]
-
Create App class with the following contents:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-remote-reflection-tutorial.adoc - include::inc/remote-reflection/server/src/main/java/com/app/server/App.java[]
Now run the App main class, you should see something like this:

Client
-
Create Maven project with the followig POM file:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-remote-reflection-tutorial.adoc - include::inc/remote-reflection/client/pom.xml[]
-
Create the client App class with the following contents:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-core/java-util-remote-reflection-tutorial.adoc - include::inc/remote-reflection/client/src/main/java/com/app/client/App.java[]
Now run the App main class, you should see something like this:

Full example source-code can be found at https://github.com/smartapi-com/j-framework-remote-reflection |