Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Start Servers using JMX - WebSphere Application Server

Posted on 2008-09-30
1
1,355 Views
Last Modified: 2013-12-11
Hello,
I would like to start WAS servers from a remote location for which I think JMX is the best way to do so. But , when I try to query:
 ObjectName QueryName = new ObjectName("WebSphere:*,type=server") - doesnt include the stopped server information , which is proably because the requested objects are not created yet.
Can some one please advice how to implement this...
Thanks
0
Comment
Question by:sravy
1 Comment
 
LVL 1

Accepted Solution

by:
sravy earned 0 total points
ID: 22652562
try
        {
                  String host = "host";
                  String port = "port";
                  String opName = "launchProcess";
                  String signature[] = { "java.lang.String"};
                  Object params[] = { "servername"};

            Properties config = new Properties();
                  config.put (AdminClient.CONNECTOR_HOST,  host);
                  config.put (AdminClient.CONNECTOR_PORT,  port);
                  config.put (AdminClient.CONNECTOR_TYPE, AdminClient.CONNECTOR_TYPE_SOAP);
                    AdminClient _soapClient = AdminClientFactory.createAdminClient(config);

                  ObjectName m_oQueryName = new ObjectName("WebSphere:*,type=NodeAgent");
                  Set m_oAllNamesSet = _soapClient.queryNames(m_oQueryName, null);
                  if(m_oAllNamesSet != null)
                  {
                        Iterator m_oIter = m_oAllNamesSet.iterator();
                        while(m_oIter.hasNext())
                        {
                              ObjectName m_node = (ObjectName)m_oIter.next();
                              String m_nodeName = (String)(m_node.getKeyProperty("node"));
                             _soapClient.invoke(m_node, opName, params, signature);
                        }
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question