Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Observe a Java Program during runtime

Thread view: 
A. Meyer - 21 Sep 2006 00:47 GMT
Hello folks,

I have just downloaded an open-source project in java and i am trying to
understand it and analyse it, in order to use it for my own work. For
this purpose I just want to observe how the program behaves during
runtime (i.e. which objects are instantiated, which methods are
called...). I am using the eclipse 3.2 IDE. The debugger of eclipse
seems to be not very appropriate for such task.

I have two fundamental questions: is my proceeding to understand the
open source project the right one? And if yes how can I observe with the
help of eclipse which parts of the program are being - during the
runtime - activated? I have also been thinking of extracting UML
diagrams form the program, but the 1st approach seems to me to be the
more pragmatic one.

Any hint will be much appreciated.
Thanks in advance
Amir

P.S.: I aopologize if this is not the right forum for my problem and
would be thankful if you can tell be about mor convenient one!
Manish Pandit - 21 Sep 2006 02:31 GMT
Hi,

The best way would be to look at the exposed API, and then drill down
further to look into the interactions. What you can also do is reverse
engineer the code to get sequence diagrams and class diagrams - that
will give you a higher degree of readiblity. Ofcourse you will need
something like togetherJ or the (trial) version of Omondo Eclipse
plugin).

I am not sure which product you downloaded, but you might want to start
with the very core, exposed calls (maybe more like the entry point
method if it is a product vs. a library like apache commons).

Just my 2c :)

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.