Finding the machine name the space is running on

Question:

Is there any way of programmatically determining the machine name that a given space is running on, from the space itself, or the container/admin/url/policy?

Answer:

import com.j_spaces.core.admin.IJSpaceContainerAdmin;

...

        IJSpaceContainerAdmin adminProxy = (IJSpaceContainerAdmin)space.getContainer();
        com.j_spaces.core.admin.ContainerConfig conf = adminProxy.getConfig();

        System.out.println("Space hostname : " + conf.containerHostName );

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2295]{quote}

asked 2006-03-17 18:18:01 -0500

bernard gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete