This content has been marked as final.
Show 7 replies
-
1. Re: Seam + JBoss AOP
michael.yuan Aug 23, 2007 1:42 PM (in response to asookazian)Yes, you can use JBoss AOP to intercept Seam components. I'd recommend you use Seam POJO in this scenario as EJB3 beans are invoked via proxy and hence cannot be reliably intercepted via standard AOP definitions.
-
2. Re: Seam + JBoss AOP
damatrix Aug 24, 2007 5:48 AM (in response to asookazian)EJB interceptors cannot be used on Seam POJOS. Is it a good idea to use JBoss AOP to create interceptors for a Seam POJOs?
-
3. Re: Seam + JBoss AOP
soza Nov 20, 2007 12:50 AM (in response to asookazian)We found it was usefull to use jBossAOP to address orthogonal behavior lke performance metrics. And you are not restricted to jboss-aop.xml, you could use annotations too. However we did prefer using the XML file as it provides more flexibility.
-
4. Re: Seam + JBoss AOP
asookazian Nov 20, 2007 11:48 AM (in response to asookazian)"damatrix" wrote:
EJB interceptors cannot be used on Seam POJOS. Is it a good idea to use JBoss AOP to create interceptors for a Seam POJOs?
this is not true. I am using EJB3 interceptors on Seam SFSB's (conversation-scoped and session-scoped) and SLSB. I am seeing the output in the log for my LoggingInterceptor:2007-11-15 16:11:54,704 INFO [com.cox.beans.interceptor.LoggerInterceptor] *** Entering method: getNoteText
In my case, the interceptors are configured in the ejb-jar.xml (not class or method level). -
5. Re: Seam + JBoss AOP
asookazian Nov 20, 2007 11:56 AM (in response to asookazian)"damatrix" wrote:
EJB interceptors cannot be used on Seam POJOS. Is it a good idea to use JBoss AOP to create interceptors for a Seam POJOs?
Oh you mean classes that don't have @Stateless or @Stateful annotations (non-EJB3 pojo's) but do have @Name annotation?
I don't think I've tried that yet... -
6. Re: Seam + JBoss AOP
damatrix Nov 21, 2007 10:22 AM (in response to asookazian)I didn't mean EJBs when i said Seam POJOs. I meant java classes without Stateful or Stateless anotations.
-
7. Re: Seam + JBoss AOP
pmuir Nov 24, 2007 1:58 PM (in response to asookazian)You can use Seam interceptors on these.