executing a class in remote jvm

Posted by redzedi on Stack Overflow See other posts from Stack Overflow or by redzedi
Published on 2009-05-05T10:05:01Z Indexed on 2010/05/11 4:04 UTC
Read the original article Hit count: 253

Filed under:
|

Hi All, I have a small test class that i want to run on a particular jvm that's already up and running (basically it's an web application running on Tomcat) . The reason i want to do this is i want to execute a small test class (with the main method and all) within that jvm so that i get the same environment (loaded and initialized classes) for my test class. Is it possible to indicate that ,say through a jvm parameter, that it should not initialize a new vm to execute my class but instead go and execute on the remote vm and show me the result here, on my console. So the local jvm acts as a kind of thin proxy ? I am not aware in case there are some tools that should make this possible ... also heard somewhere that java 6 jvm comes with an option like this , is that true ?? Please help me.

Thanks,

© Stack Overflow or respective owner

Related posts about java

Related posts about jvm