Results 1 to 3 of 3
  1. #1
    jshani is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Default 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

    Regards
    Zeeshan

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    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 ?

  3. #3
    jshani is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Default

    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 ...

Similar Threads

  1. how to call service method inside another service
    By kirtichopra2003 in forum Web Frameworks
    Replies: 1
    Last Post: 10-24-2009, 02:19 AM
  2. Deployment
    By rob in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 04-08-2009, 10:03 PM
  3. hot deployment
    By Manas Das in forum Advanced Java
    Replies: 0
    Last Post: 01-21-2009, 05:24 PM
  4. deployment
    By Nicholas Jordan in forum NetBeans
    Replies: 4
    Last Post: 07-09-2008, 05:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •