掲示板

Issue with servlet.service.events.pre event

thumbnail
11年前 に Jitendra Rajput によって更新されました。

Issue with servlet.service.events.pre event

Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
Hello All ,

I have created servlet.service.events.pre event using hook. Dont know why but i am facing some strange behavior with this event.
When ever i hit any URL of my portal this event is getting invoked so many time (around 20 -22 time. I checked the same by placing log statements) for single request. There is no such redirection logic in my event hook.

Here are the steps which i followed to override this event.

Specified below property in your liferay-hook.xml

<portal-properties>portal.properties</portal-properties> 


Specify events you wants to override in portal.properties file

servlet.service.events.pre=com.sample.portal.kernel.events.CustomServicePreAction


It would be great if any one can provide pointer to resolve this issue as it s creating impact on performance.

Thanks in advance
Jitendra Rajput
thumbnail
11年前 に David H Nebinger によって更新されました。

RE: Issue with servlet.service.events.pre event

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
You must know that a browser will call the server not just for the page HTML, but also for all resources (images, javascript, css, etc.)...