Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » does it make sense to have a plan file when your app is in pickup dir?
does it make sense to have a plan file when your app is in pickup dir? [message #665828] Sat, 16 April 2011 16:24 Go to next message
aco  is currently offline aco Friend
Messages: 2
Registered: April 2011
Junior Member
Hi,

I might be misunderstanding something here, but what is the practice when deploying an application in virgo server.

I want to be able to update my app during runtime in case I want to push some minor fixes without shutting down the whole server, so I put my bundles in the pickup directory.

But during startup, I want to enforce an ordering in the deployment of the bundles, which I've read can be accomplished using a plan file. Unfortunately, it also mentions that artifacts in the plan file should be in repository/usr directory (userregion) - does this mean I can't update it by copying over the bundle?.

Is there a way for me to achieve the deployment ordering while still being able to dynamically update the bundle by copying over it?

Thanks in advance for any clarifications.
Re: does it make sense to have a plan file when your app is in pickup dir? [message #665830 is a reply to message #665828] Sat, 16 April 2011 17:10 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

The pickup is basically hot-deploy feature that is meant to be used during development.

The repository/usr is a watched repository (as described in config/org.eclipse.virgo.repository.properties). This means that any files that are changed will cause the repository index to be updated, but no install/refresh/uninstall will be triggered. More details can be found on this Wiki page.

To achieve ordering and update of your artifacts you will have to use combination of pickup and repository/usr. The steps needed to do so:

  1. Put your new artifacts in repository/usr
  2. Update the plan in the pickup directory


It is important to note that the pickup should contain only the plan.
Re: does it make sense to have a plan file when your app is in pickup dir? [message #665835 is a reply to message #665828] Sat, 16 April 2011 19:11 Go to previous message
aco  is currently offline aco Friend
Messages: 2
Registered: April 2011
Junior Member
Thanks for the tips.

It pointed me in the right directions. Smile
Previous Topic:RAP Security
Next Topic:Maven repository for Virgo 3.0 milestone?
Goto Forum:
  


Current Time: Sat Dec 07 21:01:30 GMT 2024

Powered by FUDForum. Page generated in 0.03214 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top