I'm prototyping a DeploymentService that can generate simple deployment descriptors 
(e.g. to create a jms queue) or more complex unpacked archives (e.g. the ./deploy/jms 
or /jmx-console) that are created by copying a directory structure and 
overlaying/rendering any deployment descriptor using apache-velocity templates.

This allows the programmatic creation of "durable" services that survive server 
restarts, and the development of GUI apps that allow the administrator to instantiate 
services on the server (e.g. JMS) without having to write the descriptors.

In the prototype I can output the modules directly to ./deploy for the scanner to pick 
up, but I thought it would be better to use an intermediate directory (e.g. undeploy) 
where modules could be generated OR uploaded and reside there in an "undeployed" 
state, until they are explicitly moved to ./deploy (or back to undeploy).

So the API would look something like
Upload()
Create() (all 3 operating in the undeploy dir)
Remove()

Then I need a deploy() and undeploy(). In those 2 operations I would like to 
synchronise with the MainDeployer, somehow, so that I don't wait for the deployment 
scanner (faster) and get more immediate input on the outcome. So If I just move the 
module to deploy then immediately call MainDeployer.deploy() are there any issues 
conflicting with the Scanner? What if it happens to get there first? And if so, how 
will I learn about the fate and possible problem of the deployment (or undeployment)?

Also, it would be as well easy to move modules to ./farm or ha-singleton dirs, 
however, whom do I call for farmed or ha-singleton deployments? How the MainDeployer 
behaves in this case?

Any ideas and suggestion are welcome.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851811#3851811

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851811


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to