Hi folks,
I have created a remote entity bean, which I access through a simple client which looks up the bean, gets the home, narrows it and passes some database fields to the ejbCreate. So, I create a few beans (rows in my database) and then access them with another simple client, which simply picks up a primary key from the command line and does a findByPrimaryKey(
String key) and then prints out the fields of the bean. This works fine so long as I am in the same session where I created the beans. If I stop the server and restart, using one of the keys, I get an ObjectNotFoundException. I thought that these entity beans were supposed to be persistant! If the row exists in the database, then I should be able to get my bean back. Is there something I am forgetting? I am using the RI and Cloudscape database i.e. the defaults. Any ideas would be most welcome!
regards,
Simon