Re: [aspectwerkz-user] AOP advice execution sequence
akhilesh laddha <[email protected]> Wed, 21 Nov 2007 08:08:13 -0800 (PST)
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
--0-703023963-1195661293=:28437 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi All, Is this the only mechanism to run advice in parallel with the application methods for that cross cut defines? Or, any other option comes inherently with AOP framework to do the same. Please do let me know. Thanks Akhilesh Tahir Akhtar <[email protected]> wrote: I think there is nothing AOP-specific to it. Just launch your task in a separate thread using standard java threading techniques. Regards Tahir Akhtar [email protected] wrote: --------------------------------- Subject: RE: [aspectwerkz-user] AOP advice execution sequence From: <[email protected]> Date: Wed, 21 Nov 2007 17:27:22 +0530 To: <[email protected]> To: <[email protected]> Hi, How to implement asynchronous aspect ? Can we get any sample if available. Any help is appreciated. Thanks and Regards, Lalithamba. ________________________________ From: Alexandre Vasseur [mailto:[email protected]] Sent: Tue 20-Nov-07 10:53 PM To: [email protected] Subject: Re: [aspectwerkz-user] AOP advice execution sequence no it runs in the same code path - as if you wrote it this said it is easy to have your advice produce an async task that will be consumed by some thread queue if you want it is all up to you Alex On Nov 20, 2007 6:00 PM, akhilesh laddha <[email protected]> wrote: Hi All, I would like to get clarify my self about AOP advice execution sequence along with the application code. Does AOP advice execute in parallel with application methods for that cross cut defines? For example Application method - foo() (for cross cut define) Takes execution time T1 Advice - fooAdvice() takes t1 time If AOP advice runs sequentially with application code then additional performance hit because of advice code execution. Total time will be - T1 +t1 From my understanding it runs in parallel therefore it takes time equal to whichever is higher for ex - T1 Please correct my understanding Thanks Akhilesh ________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------- The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com --------------------------------- --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------- Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. --0-703023963-1195661293=:28437 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></div> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is this the only mechanism to run advice in parallel with the<BR>application methods for that cross cut defines?<o:p></o:p></SPAN></div> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Or, any other option comes inherently with AOP framework to do the same. Please do let me know.<o:p></o:p></SPAN></div> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></div> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></div> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks<o:p></o:p></SPAN></d iv> <div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Akhilesh<o:p></o:p></SPAN></div> <div><BR><BR><BR><B><I>Tahir Akhtar <[email protected]></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I think there is nothing AOP-specific to it. Just launch your task in a separate thread using standard java threading techniques. <BR><BR>Regards<BR>Tahir Akhtar<BR><BR><A class=moz-txt-link-abbreviated href="mailto:[email protected]">[email protected]</A> wrote: <BLOCKQUOTE cite=mid:[email protected] type="cite"><BR> <HR width="90%" SIZE=4> <BR> <TABLE class=header-part1 cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD> <DIV class=headerdisplayname style="DISPLAY: inline">Subject: </DIV>RE: [aspectwerkz-user] AOP advice execution sequence</TD></TR> <TR> <TD> <DIV class=headerdis playname style="DISPLAY: inline">From: </DIV><A class=moz-txt-link-rfc2396E href="mailto:[email protected]"><[email protected]></A></TD></TR> <TR> <TD> <DIV class=headerdisplayname style="DISPLAY: inline">Date: </DIV>Wed, 21 Nov 2007 17:27:22 +0530</TD></TR> <TR> <TD> <DIV class=headerdisplayname style="DISPLAY: inline">To: </DIV><A class=moz-txt-link-rfc2396E href="mailto:[email protected]"><[email protected]></A></TD></TR></TBODY></TABLE> <TABLE class=header-part2 cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD> <DIV class=headerdisplayname style="DISPLAY: inline">To: </DIV><A class=moz-txt-link-rfc2396E href="mailto:[email protected]"><[email protected]></A></TD></TR></TBODY></TABLE><BR><PRE wrap="">Hi, How to implement asynchronous aspect ? Can we get any sample if available. Any help is appreciated. Thanks and Regards, Lalithamba. ________________________________ From: Alexandre Vasseur [<A class=moz-txt-link-freetext href="mailto:[email protected]">mailto:[email protected]</A>] Sent: Tue 20-Nov-07 10:53 PM To: <A class=moz-txt-link-abbreviated href="mailto:[email protected]">[email protected]</A> Subject: Re: [aspectwerkz-user] AOP advice execution sequence no it runs in the same code path - as if you wrote it this said it is easy to have your advice produce an async task that will be consumed by some thread queue if you want it is all up to you Alex On Nov 20, 2007 6:00 PM, akhilesh laddha <A class=moz-txt-link-rfc2396E href="mailto:[email protected]"><[email protected]></A> wrote: </PRE> <BLOCKQUOTE type="cite"><PRE wrap="">Hi All, I would like to get clarify my self about AOP advice execution sequence along with the application code. Does AOP advice execute in parallel with application methods for tha t cross cut defines? For example Application method - foo() (for cross cut define) Takes execution time T1 Advice - fooAdvice() takes t1 time If AOP advice runs sequentially with application code then additional performance hit because of advice code execution. Total time will be - T1 +t1 From my understanding it runs in parallel therefore it takes time equal to whichever is higher for ex - T1 Please correct my understanding Thanks Akhilesh ________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. </PRE></BLOCKQUOTE><PRE wrap=""><!----> --------------------------------------------------------------------- To unsubscribe from this list please visit: <A class=moz-txt-link-freetext href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</A> </PRE><PRE wrap=""><HR width="90%" SIZE=4> The information contained in this electronic me ssage and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. <A class=moz-txt-link-abbreviated href="http://www.wipro.com/">www.wipro.com</A> </PRE><PRE wrap=""><HR width="90%" SIZE=4> --------------------------------------------------------------------- To unsubscribe from this list please visit: <A class=moz-txt-link-freetext href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</A></P RE></BLOCKQUOTE><BR>--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email </BLOCKQUOTE><BR><p>  <hr size=1>Be a better pen pal. Text or chat with friends inside Yahoo! Mail. <a href="http://us.rd.yahoo.com/evt=51732/*http://overview.mail.yahoo.com/">See how.</a> --0-703023963-1195661293=:28437--