Dave Watts wrote:
>> 
>> Is there a way that my code can access what instance in a 
>> cluster it is running on?
> 
> http://www.sumoc.com/blog/index.cfm?mode=entry&entry=7B541DBA-5004-2066-B7BCF2D895B3EC4A

We used to do that too, but we found that unmaintainable when deploying 
on other servers then JRun. So what we came up with is to place a 
properties file in each instance that has the name of the instance, 
whether a build-in webserver is active and the IP and port of the 
webserver (usefull for instance specific scheduled tasks). In the root 
of the J2EE server we place another properties file with the name of the 
server and anything else we might want to know. Then in the 
onApplicationStart of the application we read those properties files 
into memory using Paul Hastings RB cfcs and use them from there.

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273649
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to