"fdo" wrote : Is it possible to have an EJB as the class implementing an Aspect?
  | 

Not really. Even though there is nothing stopping you from doing that, I don't 
think you will get the behaviour you're after since the AOP framework will just 
call the class directly, i.e. it won't go via the container.

"fdo" wrote : 
  | If no, can an aspect on an EJB have resources injected and transactional 
support?
  | 

No, the container, which is responsible for injection does not know about the 
aspect.

However, you could have an aspect that contains client code for calling an EJB.

Also, EJB 3 allows for interceptors which work similarly to aspects. The spec 
has been updated since the last release, but take a look in cvs. These 
interceptors can have resources injected




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913599#3913599

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913599


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to