I need to implement the following:
There is a table A which is supposed to be changed by DML operations coming from trigger on another table B.
I want to notify Jboss bean every time the trigger works. In best case I’d like to have an opportunity to see OLD and NEW data in the bean.
What is the best way to do it? Could you recommend any material to read?
Alex’s proposal to use Database Change Notification is probably the best way to go.
Here’s a few other options for actions to signal an event to a Java process from an Oracle PL/SQL package (which you can call from a trigger):
There’s a lot more info on sending JMS messages from PL/SQL in the question Calling/Using JMS from PL/SQL.