org.springframework.remoting.rmi.RmiRegistryFactoryBean Java Examples
The following examples show how to use
org.springframework.remoting.rmi.RmiRegistryFactoryBean.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigureRMI.java From Redis-Synyed with Apache License 2.0 | 5 votes |
@Bean public RmiRegistryFactoryBean rmiRegistry() { // 设置jmx需要的系统参数 setJMXProperties(); final RmiRegistryFactoryBean rmiRegistryFactoryBean = new RmiRegistryFactoryBean(); rmiRegistryFactoryBean.setPort(rmiPort); rmiRegistryFactoryBean.setAlwaysCreate(true); return rmiRegistryFactoryBean; }
Example #2
Source File: ServerJmxConfig.java From Spring with Apache License 2.0 | 4 votes |
@Bean public RmiRegistryFactoryBean registry() { final RmiRegistryFactoryBean rmiRegistryFactoryBean = new RmiRegistryFactoryBean(); rmiRegistryFactoryBean.setPort(1099); return rmiRegistryFactoryBean; }