Hi,
I have the following requirement and wondering how to implement it with
codi.
We want to use conversations and have a database instance that is
conversation scoped. However for every request that we need to put the
conversation scoped database instance in a threadvar where domain
entities can access it later. We are using a graph db and the domain
entities uses the db instance to add vertexes and edges.
For request scoped use cases it is easy to set the threadvar when
observing the @BeforeFacesRequest event and to clear the threadvar on
the @AfterFacesRequest.
However this does not work for conversation scoped use cases as the
conversation context is not yet active.
Is there a suggested way for me to achieve this?
Thanks
Pieter