Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!

Micheal Marky

Greenhorn
+ Follow
since Jul 02, 2009
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 Micheal Marky

Hi Can anyone suggest how to get the following data in a portlet using the Liferay apis.

select A.*
FROM AnnouncementsEntry A
where not exists
(
select entryid
FROM AnnouncementsEntry B
where B.classpk = A.classpk
and B.userid = A.userid
and B.modifiedDate > A.modifiedDate
)
and userid = 10146

Thanks,
Micheal
9 years ago
Hi , I need a suggestion/solution from the experts here.
There are 5 portlets in my application and all of them make web service calls (different services) to get the data and displayon the portlets.
I need to implement Caching using the ehcache such that the request originating from the user is served from the cache if the data is available in the cache or else make a web service call to serve the request and also update the cache.

The question is how do i implement this. Do I need to create a separate ehcache.xml per protlet and implement the caching or shall i create a common jar project and configure all the caching properties in one ehcache.xml and include the jar file in all the 5 portlets (in each portlets war file, lib folder)

Please help, also is there a better solution to achieve this.

Thanks
Micheal Marky
10 years ago