Thursday, January 12, 2012

New Liferay 6.1 Feature - Remote Development from Liferay IDE

I'd like to mention one of the new features in the upcoming release of Liferay 6.1, which is the remote development and deployment support from Liferay IDE.  The idea is that with this feature you can build Liferay projects in Liferay IDE like normal but instead of the Liferay server running locally it is running on a remote host.  This is accomplished through two things, 1) new remote server adapter in Liferay IDE and 2) Server manager plugin (new in 6.1) deployed to the remote Liferay server 

This feature will be officially available with the Liferay 6.1 CE release, but since it is only in beta, now is a good time to try it out and give feedback.

For those who wish to try this out here are the steps to setting it up.

1. Download the Liferay Portal 6.1 Beta4 Tomcat bundle (Only tomcat is supported in beta4,  both JBoss and Glassfish will be supported by 6.1 GA release)

2. Start Tomcat bundle on remote host (or even localhost)

3. Download the Server Manager plugin for 6.1 Beta4 (This plugin provides the API needed by Liferay IDE to administer remote plugins)

4. Deploy Server Manager plugin into remote Tomcat server

5. Install the latest stable or nightly  version of Liferay IDE (links are updatesite URLs to use in Eclipse install manager)

6. Create a new server in Liferay IDE, File > New > Server > Liferay > Remote Liferay Server

7. Specify a local tomcat bundle for the runtime stub (this is needed for libraries to compile project)

8. Specify the IP address of remote tomcat server along with Omni admin username/password

Once you have done this you should see the server console log messages printed in the normal Eclipse console view.

9. Create and deploy Liferay projects as usual then publish (deploy) them to the server, see Liferay IDE getting started guide for a walkthrough of this.

Now when you modify files in your project, every 15 seconds it will publish the delta of any changes to remote server.  However, you can publish changes immediately using the "publish" action in the servers view.  If you want to change the automatic publish rate you can do that in the server configuration editor (double click server in Servers view).

For anyone who decides to try this out and want to give feedback with suggestions or problems please either open a JIRA ticket for the IDE project or enter a new topic on the IDE forums .

2 comments:

  1. I recently came across your blog and have been following it. I'm very impressed. You're truly well informed and very intelligent. You've been able to write in a way people can understand easily. I'm saving this for future use.
    liferay training in hyderabad

    ReplyDelete
  2. Article très instructif. Les deux portées et leur fonctionnement sont très bien expliqués. Merci d'avoir partagé. Nous proposons également des services Liferay Java. contactez-nous pour obtenir plus de détails sur les services.

    ReplyDelete