I have lots of moving parts but here goes an attempt at a description. I have a dataset with multiple named graphs.
I am running a modified (reworked?) version of Fuseki -- Old version but modified to use JAXB and provide some extra restful functionality to support queries and jquery clients. I have 2 threads running in a ScheduledExecutorService. The Runnables those threads execute do some work (external rest calls) and then update a named graph with the results. The Runnables have the dataset and a resource. I start a transaction on the dataset and update the resource. then commit. To make things more difficult the resource is wrapped with an PA4RDF annotated object. Sounds like I need to change the process to send in the URI of the resource and the model name so that I can get the object within the transaction. Thx, Claude On Wed, Jul 23, 2014 at 1:51 PM, Andy Seaborne <[email protected]> wrote: > On 23/07/14 11:37, Claude Warren wrote: > >> Are there any known issues mixing transactions on datasources and model >> locks (e.g. model.enterCriticalSection(Lock.WRITE)) ? >> >> >> > No. Well, not known to me :-) > > But I would hazard a guess you have encountered something. > > Could you describe your setup? I get snippets from your emails but not an > overall picture. > > Are you really trying to do multithreads inside one transaction? > > Note - it is necessary to get the model inside a transaction and not use > it across transaction boundaries. > > (It's very visible API change to fix this :-() > > Andy > > -- I like: Like Like - The likeliest place on the web <http://like-like.xenei.com> LinkedIn: http://www.linkedin.com/in/claudewarren
