main website home
  • About this blog

    This blog features updates, opinions, and technical notes from Caucho engineers about Caucho products, the enterprise Java industry, and PHP. Caucho Technology is the creator of the Resin Application Server and the Quercus PHP in Java engine. A leader in Java performance since 1998, Caucho is a Sun JavaEE licensee with over 9000 customers worldwide.
  • Tags

    ajaxworld bam candi cdi cloud cluster comet configuration deploy devoxx eclipse ejb embedded flash flex google app engine hessian hmtp ioc java ee 6 javaone javazone jms messaging newsletter nyjug osgi php pomegranate quercus resin resin 4.0 REST servlet sfjug silicon valley code camp spring testing training tssjs watchdog webbeans web profile websockets wordpress
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
« Java CanDI (JSR-299 Injection)
Introducing Resin Personal including PHP-to-Java compilation »

Remote deploy in Resin, Part 2

Last week, I wrote a post about how to use the new remote deploy functionality in Resin 4.0 using Ant and Maven. Now I’ll show you a click-by-click walkthrough of how to use the same facilities from the Eclipse plugin. Some of the navigation in Eclipse can be tricky if you haven’t used it before, so there’ll be screenshots all along the way. (Warning: there are lots of images below the fold…)

  1. Create a configuration file like that in the previous post and start Eclipse
  2. Create a new Dynamic Web Project
  3. Enter a project name, then click on “New…” in the “Target Runtime” box
  4. Click on the Resin 4.0 (hot deploy) target
  5. Fill in the deployment parameters. Choose a “local” server.

    Note that you’ll need to have a local copy of Resin even if you’re using a remote server. The installation includes the code needed for remote deployment as a client. In this example, we’ll be running the server locally, so Eclipse will actually start up a new Resin instance. At the moment, Eclipse WebTools currently has a limitation that it won’t let you deploy as a remote client to the localhost without starting a new instance. If you’d like to deploy to a running instance, it must be on another machine. This is something I’m looking at fixing soon.
  6. Fill in the parameters for the web project itself
  7. Within the project, create a new JSP
  8. Name the JSP “index” and click “Finish”
  9. Type some text in the JSP file
  10. Right-click to get a pop-up menu on the project. Select “Run As->Run on Server”
  11. Create a new server of the type “Resin 4.0 (hot deploy)” and click next
  12. Enter the parameters for the server and click next
  13. Make sure that your project is in the “Configured projects” column and click finish

    You’ll need to wait 10 seconds (or more) for the application to start. There’s a delay in the script that builds the war file to deploy of 10s to allow time for the server to start. This is the default for most other application servers as well. Resin starts up quite quickly on most machines :-), so we may reduce that in the future.
  14. The server should now run and display your page

Tags: eclipse, resin 4.0

This entry was posted on Thursday, January 29th, 2009 at 12:47 pm and is filed under Engineering. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.


Caucho Technology is proudly powered by WordPress and Quercus®
Entries (RSS) and Comments (RSS).

  • HOME |
  • CONTACT US |
  • DOCUMENTATION |
  • BLOG |
  • WIKI 4 |
  • WIKI 3 |
  • Resin: Java Application Server
Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.
resin® is a cloud optimized, java® application server that supports the java ee webprofile ®