Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nisarg Parikh
Get portal-ext.properties value in UserListener Hook
October 20, 2011 1:57 AM
Answer

Nisarg Parikh

Rank: Regular Member

Posts: 244

Join Date: December 30, 2009

Recent Posts

Hi All,

I have created a hook with UserListener.
In that I want to read the DB properties and get connected to it.

While I am using PropsUtil.java file to get properties of DB I am not able to find that java class.(Compilation error)
Do I need to put portal-impl.jar or any other file into that? As far as I know we do not have to put portal-impl.jar file in plugin SDK.
Other Liferay classes are found but only PropsUtil cannot be found.

What am I missing?

Please explain.

Thanks in advance.

-Nisarg
Ravi Kumar Gupta
RE: Get portal-ext.properties value in UserListener Hook
October 20, 2011 2:27 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1041

Join Date: June 23, 2009

Recent Posts

The PropsUtil is in portal-kernel as well which you can access.
Nisarg Parikh
RE: Get portal-ext.properties value in UserListener Hook
October 20, 2011 2:35 AM
Answer

Nisarg Parikh

Rank: Regular Member

Posts: 244

Join Date: December 30, 2009

Recent Posts

Thanks Ravi.
It worked.