zkompiloval :-) - Re: how best debug your own Java Class Tool Agents ?
Vojtech Huser <[email protected]> Thu, 1 Sep 2005 16:17:15 -0600
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <[email protected]> |
Diky moc za radu a zip. po nekolika hodinach snazeni (krome scr zipu a tveho zipu) bylo treba jeste nakopirovat do lib zbytek libs z install verze sharku) a pak to slo zkompilovat. navic jsem prechazel na eclipse 3.1 ted zbyva 1. rozchodit spusteni serveru s moji Java aplikace (o tom je muj novy post do mail listu sharku) 2. rozchodit debug meho javaclassagenta (s nebo bez stepovani pres shark code...) (to remote debug) ad toolagentplugindir >S tim ToolAgentPluginDir to nevim - me to funguje :o) to je skoda. porad to nejede... >To LogInfo02 je tvuj class ktery je zabaleny v tom jaru? jo. v shark/lib dokonce staci kdyz je to jenom zip. je tam nejaky default manifest. ale tim to myslim neni. hraje tam roli jeste nejaky ten classloader. cemuz nerozumim. viz extrakty z nejakych postu z mail listu nize: 1. >ToolAgentLoader class is provided, that enables you to add new Tool agents into shark system in runtime. > The location where they need to be put is configurable - there's a new property called "ToolAgentPluginDir". 2. >Or you put your jars into a directory (which must not be in the classpath), specify it in the ToolAgentPluginDir configuration parameter and use the >ToolAgentLoader class. This gives you the advantage of not having to restart the server if you changed your tool agent implementation but may reduce the >performance of your system due to repeated class loading activities. anyway... diky moz za pomoc s tim Shk do eclipsu. vice mene porad jsem v modu debugingu: 1. start shark 2. run one test. 3. stop shark (re-program your agent) 4. change myclasses.zip (reboot) (because of STUPID NAMESERVER (RE)STARTED :-( 5. run shark again 6. run second test. ...... coz je pomale a silene ale nejaky progress se udelat da... Vojta http://vh.minfor.net
message-footer.txt
(text/plain, 271 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws