Foren
Get portal-ext.properties value in UserListener Hook
Nisarg Parikh, geändert vor 12 Jahren.
Get portal-ext.properties value in UserListener Hook
Expert Beiträge: 262 Beitrittsdatum: 31.12.09 Neueste Beiträge
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
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, geändert vor 12 Jahren.
RE: Get portal-ext.properties value in UserListener Hook
Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
The PropsUtil is in portal-kernel as well which you can access.
Nisarg Parikh, geändert vor 12 Jahren.
RE: Get portal-ext.properties value in UserListener Hook
Expert Beiträge: 262 Beitrittsdatum: 31.12.09 Neueste Beiträge
Thanks Ravi.
It worked.
It worked.