[jboss-user] [JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable

2007-05-03 Thread mzeijen
thx, that would be very great. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042745#4042745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042745 ___ jboss-user mailing list

[jboss-user] [JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable

2007-05-03 Thread [EMAIL PROTECTED]
"mzeijen" wrote : I | I didn't try this before because I thought that the Embedded EJB3 already activated this somehow. EJB3 Embedded itself uses AOP to do it's magic. But the library is probably already aspectized. | E-EJB doesn't use weaving, it uses container/proxy based AOP, so weaving

[jboss-user] [JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable

2007-05-03 Thread mzeijen
I got it to work. It isn't pretty but for running unit tests it is fine. The solution was simple: I added the -javaagent: argument to the VM Arguments list. I used a reference to the jboss-aop-jdk50.jar, but I made sure that this lib isn't within the classpath. I didn't try this before because

[jboss-user] [JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable

2007-05-02 Thread mzeijen
Thank you, I will try that tomorrow View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042573#4042573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042573 ___ jboss-user mailing

[jboss-user] [JBoss AOP] - Re: AOP within TestNG & EJB3 Embeddable

2007-05-02 Thread [EMAIL PROTECTED]
"mzeijen" wrote : What I want to do is to replace the HTTPClient (that makes the http call) with a Mock object. This mock object simply returns the value that I expect. I was thinking that AOP could be de the elegant solution for me. I am new to AOP so maybe I am seeing this completely wrong.