package devopsdistilled.operp.client.context;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.remoting.rmi.RmiProxyFactoryBean;
import org.springframework.transaction.PlatformTransactionManager;

import devopsdistilled.operp.client.context.items.ItemContext;

@Configuration
@Import({ ItemContext.class })
public class AppContext {

	@Bean
	public RmiProxyFactoryBean transactionManager() {
		RmiProxyFactoryBean rmiProxy = new RmiProxyFactoryBean();
		rmiProxy.setServiceUrl("rmi://127.0.1.1:1099/TransactionManager");
		rmiProxy.setServiceInterface(PlatformTransactionManager.class);
		return rmiProxy;
	}
}

@@ -44,60 +44,8 @@
 t;%0A%0A
-import org.springframework.context.annotation.Bean;%0A
 impo
@@ -158,136 +158,8 @@
 ort;
-%0Aimport org.springframework.remoting.rmi.RmiProxyFactoryBean;%0Aimport org.springframework.transaction.PlatformTransactionManager;
 %0A%0Aim
@@ -297,281 +297,6 @@
  %7B%0A%0A
-%09@Bean%0A%09public RmiProxyFactoryBean transactionManager() %7B%0A%09%09RmiProxyFactoryBean rmiProxy = new RmiProxyFactoryBean();%0A%09%09rmiProxy.setServiceUrl(%22rmi://127.0.1.1:1099/TransactionManager%22);%0A%09%09rmiProxy.setServiceInterface(PlatformTransactionManager.class);%0A%09%09return rmiProxy;%0A%09%7D%0A
 %7D%0A

Remove TransactionManager Bean