Spring Framework MBeanServerNotFoundException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework MBeanServerNotFoundException class.

This code example shows how to use the following methods:
This code example shows how to use the following methods:
		catch (InvocationTargetException ex) {
			throw new MBeanServerNotFoundException(
					"WebSphere's AdminServiceFactory.getMBeanFactory/getMBeanServer method failed", ex.getTargetException());
		} 
		catch (Exception ex) {
			throw new MBeanServerNotFoundException(
					"Could not access WebSphere's AdminServiceFactory.getMBeanFactory/getMBeanServer method", ex);
		} 
	} 
 
 
	@Override 
	public MBeanServer getObject() {
		return this.mbeanServer;
	} 
 
	@Override 
	public Class<? extends MBeanServer> getObjectType() {
		return (this.mbeanServer != null ? this.mbeanServer.getClass() : MBeanServer.class);
	} 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
	 * Creates the {@code MBeanServer} instance. 
	 */ 
	@Override 
	public void afterPropertiesSet() throws MBeanServerNotFoundException {
		// Try to locate existing MBeanServer, if desired. 
		if (this.locateExistingServerIfPossible || this.agentId != null) {
			try { 
				this.server = locateMBeanServer(this.agentId);
			} 
			catch (MBeanServerNotFoundException ex) {
				// If agentId was specified, we were only supposed to locate that 
				// specific MBeanServer; so let's bail if we can't find it. 
				if (this.agentId != null) {
					throw ex;
				} 
				logger.info("No existing MBeanServer found - creating new one");
			} 
		} 
 
		// Create a new MBeanServer and register it, if desired. 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java