users@glassfish.java.net

Re: Getting the name of the instance in cluster...

From: <glassfish_at_javadesktop.org>
Date: Thu, 03 Jul 2008 02:57:41 PDT

>> Do You know if it is possible to get the name of the instance on which application is deployed?

do you mean with the CLI or with GUI ?
The application is deployed on a target - which is a cluster in your case.

>>Another question is if it is possible to have not identical applications deployed on >>different instances? For example I have resource adapter which needs to be deployed >>on the cluster, but ra.xml file for each instance should be different, is it possible?
>>Unfortunately each time I start the cluster all files are synchronized and finally are the
>> same even if I changed them earlier...

I think it's possible for different cluster using the system properties substitution as describe in this BLOG :
http://blogs.sun.com/nazrul/entry/under_the_hood_of_glassfish

I'm affraid the granularity of this is the cluster not the instance.
But there is some hope as you can have some instance property on the GUI Properties/Instance Properties.
The difficulty is then to have some ${XXX} pattern as described in the BLOG above to specialize your JCA connector configuration.

We did this (at cluster level) to have a dynamic JMS selector (see threads on this forum to find this).

rgds
[Message sent by forum member 'omerlin' (omerlin)]

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