Desktop based Java WebStart application
We have a requirement to performance test a java webstart application which communicates with the server using java RMI calls. we tried the protocol Java EJB/RMI but were not able capture any functions. Next we tried the java over http but we werent able to launch the applcaition . we encountered a hooking exception (EXCEPTION in JavaEngineHookArchive: com.segue.javahooking.transformer.HookException: Exception in hookArchive) and the application failed to launch stating "cannot communicate with the Server". The JRE version is 1.6
You need to be sure of the protocol in use for network communication and the process which generates the traffic (java or javaw.exe etc). Its also possible that if you identify javaw for example as the process which generates the traffic, that this executable can exist in multiple forms and in multiple locations on the machine.
Usually you can right click on the process in windows and choose open location (on newer operating systems) and find the exact location of the exe you need to hook. This should then be added as an application profile.
following your suggestion i added the JAVAWS.exe in the application profile
(path : C:\Prod\spa\jre6\bin\javaws.exe) and selected additional settings like Java EJB other , Java weblogic and java RMI. I used the protocol Java RMI/EJB and launched the application from the recorder command line but still nothing is getting recorded.
When working with Java WebStart, the following process usually works:
- save the jnlp file to local disk
- create SilkPerformer application profile that hooks javaw.exe (not http/javaws)
- start the recorder from the "record | recorder" menu option
- start the Java application via the jnlp file