PDA

View Full Version : Objects on server level


covaburaz
05-26-2010, 11:58 AM
Hi, is there any way to instance one object which will be available to all webApps? This considers an object on server level and all webapps can use it.

Tnx

emil
06-03-2010, 05:15 PM
Hi,

Yes, you can instantiate a bean at the <host> or <cluster> level and have it available to all webapps in the host or cluster. If you want a bean specifically on a certain server, you can do a <resin:if> using the server id. You can instantiate the bean using Resin's CanDI syntax:

http://caucho.com/resin-4.0/admin/config-candi.xtp

Emil