Hi,
Before-After: There is more about this in another post somewhere in this thread, but
basically interception in JBoss AOP is both before and after.
Example:
| public class MyInterceptor implements Interceptor
| {
| public String getName() { return "MyInterceptor"; }
|
| public Object invoke(Invocation invocation) throws Throwable
| {
| Object o = null;
| //You can do "BEFORE" stuff here, e.g.
| long start = System.currentTimeMillis();
|
| //Invoke next method
| o = invocation.invokeNext();
|
| //You can do "AFTER" stuff here, e.g.
| long end = System.currentTimeMillis();
| long timeTaken = end - start;
|
| return o;
| }
| }
|
EJB: It all depends on the packaging. If you get jboss-head from cvs, it contains a
new tutorial showing some options for packaging war and ear applications. Also,
http://www.jboss.org/wiki/Wiki.jsp?page=RunningWithJBossApplicationServer contains
some information on what you need to do to run with JBoss 3.2.5 if you haven't
followed these steps already.
Cheers,
Kab
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845156#3845156
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845156
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development