web service deployment
I have created a simple web service. I want to replicate (deploy) each time user new user is created ...
In simple word every user will have its own instance of web service, deployed on the server
Is it possible ... (HOW)
Thanks in advance
if the web service is in a webapplication, .war file and that's the only thing in that .war file, I guess you could have the .war file deployed multiple times, like to each a contenxt per user. assuming a tomcat server and if behind apache, then all requests to all /* are routed to tomcat. each webapp like /user1/service. /user2/service..
to have the webapp deployed on create of user, there are ant task driven tomcat deployer. such as a create profile script could invoke a shell script that runs an ant task to run the tomcat deployer, to stuff a .war file in a staging area up to th tomcat.
clearly this doesn't scale very well for more than a dozen users as that is dozens of deployed applications on one app server, which sooner than later the memory will be exausted just to boot up the many app instances.. why would you need to have the same service deployed on the same box for each user. ? unless you meant to have the service deployed on different user-specific local host boxes ?
Thanks for your detailed reply ... actually I am trying to implement cloud computing (SaaS) based environment. I am planning to have a prototype on single node then later I will scale it to multiple nodes (Cluster).
I am working on virtualization layer, which will help to scale the webserivce accordingly to the Service Level Agreement .... It will so nice of you, if you could comments on my idea ...