I have this working, but I don't understand something. I am writing a
JUnit integration
test that uses RmiServiceExporter to test a Spring bean on the server. On the server side, I autowire everything in normally including the JdbcTemplate/DataSource. In my JUnit test, I'm using
Test Context framework to inject the bean with the RmiProxyFactoryBean. However, I need a JdbcTemplate/DataSource in the client configuration so the bean can get autowired on the client side. (I gave it a dummy one.)
This is the part I don't understand. As a human, I know that the client side one doesn't need the datasource injected as it will not be called. The bean is only there to make a remote call. Am I doing something wrong? Is there a better way to handle this?