Hello everyone,
I don't understand the behavior of OJB when you define a cache on a per
jdbc-connection-descriptor.
In the CacheDistributor.java class at the following method we've got this
snippet :
public ObjectCache getCache(Identity oid, Object obj, int callingMethod) {
...
yes this is default behavior : OJB creates an Identity object for each
instance of your mapped objects. This Identity object is then used as a key
for storing the object in the cache.
... so yes if two Products have reference to the same Attribut object, OJB
will cache just one instance of this At
Hello,
About the use of the attribut "refresh" which is available on associations
(0.1 , 1.n , m.n), I'm wondering : why would I set it to false ?
Because after all isn't it just better and simpler to always set it to true
?
Or am I missing something ?
Thanx
JB
Hello,
With the PersistenceBroker api you can't specify the isolation level. You
can use optimistic transaction to enhance the consistency of your data but
you should be very cautious if you use it with a cache because it can
introduce some strange behaviour on data highly exposed to concurrency
Hello,
I'm just realizing that most of the OJB exception are extending
RuntimeException and I was wondering why, as this is permitting a bad
Exception management. Developper are able to write code without any
Exception management, it's not really a good practices ?
So my question is why is it des
Hi Jeff,
I don't think you could do better than 4 queries unless you use a
ReportQueryByCriteria.
As I understand it, addPrefetchedRelationship can optimze the number of
queries you'll send to your database only when you have a 0,1 relationship :
for example : A---(0,1)->B
=> if you make a que
it is possible to
have higher isolations without using blocking locks or a scheme that
might fail? It's impossible, isn't it?
Oliver
On Fri, 10 Dec 2004 17:22:50 +0100, CLARAMONTE Jean-Baptiste
<[EMAIL PROTECTED]> wrote:
> The Slide project ? which project are you talking about
Cache
This pretty much is the mechanism the Slide project uses. AFAIK the
isolation level is similar to READ_COMMITTED, isn't it?
Oliver
On Fri, 10 Dec 2004 13:18:53 +0100, CLARAMONTE Jean-Baptiste
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> As I was not satisfy with
go ahead ! I'm glad to contribute !
:-)
-Message d'origine-
De: Armin Waibel
A: OJB Users List
Date: 10/12/2004 16:14
Objet: Re: Another implementation of the Two Level Cache
Hi Jean-Baptiste,
CLARAMONTE Jean-Baptiste wrote:
> Hello,
>
> As I was not satisfy with
Hello,
As I was not satisfy with the implementation of the TwoLevelCache,
mainly because it was not isolating the object in use in a transaction
with others transactions, so I've tried to write another one and now I
would like too share it with the community.
For resuming here are the behavior of
query
instead of
executing one query for each parent object.
what is the additional benefit of DeepRetrieve ?
jakob
CLARAMONTE Jean-Baptiste schrieb:
> I've noticed that OJB doesn't offer a deep retrieve reference service,
so I
> have developped an utility for retrieving from one
I would like to know if some of you have already used (in a production
environnement would be great) the cache's implementation called
TwoLevelCache. What are your feedback about it ? I have found a post talking
about it (http://www.mail-archive.com/ojb-user@db.apache.org/msg08338.html)
and which w
query
instead of
executing one query for each parent object.
what is the additional benefit of DeepRetrieve ?
jakob
CLARAMONTE Jean-Baptiste schrieb:
> I've noticed that OJB doesn't offer a deep retrieve reference service,
so I
> have developped an utility for retrieving from one refer
I've noticed that OJB doesn't offer a deep retrieve reference service, so I
have developped an utility for retrieving from one reference all the deep
references (and back references).
Example :
we have the following model :
[A]<(*)listeA-(1)b>[B]<(1)b-(*)listeC>[C]-(1)d>[D]
-Message d'origine-
De : Vincenz Braun [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 26 mars 2003 16:14
À : [EMAIL PROTECTED]
Objet : Newbie questions (oracle and ojb setup) (posted because archive
unbrowsable)
Hi,
my first steps with ojb. Some questions have arised.
I post these becaus
Oh yes also ...
We put the cache to on, only for classes that map onto table that don't
change to much.
-Message d'origine-
De : PICARD Jérôme
Envoyé : jeudi 6 février 2003 18:15
À : '[EMAIL PROTECTED]'
Cc : CLARAMONTE Jean-Baptiste
Objet : RE: Customizing if a pe
Hello Andrew,
In a precedent post we have tell in the mailing list that we have
implemented for our needs an implementation of the ObjectCache and we have
use the custom attributes capabilites of OJB to achieve that so it's very
easy to use.
So in your repository you just need to add the following
Hello,
I've just seen in an old post that it exists a way to easily add its own
custom attributes :
http://archives.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
e.org&msgId=501943
So by using the following tag it seems that I could add my own attributes in
the repository_user.xml :
Could some
18 matches
Mail list logo