On 2010-10-01 23.40, Paul Merlin wrote:
I face some issues using the Native rdf indexing service within a multi-threaded
context.
I have no code to share ATM that demonstrate the issue but if it is needed I'll
be able to produce and share it next week.
Let me explain my setup first :
- my app is running in a container
- on every http request I assemble and activate a qi4j app, process the request
and then passivate the qi4j app
- some base data is created in the qi4j app (entities inserted, indexed)
Excuse my ignorance, but that sounds insane! Why are you not
instantiating and keeping the app? Are you seriously having several
instance of the same Qi4j app in parallel if there are concurrent
requests? No wonder there are concurrency issues...
How do you use indexing-rdf in multi-threaded contexts ?
I have a servlet that instantiates the Qi4j app, and then delegate to it
on every request. No issues at all with concurrency.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev