Announcement Announcement Module
Collapse
No announcement yet.
Can AOP and AspectJ intercept spring integration queries? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can AOP and AspectJ intercept spring integration queries?

    Ive been checking AOP for a project Im working. I know that with AOP and AspectJ we can intercept java classes, but can we intercept queries launched by spring integration??

    So if in my context I ve something like:

    Code:
    <int-jdbc:outbound-gateway
        update="insert into foos (id, status, name) values (:headers[id], 0, :payload[foo])"
        query="select * from foos where id=:headers[$id]"
        request-channel="input" reply-channel="output" data-source="dataSource"/>
    Can I intercept before and after the queries ve been launched??

    Thanks in advance.
Working...
X