I tried doing something simple at first like the following and thought I could call the getObject from the proxy. But I get a NullPointerException.
Code:
public class BlueBookServiceProxyFactory extends
SimpleRemoteStatelessSessionProxyFactoryBean {
/**
*
*/
public BlueBookServiceProxyFactory() {
super();
this.setJndiName(BlueBookServiceSessionHome.JNDI_NAME);
this.setHomeInterface(BlueBookServiceSessionHome.class);
this.setBusinessInterface(BlueBookServiceSession.class);
this.setRefreshHomeOnConnectFailure(true);
this.setCacheHome(true);
}
}
BlueBookServiceProxyFactory proxyFactory = new BlueBookServiceProxyFactory();
BlueBookServiceSession service = (BlueBookServiceSession)proxyFactory.getObject();
Any thoughts?