Hi Vijaya, I have played around with Spring AOP and Servicemix running in Jboss. I managed to introduce my AspectJ style Spring advices into the beanfactory that you configure via your xbean file for a specific SU. So Spring is able to do the auto config of aspects and my aspects are added to the beanfactory. However my advices never got called when an endpoint processed an exchange. Looks like as if Servicemix uses Spring to manage components and endpoints (deployment, etc.) but once an endpoint is up and running the call hierarchy is not going through the beanfactory managed beans, i.e. it is not in Spring's scope any longer (which is the prerequisite for Spring being able to do the interception).
I ended up implementing an org.apache.servicemix.jbi.event.ExchangeListener which can intercept changes in an message exchange (in, out, done, error, etc.). You can listen to changes in the consumers delivery channel an in the providers delivery channel. At least that should fulfill the requirements you are writing about. If you get the AOP stuff working to intercept endpoint activity please let me know. It would be splendid to be able to use runtime weaving in Servicemix. Best regards, Oliver. Oliver Kuntze Senior Consultant EAI Union Investment Tel. +49 69 2567-7381 E-Mail [EMAIL PROTECTED] ____________________________ softlab group entory AG Königsberger Straße 29 | 60487 Frankfurt Tel. +49 69 97261-263 | Fax +49 69 97261-70 E-Mail [EMAIL PROTECTED] | Mobil +49 162 263 4131 Internet http://www.softlab-group.com entory AG | Niederlassung Frankfurt | Vorstand: Said Tabet (Vorsitzender), Hagen Buchwald, Ernst Schmitz | Vorsitzender des Aufsichtsrats: Peter Broicher | Sitz: Ettlingen | Amtsgericht Karlsruhe HRB 907 E -----Ursprüngliche Nachricht----- Von: Vijaya Bhaskar Peddinti [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. August 2007 13:53 An: [email protected] Betreff: Spring AOP integration with Servicemix Hi All, I have a requirement for I need to intercept the messages going in and out of a consumer/provider endpoints. Is it possible to intercept messages at the consumer/Provider endpoints? Regards, Vijaya Bhaskar Peddinti **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***
