开发者

Load Class files over the network with Reflections

开发者 https://www.devze.com 2023-04-06 08:23 出处:网络
Is there a way to use a reflection over the network like \"wwww.domain.com/codes/MyClass.Class\" We have got a server, where we save the code, and on the other server we run the program and load d开发

Is there a way to use a reflection over the network like "wwww.domain.com/codes/MyClass.Class"

We have got a server, where we save the code, and on the other server we run the program and load d开发者_如何学运维ifferent code from the first server.

Thank


It sounds like you're looking for URLClassLoader.


Java provides RMI for doing what you need to do.

http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136424.html

0

精彩评论

暂无评论...
验证码 换一张
取 消