Amit Shah

Greenhorn
+ Follow
since Aug 12, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Amit Shah

I am trying to implement a replicated cache in a spring managed distributed application using activemq (jms). Multiple instances of the application server should update their copy of the cache when one of them triggers a change. I am trying to implement a standalone application to mimic this.

I have a spring boot rest application that uses spring data's CrudRepository. I have enabled caching by adding the @Cacheable annotations.



How can I update this cache that is managed by spring through some custom code? There are two events when update is required

1. When the save method is called I would like to execute the jms producer code to push the java object (Person) on a jms topic. How can I add custom behavior to call the jms producer code after saving the java object in the save method?
2. Update the cache (myCache) in the jms consumer code. How can I get a handle to this cache in the spring data repository external to this interface in order to so?

Thanks.
2 years ago
I am confused on what technical skills are required by an architect? Does he need to have a hands on experience in all the layers of a multi-tier application. i.e being technically good on database side (SQL), GUI side (html/javascript), framework side (hibernate/spring/?) and any other technologies?
I understand that being an architect would mean that one should be able to design a J2EE application which would mean that he should be hands on in all the above mentioned technologies, but that looks a bit too much or no?