Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] record/replay with AspectJ

This is essentially what the OmniDebugger does (except it doesn't use an XML file) - it can replay an app's behaviour to any point (stop and let you examine it, move back etc). I've considered doing this in aspectj before, however, the granularity at which joinpoints are currently exposed, is not small enough (for good reason) -- ie you want expression/statement level points.

http://www.lambdacs.com/debugger/debugger.html

The join point model may well be good enough for what you want to sue this for. Another possible approach is to use JMX/MBeans to call arbitrary methods.

Ken.



                                                                                                                                                                          
                      Wes Isberg                                                                                                                                          
                      <wes@xxxxxxxxxxxxxx>        To:       aspectj-users@xxxxxxxxxxx                                                                                     
                      Sent by:                    cc:                                                                                                                     
                      aspectj-users-admin@        Subject:  Re: [aspectj-users] record/replay with AspectJ                                                                
                      eclipse.org                                                                                                                                         
                                                                                                                                                                          
                                                                                                                                                                          
                      18/11/2003 05:43                                                                                                                                    
                      Please respond to                                                                                                                                   
                      aspectj-users                                                                                                                                       
                                                                                                                                                                          
                                                                                                                                                                          




The sourceforge project cricketcage set out to do this,
rendering the captured behavior not in XML but in this other
language for such things called "Java", which could then
be compiled and run.

It's an interesting question what's ex/included in the closure,
and whether it can interact fruitfully with something like
stubs (er, mock objects) or work for first-failure data
capture, regression testing, etc.

Let us know if you develop anything interesting!

Thanks -
Wes

Jan Van Besien wrote:
> I think AOP (AspectJ) could be a perfect tool for writing a framework to
> record and replay the execution of a Java application. I was thinking of
> serializing al the arguments for every method call (in some scope) etc
> to XML (I should also keep track of which method was called), and then
> replaying it by parsing the XML stream, and using Java reflection.
>
> Does this seam realistic? Has any work been done on this topic?
>
> many thanks in advance,
> Jan Van Besien
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users





--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.




Back to the top