Hi,
I'm using jboss2.1 and postgresql7.0.3. I wrote a small CMP entity bean,
and got the database
all hooked up. There are two columns in my table (two fields in my bean),
and my primary key is
a string. I wrote a small program
to insert a bunch of records in a for loop, just to see how fast it would
be, and it worked
great. I just appended the index of the for loop to the base string for my
pk, so that they
look like key0, key1, ... keyN. If I then call findAll on my home, I get a
collection of the
objects, and can call remove on each of them, and get consistent results.
If, however, I delete
the records in psql and run my program, I get exceptions about the objects
already existing.
These are _not_ duplicate pk exceptions. It is as if the container (JBoss)
hasn't figured out
yet that the db data is gone. It seems as is this is some sort of timing/gc
thing, since
after some "random" period, my program will run, but it may not actually
finish. That is,
if I try to insert 500 records, it may die on number 92 or something, as if
the container had
started cleaning things up, but hadn't quite finished yet. I know I'm
supposed to be allowed
to modify data outside of ejb, so what's going on? Is it just a latency
thing? Is that
configurable?
Thanks!
Carey
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user