Can JPA handle a system wherein the database is being use by numerous applications?
- Posted by: Jan Michael Tan
- Posted on: March 16 2007 23:31 EDT
- Re: JPA + Multiple Applications by Christopher Stach II on March 17 2007 00:23 EDT
- Re: JPA + Multiple Applications by V N on March 17 2007 06:57 EDT
Yes, but you'll probably run into cache coherency problems.
Yes, but you'll probably run into cache coherency problems.Unless you use a coherent cache ;-) Peace, Cameron Purdy Tangosol Coherence: Clustered Coherent Caching for Java
Yes, JPA can handle this, but you should configure caching correctly. For example, if you use GlassFish / Toplink Essentials, read this: http://weblogs.java.net/blog/guruwons/archive/2006/09/understanding_t_1.html And this if you need more details: https://glassfish.dev.java.net/servlets/BrowseList?list=persistence&by=thread&from=508660 http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html#TopLinkCaching You will need to turn off shared caching in these cases.
thanks for the reply, we tried JPA without caching and it was so slow, currently we're also comparing it to ibatis which gives as acceptable speeds in this scenarios. Thanks!