[gram-user] Resource-Recovery: PersistenceCounter vs. ws-gram
chaosbringer at gmx.de
Thu Dec 28 09:17:10 CST 2006
i hope my question is not too confusing :-)
As far as i understand, resource-recovery of the PersistentCounter-example that comes with the gt is done implizitly: CounterHome extends ResourceHomeImpl, which is responsible for calling the load-method of the persistenCounter-Resource implizitly, if the resource is not avaible at the local memory.
For example this call will lead to a load-call, if the resource is not locally avaible: resource = ResourceContext.getResourceContext().getResource();
Am i right so far?
So, my question is: why is a explicit recovery-function in ManagedExecutableJobHome.java necessary?
Would it not be possible, to do it implicitly similar to the Persistentcounter-example?
I hope this question is not to basic.
More information about the gram-user