Notifier of any event that the user performs in the system [closed]

1

I'm using Spring Framework for java and would like to create I can create a warning type, <scan> , which shows in the table that a new row was added (this line comes from the database), and clicking on it to disappear implying that the line was seen, as if it were a Facebook notifier for example, but each user has his, that is, notify each one that there is a new line.

    
asked by anonymous 14.01.2016 / 18:28

1 answer

1

I imagine you need to create something using aspects of Spring. More information here

With AspectJ, you can monitor some point of your application and run it before, during, or after it according to the notes @Before, @After, @AfterReturning ...

This type of programming is widely used for application logs, but can be perfectly applied to you.

With AspectJ configured, you can perform an @After action on your table-row persistence method, and persist something in a warning table associated with users.

    
15.01.2016 / 16:28