Forums de discussion

Spring hibernate custom application integration with liferay jsf w/o REST

Sebanti Chowdhury, modifié il y a 8 années.

Spring hibernate custom application integration with liferay jsf w/o REST

New Member Envoyer: 1 Date d'inscription: 28/03/13 Publications récentes
Hi,
We are making a liferay portal application in Liferay 6.2 ga3 enterprise edition with trial licence. We have a custom separate standalone spring-hibernate application where we have all the business logic written. We are integrating this custom application with liferay JSF portlet by putting this custom application as a .jar file within JSF portlet's lib folder. While running the liferay application after this integration, we are facing lot of lazy loading issues and liferay server gets down intermittently.

Can you please suggest if this is the right way to integrate custom spring-hibernate application with liferay jsf portlet or we should expose this custom application as webservice to consume from liferay end to get rid of such type of issues.

Thanks,
Sebanti Chowdhury
thumbnail
Miroslav Ligas, modifié il y a 8 années.

RE: Spring hibernate custom application integration with liferay jsf w/o RE

Regular Member Publications: 152 Date d'inscription: 29/07/14 Publications récentes
The described approach should work just fine. I once worked on JSF portlets with spring back-end and everything worked.

What kind of errors do you experiencing? The way how data are loaded is determined by the hibernate configuration. So if you have problems with lazy loading have a look at that. It has nothing to do with Liferay.

If you experience PermGen problems increase the PermGen size on dev machines. PermGen is quite common when JSF are used.