<div dir="ltr">Hi Gary,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
If you want a Zope 2 instance to run the zc.async dispatcher/worker threads, then it might be better to get the DB that zope is using. In Zope 3, there's an event you can subscribe to to get the DB. Maybe there's something similar in Zope 2 these days?<div class="Ih2E3d">
</div></blockquote><div><br><br>I found it. but I'm not sure if really fire the event at any moment.<br><br>in my configure.zcml I have:<br><subscriber<br> for="zope.app.appsetup.<div>IDatabaseOpenedEvent"<br>
handler=".handlers.zcasync_config_handler"<br> /><br><br>the instance starts, but it seems that the handler never run</div><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
2008-09-12 02:20:01 ERROR zc.async.events UUID 10c69742-8084-11dd-9853-0016d3094e86 already activated in queue (oid 44148): another process? (To stop poll attempts in this process, set ``zc.async.dispatcher.get().activated = False``. To stop polls permanently, don't start a zc.async.dispatcher!)<br>
</blockquote>
<br></div>
Maybe you are running your tests while you are running your app instance, and that both of them actually connect to your real live ZEO.<br>
<br>
Or maybe you are starting a dispatcher yourself, *and* zc.async.ftesting.setUp is starting a dispatcher? (ftesting setUp does start one.)<div><div></div><div class="Wj3C7c"></div></div></blockquote><div><br>right, and what about running many
clients with one ZEO. I'm getting the same error and I don't understand
what to do, this is why I need to get the DB that zope is using?<br>
<br>thanks for your help again, and sorry for my ignorance<br><br>cheers</div></div><br clear="all"><br>-- <br>Santiago Videla<br><a href="http://www.revolucionesweb.com.ar">www.revolucionesweb.com.ar</a><br><a href="http://www.linkedin.com/in/svidela">http://www.linkedin.com/in/svidela</a><br>
<br>Sigue la mata dando de que hablar siempre abajo y a la izquierda donde el pensamiento que se hace corazón resplandece con la palabra sencilla y humilde que l@s tod@s somos.<br>
</div>