public void stop() throws Exception
{
Util.unbind(getContainer().getInitialContext(), jndiName + PROXY_FACTORY_NAME);
Dispatcher.singleton.unregisterTarget(getTargetId());
SessionContainer statefulContainer = this.getContainer();
RemoteHome remoteHome = statefulContainer.getAnnotation(RemoteHome.class);
if (remoteHome != null && !bindHomeAndBusinessTogether())
{
Util.unbind(this.getContainer().getInitialContext(), ProxyFactoryHelper.getHomeJndiName(getContainer()));
}
super.stop();