Package weblogic.management

Examples of weblogic.management.MBeanHome


                    "weblogic.jndi.WLInitialContextFactory");
            props.put(Context.PROVIDER_URL,         config.getURL());
            props.put(Context.SECURITY_PRINCIPAL,   config.getUsername());
            props.put(Context.SECURITY_CREDENTIALS, config.getPassword());
            Context ctx =  new InitialContext(props);
            MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." +
                            "localhome");
            // Fix for 1586075: Passing context in, so that it can be closed when the connection
            //   is closed
            return new WLServerConnection(home.getMBeanServer(), ctx);
        } catch (Throwable e) {
            throw new ConnectionFailedException(e);
        }
    }
View Full Code Here


        if (getHermes().getConnectionFactory() instanceof JNDIConnectionFactory)
        {
            return super.discoverDestinationConfigs() ;
        }
       
        MBeanHome home = getHome(this.context);

        // get the MBeanServer interface           
        MBeanServer homeServer = home.getMBeanServer();

        ObjectName queueMBeanQuery = null;
        ObjectName topicMBeanQuery = null;
        try
        {
View Full Code Here

   * @throws JMSException
   */
  private JMSDestinationRuntimeMBean getMBean(Destination destination)
    throws InstanceNotFoundException, MalformedObjectNameException, JMSException
  {
    MBeanHome home = getHome(this.context);

    ObjectName name = getJmsDestMBeanName(destination);

    JMSDestinationRuntimeMBean bean = (JMSDestinationRuntimeMBean)home.getMBean(name);

    log.debug("Found MBean: " + bean);

    return bean;
  }
View Full Code Here

TOP

Related Classes of weblogic.management.MBeanHome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.