Object reference no longer valid
Hi.
I use a SimpleRemoteStatelessSessionProxyFactoryBean to connect to an EJB on an OC4J appserver. While stresstesting some transaction logic, I kept killing the server to see if the transaction was able to complete on reconnect. This worked well most times, however, som times I got the error:
Object reference no longer valid (Disconnected)
With this error, Spring was not able to reload. I have set RefreshHomeOnConnectFailure, and as I said it works most of the time. It seems spring holds on to a connection it thinks is valid somehow. Is there anyway to make a complete refresh of the context, so that it can "start fresh"? If I restart the client without restarting the server after an error like this, everything works normally, so there must be something on the client.
Any ideas?
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)