users@glassfish.java.net
Re: Is there a way for code to query what instance it is currently running on?
This message
: [
Message body
] [ More options (
top
,
bottom
) ]
Related messages
: [
Next message
] [
Previous message
] [
In reply to
] [
Next in thread
] [
Replies
]
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]
From
: Tom Mueller <
tom.mueller_at_oracle.com
>
Date
: Wed, 15 Aug 2012 13:18:56 -0500
If you don't mind using a non-portable interface,
System.getProperty("com.sun.aas.instanceName") returns the instance name.
Tom
On 8/15/2012 12:44 PM, forums_at_java.net wrote:
> Is there a way for code to query what instance it is currently running
> on?
> I'm trying to write some code that needs to be aware of the instance
> it is
> running on in a cluster. I know by using the REST API it is possible
> to find
> out the instances that are active and also the hostnames/ip addresses
> of each
> instance.
https://DAS:4848/management/domain/clusters/cluster/{cluster
> id}/get-health
https://DAS:4848/management/domain/servers/server
>
https://DAS:4848/management/domain/servers/server/{instance
id} Thanks
>
> --
>
> [Message sent by forum member 'schaffer1969']
>
> View Post:
http://forums.java.net/node/889163
>
>
This message
: [
Message body
]
Next message
:
forums_at_java.net: "Re: Re: glassfish-4.0-b49-windows seem like 3.1.2"
Previous message
:
forums_at_java.net: "Is there a way for code to query what instance it is currently running on?"
In reply to
:
forums_at_java.net: "Is there a way for code to query what instance it is currently running on?"
Next in thread
:
forums_at_java.net: "Re: Is there a way for code to query what instance it is current"
Reply
:
forums_at_java.net: "Re: Is there a way for code to query what instance it is current"
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]