• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Reflection API on a running applet

 
Angus Rose
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm currently writing an applet for a project. What I want to do is inspect the applet while it is running in a browser using the Reflection API for the purpose of system testing. Is this possible?

Angus
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code doing the reflection needs to live in the same JVM as the one being reflected - connecting from the outside is not possible. Other possibilities to inspect a running JVM include JMX(although your applet needs to be especially written to support that), or JVMTI, which is a low-level interface meant for debugging and profiling.
 
Angus Rose
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The test scenario that my boss has come up with is to deploy the applet to our dev server and then to run it on a client machine's browser and to then use Reflection to control the running of the applet. Is this possible?

Thanks

Angus
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems to be the same question as before, to which the answer is 'no'. It does not matter where the applet is served from, and where it is served to. Am I missing something?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic