users@glassfish.java.net

Re: RE: GlassFish domains on same server under own unix user credetials?

From: <glassfish_at_javadesktop.org>
Date: Wed, 13 Aug 2008 10:30:23 PDT

The solution exist. It was painful and local experts have shown pessimistic attitude rather help. The glass is half FULL !:)
Back to independent deployments on same server.
If you want to have on same machine:
- independent VM for DNS domain or subset of apps
- run this VM in unix user restricted jail (under windows will work as well)
- have same administration GUI
- have access separation for admins of those VMs
- all of them served on same port 80

You CAN do that. It is quite tricky.
First of all, your apps shall work as "Standalone Servers" in cluster-profiled server. Even if none clusters are in use.
Individual control of for user rights is defined in Node Agent.
It has own administrator and binaries for start/stop process.
There you will be assigning unix user for executables and folders/files.
Each NA will have own "Standalone Instance" server.
When you deploying app, make sure to put the app in proper server/NA.
Each server/NA running on own port. You can select it or let system to define randomly available. Now you have HTTP server instances w/ own unix credentials, individually controllable served on own port.
Now how to fit all of them to same port 80? Right - LoadBalanser plugin! It has URL rewright rules and part of admin UI.
So you have all on your hands.

And you probably follow my advise: screw it! It is way easier to tune Apache with Tomcat instances. In a year later to pick this knowledge back will take same if not more time with GF. It evolves, you know. Apache+tomcat for likely reason - not much.
[Message sent by forum member 'sashafirsov' (sashafirsov)]

http://forums.java.net/jive/thread.jspa?messageID=293097