Reputation: 1454
I am trying to gets the member's name of member in WebSphere cluster. I can get the hostname, and node name from from AdminService
AdminService adminService = AdminServiceFactory.getAdminService();
but i am not able from admin service to get member's name. I found that this is providing by cluster mbean in websphere, but i can't find any code examples how can i get this cluster mbean and use in my javacode.
Upvotes: 0
Views: 862
Reputation: 7324
The process name will return the name of the application server (cluster member), which can be obtained from the AdminService
.
AdminServiceFactory.getAdminService().getProcessName()
Upvotes: 1