How i convert spring project to liferay? - spring

I developped an application (spring, hibernate) and i must convert it to liferay Project
how i can do it?
please could you help me
thank you.

A solution would be to build your application using Spring Portlet MVC, the Portlet version of Spring MVC. Then you will be able to deploy your application as a Portlet on Liferay.

Spring hibernate and liferay have nothing in common.
Spring and hibernate are frameworks : one for managing bean, other for database mapping (orm).
Liferay is a portal.
So you can't migrate automatically a project to liferay.
BUT, you can :
integrate your project using social widgets into a liferay portal
if your project have some standard portlets, you should have no problem to copy them in a liferay environment
for other case, you will need to rewrite your code to adapt to liferay api

Related

How to set up Spring multi maven module using spring boot

I would like to evolve my Spring application with a better architecture. The technologies I'm using are : spring portfolio ( spring mvc, spring test, spring Web, spring core, spring rest...)
Today I'm using packaging to structure the different layers of my application: models, services, api and of course web where I have my controllers.
I would like to know how can I use the power of spring boot to make a multi module maven architecture with an xml spring configuration for a Web application. I read that spring boot have an embedded tomcat and since I'm using eclipse with a separate tomcat server I would like to deploy my application on it and I think that this can create a problem.
I already found some links on github with this type of projects most of them are not elaboring an architecture of a Web application and use a class for spring configuration with the embedded tomcat that spring boot offers.
Thank you
Ps: sorry for my bad English
What you mean by multi module. If you want to build your jar for multiple environment you can use maven profile for it. Spring boot is nothing but a spring project which ease the configurations for you.
Regarding deployment to your own server, you have to convert the jar to war. Read "What about the Java EE Application Server" section of below link.
https://spring.io/blog/2014/03/07/deploying-spring-boot-applications

Steps for Creating a jsp application with SpringHibernate framework?

I used to hardcode my JSP applications and I have never used Spring framework before, I would like to get an overview of how to create a JSP app, I already have spring hibernate set up in eclipse:
How to configure web.xml?
JavaBeat has some good tutorials on Spring, in particular some with Spring and Hibernate I recommend you check out:
Spring Framework Tutorials
Spring and Hibernate ORM Framework Integration

Spring MVC portlet not deploying

I wrote a simple spring mvc portlet and I copied to "deploy" in liferay it is not automatically getting deployed to tomcat's webapp folder.
Further it is deploying only when the tomcat is restarted.
Also the portal having the spring mvc portlet is not automatically refreshed with the new content.
I had to remove it and add it again.
I tried with a simple portlet app and everything happens automatically by default.
Can you tell me what I am missing here in spring mvc portlet app.
Any suggestions would be helpful..
This link from liferay forum might help you.
Just check if the property auto.deploy.interval=0 or auto.deploy.enabled=false is not set.

Using Spring MVC with IBM Rational Application Developer

We have to use IBM's RAD (IBM Rational Application Developer) and we decided to use "Spring MVC". My question is that what we have to do to use Spring Mvc inside RAD. Which libraries we must add?
I am not sure what has RAD to do with Spring MVC. In my opinion deploying Spring App in RAD should not be any different from deploying it to Tomcat. Use maven to get the latest of Spring alongwith dependencies, you should be good.

Creating a liferay portlet using spring roo

Does Spring Roo supports creating a liferay portlet built out of JSP/Primefaces scaffolding.
Thanks!
Pratik
There is no plan to support portlet development with Roo.
But, you can find an add-on here that allow your Roo project to turn into a Spring MVC Portlet project so that it will be complient with the portlet specification.

Resources