// Setup the client side container..
RemoteTransportInterceptor remoteInterceptor = new RemoteTransportInterceptor(target);
remoteInterceptor.setRemoteURI(target);
Interceptor firstInterceptor = new MarshalingInterceptor(remoteInterceptor);
firstInterceptor = new NotificationRemoterInterceptor(firstInterceptor);
ProxyContainer clientContainer = new ProxyContainer(firstInterceptor);
return (LoginServiceMBean) clientContainer.createProxy(LoginServiceMBean.class.getClassLoader(), new Class[]{LoginServiceMBean.class});
}