1

I would like to know if it is possible to have multiple sites running on glassfish. I am about to try to setup a glassfish server where different users can auto-deploy their applications and get their own folder like this:

localhost:8080/user1/application1
localhost:8080/user2/application2

or something like that. I want security also so it wont be able to have logins so that the user only can get access to his own folder... Is all this or similar possible in any way in glassfish?

matino
  • 17,199
  • 8
  • 49
  • 58
dhojgaard
  • 113
  • 10
  • Sure, check out this question http://stackoverflow.com/questions/7860335/map-my-web-app-context-path-to-hostname-in-glassfish-or-tomcat/7861206#7861206 – Preston Nov 16 '11 at 17:16

1 Answers1

0

Check out virtual servers, which is an approach where you manage only one instance.

Another approach is to give each user their own standalone instance (or cluster), although each instance will listen to its own port (such as 8080 and 8090).

Hope this helps.

John Clingan
  • 3,324
  • 21
  • 13
  • So it is not necessary to make a domain for each user i create? – dhojgaard Nov 17 '11 at 09:36
  • You don't have to, depending on what "user" means. When an administrator logs in to a domain, they have access to administer all instances. If you don't want this, then you'll have to use multiple domains. If you have one administrator administering multiple instances, then each instance can have its own configuration. Administering includes deploying applications. – John Clingan Nov 21 '11 at 19:56
  • But how do you do that? Make one account administer multiple instances...? – dhojgaard Dec 01 '11 at 22:21