I have an interesting situation with a set Glassfish 4 in a hosted environment.
I have a distributed application within a local network. The application components are remote EJBs. The application experiences some periods of no activity for about 1 hour.
The hosted network firewalls kill idle connections after 1 hour. Once this occurs the EJBs cannot reconnect. If the client side of the application is disabled and enabled, the EJB connections begin working again. Unfortunately I cannot change the network setting because of the hosting situation.
How do i tune the cache of remote EJB handles so that idle handles are cleared out in less than 1 hour and reloaded from the server side when the application activity starts again?