I've solved my problem. I now optionally set a locale object on my base DAO
class. If the locale is not null, I add a PBLifeCycleListener to add the
locale to my VO object after a lookup. Then in my VO object, I have
functions like:
public String getName()
{
String returnValue = !!!LOCALE
Hi,
I don't know if this method is well but I use it :
ClassDescriptor classD = broker.getClassDescriptor(DualBO.class);
JdbcConnectionDescriptor jcd = classD.getConnectionDescriptor();
//Creation of the connection
java.sql.Connection connection = null;
try {
//Initialisation of the JDBC
Hi,
I just got some errors when using/retrieving the same persistentobjects
in multiple threads (request cause it's a webapp).
I tried many different configurations for class-descriptor,
reference-descriptor, ... but the problem was still there.
At the moment I only have proxy=dynamic specified
Hello Armin,
is there another way to verify the mappings which is not outdated?
regards,
Tino
Armin Waibel wrote:
Hi Tino,
the VerifyMappingsTask is a little bit outdated, thus I don't know if
you will get an adequate result.
regards,
Armin
Tino Schöllhorn wrote:
Hi,
I want to
Hi Sven,
I don't know if your problem rely on a concurrency problem. Between rc4
and rc5 I changed handling of DB resources in RsIterator class.
Now OJB is very strict in closing used resources. All resources will be
released when
- PB instance was closed
- PB commit call is done
- PB abort
Hi Tino,
Tino Schöllhorn wrote:
Hello Armin,
is there another way to verify the mappings which is not outdated?
Since version 0.97 OJB is more strict in reading repository metadata,
e.g. OJB try to obtain a Class object for class specified in
class-descriptor when reading repository file.
THANKS!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Armin,
I wrote a test for this, now.
Unfortunately I wrote it against my application, because I haven't
installed the OJB test suite yet ;(
The test starts n threads. Each thread creates a PersistentBroker,
retrieves 4 instances of an entity and then checks some references for
each entity.
I haven't seen any talk recently on the list about the progress for when
the 1.0 release will be labeled. Is there a plan now for when that might
happen? Are there certain bugs outstanding that are keeping this from
happening that we can help chip into fix?
I will admit my curiosity is for a
Reading the docn I suspect QueryCustomizer should be used
when the join criteria is anything other than equality (like , )
Can someone point me to the place to look examples
for this.
thanks
-
To unsubscribe, e-mail:
I just changed ObjectCacheClass from DefaultImpl to EmptyImpl.
Without caching the test doesn't fail.
I think this happens because the threads don't have to share the objects
in this case.
Sven
Sven Efftinge wrote:
Hi Armin,
I wrote a test for this, now.
Unfortunately I wrote it against my
Hi,
while running the OJB testcases I got a lot of circular problems when using
the ObjectCacheEmptyImpl (no Cache).
I'm using RC5 and saw, that the class is empty. Unlike in RC4 where there
is code in this class. I checked the CVS and since version 1.9 it's empty.
Whats the reason for this and
Hi Lasse,
[EMAIL PROTECTED] wrote:
Hi,
while running the OJB testcases I got a lot of circular problems when using
the ObjectCacheEmptyImpl (no Cache).
I'm using RC5 and saw, that the class is empty. Unlike in RC4 where there
is code in this class. I checked the CVS and since version 1.9 it's
Hi Armin,
I just figured out that you were right.
The problem I had occured because I tried to access not yet loaded
proxy references after closing the broker.
But what happens in my test?
Does this occur because OJB sets auto-retrieve to false sometimes?
Ho can we handle such a behaviour?
I have same problem. Actually, I'm using a per-object cache where the problem is
detected.
It's not a solution, but a workaround.
Edson Richter
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.574 / Virus Database: 364 -
Hello ML,
I'am an absolute newbie with OJB. I finished installing. I use the ojb-blank
project as a template and try to compilate the following example:
class INSTITUT {
public INSTITUT(String name) {
iNST_NAME = name;
}
private Integer iNST_NR;
Well, it's boring get beginners programmers around me sayind hey, OJB doesn't
work!!!, and all times I need to tell them that is just because they are making a bad
modelling desing making two-way navigational references in all objects (kidding)...
I think it's not an priority, because it can be
I want make following:
1) get an object from database
2) set a field in this object to the IP of
station
3) update the object, but only IP still null (if
another station reserves the record, it should not be updated)
4) get the object again, and check if the change
proceeded
Is there any
Hi Sven,
I can reproduce your problem. It's a really nasty concurrency
materialization problem when using global/shared caches and an object
was materialized first time:
Say we have a class Account with reference to Buyer, Buyer has a
reference to Address and Address has a reference to
Maybe I am missing somethingbut why not wait until the entire tree
(collections and references) has been materialized before pushing the
object on the cache?
Or, is there a problem with circular references by doing that?
-Andrew
-Original Message-
From: Armin Waibel
I am trying to run a direct SQL query using OJB and not sure how to make
it work. The query I am trying to run is a join of 2 classes. I haven't
specified any join mappings in the repository file. Want to do this
manually. Can you please provide me an example on how to do this
specific thing?
Armin Waibel dijo:
Hi Sven,
I can reproduce your problem. It's a really nasty concurrency
materialization problem when using global/shared caches and an object
was materialized first time:
Solution is to set attribute 'refresh=true' in all
reference-descriptor. This force OJB to lookup
I realized about 5 minutes after I sent this that it *would* in fact
cause circular reference problems. So, that wouldn't work.
This is a pretty tricky issue. The other solution I had would be to
'soft' commit the parent object to the cache until the entire map below
it is materialized, and then
hi thierry,
the problem is now solved in the trunk.
see http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5259
hth
jakob
Thierry Hanot wrote:
Hello
Thanks for the link ,
But in the discussion , there is no solution , it just say that we need to
convert
Jdbc types ...
Any guess about
hi luis,
could you please provide the generated sql ?
jakob
Luis Tiago wrote:
Hi,
I'm having problems doing report queries.
The results are not what I expect. I do not know what I'm doing wrong!
Exemple:
I have these records in database, table movements
MOVEMENTID | USERID | COPYID |
Hi again,
sorry, this make things better, but does not really solve the problem.
regards,
Armin
Armin Waibel wrote:
Hi Sven,
I can reproduce your problem. It's a really nasty concurrency
materialization problem when using global/shared caches and an object
was materialized first time:
Say we
I'm trying to use the TorqueRepositoryGenerator but the tables are not
sorted
and so the sql script generated by torque fails because foreign keys are
created
before the referenced tables.
In fact, my class descriptors in the repository are well sorted, but as the
TorqueRepositoryGenerator uses a
Hi Sven,
Sven Efftinge wrote:
Hi Armin,
I wrote a test for this, now.
Unfortunately I wrote it against my application, because I haven't
installed the OJB test suite yet ;(
The test starts n threads. Each thread creates a PersistentBroker,
retrieves 4 instances of an entity and then checks
Hi:
Since 2 or 4 days ago I am receving from 2 to 4 copies of the same mail of
this maillist. Is just happen to me or anyone else is experimenting the
same problem?
Best Regards,
Antonio Gallardo
-
To unsubscribe, e-mail:
Hi Christopher,
Christopher Tava wrote:
dear ojb user group,
could you kindly tell me the properly way to look a connection from the connection pool?
i have used the following call, but i get a socked closed exception.
Connection conn =
pBroker.serviceConnectionManager().getConnection();
Hi Everybody,
I have a 1:n relationship between
Person Application tables.
I have Person Application valueobjects
representing the tables respectively.
I want to search on the join of these
tables with criteria pertaining to both
tables.
In the Person value object I have a
Collection
Original Message
Subject:Fw: Can anyone help me with this Join question?
Date: Thu, 29 Jan 2004 08:43:49 -0800
From: Jay Xu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Tom,
I saw your posting quite frequently on the board. So maybe you can help me
on this or send
Sven --
The problem is found in the stack trace:
JGeo2] Exception in thread main java.lang.NoClassDefFoundError:
org/apache/commons/lang/exception/NestableRuntimeException
You need to ensure that the commons-lang jar file is in your class path.
Check out
33 matches
Mail list logo