Hi,
Continuing with my issues with transactions, next question ;)
1) If I get a model as a result of a multiunion or a set of entities
from a read transaction, will I be able to use this model after the
transaction ends (i.e. in a SPARQL request).
MultiUnion union = new MultiUnion()
dataset.begin(ReadWrite.READ);
union.addGraph(dataset.getNamedModel("A").getGraph();
union.addGraph(dataset.getNamedModel("B").getGraph();
Model m = ModelFactory.createModelForGraph(union);
dataset.end();
// Execute SELECT SPARQL over m without opening a read transaction
Will it work? What data is included?
2) Suppose I have a webservice exporting read/write functionality from a
TDB. Every request opens a transaction over the TDB. If the request is
taking too long the HTTP client closes the connection. What happens with
the transactions? From my understanding, once the connection from the
client is closed, all resources for the call are freed at the server and
then the transactions will be somehow aborted and released. Am I right?
Thanks a lot for you invaluable help. I feel really sorry for bothering
so much, but I'm suffering from some stability issues on the developed
system (mainly memory leaks, etc.) and need to properly understand if
I'm making things the right way.
Regards,