Bugs item #545202, was opened at 2002-04-17 14:48
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=545202&group_id=22866

Category: JBossServer
Group: CVS HEAD
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: ObjectWiz (objectwiz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bean Creation in Cache not in Database

Initial Comment:
I wrote a simple Entity bean and built up a test case.
Here is what it tries to do:

1) Create a bean
2) Find it by primary key
3) Find all beans of that type by primary key
4) Remove all beans of that type by primary key

Here's what happens:

1) Bean is created
2) Bean cannot be found by primary key
3) findAll() returns a Collection of size 0
4) Nothing to remove

Now, if I try to create the bean again, I get an
exception because it's already there. But I can't find
it. So, next step:

1) Is anything is the database?

Answer: no. No database entries have been made. The
database is 100% empty.

This leads me to the conclusion that Entity bean is in
cache but not in the database and that the finders are
looking in the database.

I have attached my test classes below.

Peter.

----------------------------------------------------------------------

>Comment By: ObjectWiz (objectwiz)
Date: 2002-04-24 08:25

Message:
Logged In: YES 
user_id=273193

This was a goof on my part with the Transaction attribute
settings... :">

----------------------------------------------------------------------

Comment By: ObjectWiz (objectwiz)
Date: 2002-04-17 15:44

Message:
Logged In: YES 
user_id=273193

To run the test case:

JUnit and the JBoss client stuff will have to be in the
CLASSPATH then type:

java client.uk.org.objectwiz.model.forum.ejb.TestClient

and you'll get the usual JUnit output stuff.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=545202&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to