[Design of JBoss Portal] - Re: Portal build
by julien@jboss.com
the point is that while waiting that someone provide us the perfect build we should reimplement what we have today using simple ANT stuff and IVY (which allow to declare dependencies).
what we need for now seems quite simple, why should't at least try to spend a couple of days on it in order to get a build that works, that is easy to understand and is documented.
"julien(a)jboss.com" wrote : when we look at it, our build stuff is not much complicated since we remove the processing of xdoclet.
|
| Beside:
|
| 1/ compile java code
| 2/ assemble prepare file structures with token replacements
| 3/ create archives
|
| or
|
| 1/ prepare test archives
| 2/ execute tests
|
| what else do we need ?
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062203#4062203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062203
18 years, 9 months
[Design of AOP on JBoss (Aspects/JBoss)] - Strange problem of aspectizing EJBs
by vola
Hi all,
My jboss: 4.0.5 GA. JDK:1.5.0.12. JBoss AOP 1.5.5.
I have done all configuration tutorial asks to run AOP. Also, I have successfully run "injbossaop" example. I tried to modify "Duke's Bank" J2EE application of Sun to use loadtime weaving. It is very strange that I could successfully aspectize the methods of "Servlets", but fail when aspectizing EJBs.
My jboss-aop.xml:
| <typedef name="MyServlets" expr="class($instanceof{javax.servlet.http.HttpServlet})"/>
| <bind pointcut="execution(* $typedef{MyServlets}->service(..))">
| <interceptor class="com.sun.ebank.aop.SimpleInterceptor2"/>
| </bind>
|
| <typedef name="MySessionBeans" expr="class($instanceof{javax.ejb.SessionBean})" />
| <bind pointcut="execution(* $typedef{MySessionBeans}->withdraw(..))">
| <interceptor class="com.sun.ebank.aop.SimpleInterceptor2"/>
| </bind>
|
| <bind pointcut="execution(* com.sun.ebank.ejb.tx.TxControllerBean->withdraw(..))">
| <interceptor class="com.sun.ebank.aop.SimpleInterceptor2"/>
| </bind>
|
| <bind pointcut="execution(com.sun.ebank.ejb.tx.TxControllerBean->new(..))">
| <interceptor class="com.sun.ebank.aop.SimpleInterceptor2"/>
| </bind>
|
| <bind pointcut="all(com.sun.ebank.ejb.tx.*)">
| <interceptor class="com.sun.ebank.aop.SimpleInterceptor2"/>
| </bind>
|
As you can see, I tried different ways to aspectize the EJBs. But only the first binding "MyServlets" can be aspectized. (SimpleInterceptor2.class prints out debug msg)
In the "injbossaop" example, it aspectizes "ExampleSessionBean.class" with no problem. Could anyone have any ideas what I should do to make JBoss AOP work with EJBs, please?
Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062190#4062190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062190
18 years, 9 months