I have not seen ezcWorflow and this storage mechanism you describe, but this is what I can tell you.

If you are talking about sharing a connection between Zend_Db adapters, then more than likely, you'll have to extend one of the adapters to be able to accept a connection (this would do exactly the opposite that getConnection() does in the adapter).

Effectively, all you'd need to do is create the adapter as normal, then immediately call your custom setConnection($connection) method.

That way, you can be sure that your two adapters are sharing the same underlying connection.

Hope that helps,
-ralph

Andrea Turso wrote:
Hi all, I'm using ezcWorkflow in my application,
According to Sebastian Bergmann someone developed a storage
backend using Zend_Db for ezcWorkflow objects two years ago.
(http://www.slideshare.net/sebastian_bergmann/workflow-engine-for-php-5)

The slides are two years old as well. I've Googled with Web Search and
Code Search for that damned wrapper without any good result.

Is there any solution for using Zend_Db with ezcWorkflow in order to
avoid two simultaneous connection to the same database by two
different frameworks?

I would appreciate any help or suggestion.

Thanks in advance,
Andrea Turso

Reply via email to