Spring Framework ConnectorServerFactoryBean - 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 ConnectorServerFactoryBean class.

This code example shows how to use the following methods:afterPropertiesSet, setObjectName, setServiceUrl
        if (mbeanPort != null && mbeanPort != 0) {// 做个兼容处理,<=4.2.2版本没有mbeanPort设置
            port = mbeanPort;
        } 
 
        String serviceUrl = MessageFormat.format(SERVER_URL, String.valueOf(port));
        super.setServiceUrl(serviceUrl);
        super.setObjectName("connector:name=rmi"); 
        // 直接使用port 
        getRegistry(port);
        super.afterPropertiesSet(); 
    } 
 
    private Registry getRegistry(int registryPort) throws RemoteException {
        if (this.alwaysCreateRegistry) {
            logger.info("Creating new RMI registry");
            return LocateRegistry.createRegistry(registryPort);
        } 
        if (logger.isInfoEnabled()) {
            logger.info("Looking for RMI registry at port '" + registryPort + "'");
        } 
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:afterPropertiesSet
    { 
        try 
        { 
            if (enabled)
            { 
                super.afterPropertiesSet(); 
 
                if (logger.isInfoEnabled())
                { 
                    logger.info("Created JMX serverConnector");
                } 
            } 
            else 
            { 
                if (logger.isInfoEnabled())
                { 
                    logger.info("JMX serverConnector is disabled.");
                } 
            } 
 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Spring Framework ConnectorServerFactoryBean Methods: