InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SV: InstantDB: Synchronized Servlets


Hey,

I guess if you use Enhydra you can have a Manager, witch is a singleton,
that's holding IDB and then accessing the jdbc code though synchronized
methods of the Manager.



Regrads,
Martin



Hi Steve,

This will not work, because you will still have different instances of
instantdb running against the same database files.  This will inevitably
result in corrupted data, since much of instantdb's state is cached in
memory.  This isn't a threading issue; instantdb works fine with
multiple threads, just not multiple VMs.

Thom

Steve Carton wrote:
>
> I'm wondering if I can achieve the same effect as the RmiJdbc server from
a
> servlet if I encapsulate the JDBC code in synchronized methods?
>
> Anyone try that?
>
> Steve Carton
>
> --------------------------------------------------------------------------
---
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
----------------------------------------------------------------------------
-
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.