[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Start Servers using JMX - WebSphere Application Server

Posted on 2008-09-30
1
Medium Priority
?
1,381 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
[X]
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
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

650 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