-
1. Re: 1 jboss and 25 deployments of 1 application
lafr Dec 7, 2005 3:39 PM (in response to randahl)We decided to use one jboss instance for many application instances.
To separate the app instances we prepend the jndi names with a unique name per app.
Let's make it simple: two app instances (prod & test), one session Bean (Customer) local and remote accessible.
This gives
- prod/Customer
- prod/CustomerLocal
- test/Customer
- test/CustomerLocal
We use XDoclet and ant to generate and build. Our own code has "@APP_INST@/Customer" as jndi-name. In an ServiceLocator used for all lookups whe replace "@APP_INST@" with the current app instance's name (prod or test).
The same is used for the client.
Already without any app, only running the standard config of jboss you have a reasonable memory consumption. Having 50 of these jboss servers on one computer will require many GB's of RAM. One jboss instance with 50 app instances will consume much less.
Our app code in a classloader per app is only a part of the executed code. All apps will share the jboss code which will get compiled by the hotspot compiler. -
2. Re: 1 jboss and 25 deployments of 1 application
randahl Dec 8, 2005 6:58 AM (in response to randahl)Interesting reading - thanks for your post.
R. -
3. Re: 1 jboss and 25 deployments of 1 application
agentblueuk Sep 27, 2006 12:19 PM (in response to randahl)i'de like to do something similar, but in my case i want to have multiple instances of the same application as we a providing our product as a hosted solution and having multiple jboss instances all on their own ip address would seam rather wasteful
Do you know of any way of doing the prefix without needed to recompile ?