Hi,
I am using JBoss 3.2.6 and Oracle as the database. I have a simple CMP entity bean. I am passing some values to the ejbCreate() method of the bean. The values are getting set when i execute the home.create(value1,value2,.......) statement. After this i am doing a findByPrimaryKey(pk) with the primary key value generated for this record. Iam getting the entity with all the values i had given earlier. But after this i am issuing a select statement on this table using normal JDBC calls. But it is returning only the previous records in the table. The record which i inserted is not getting selected. Only after this query is executed, the inserted data is getting committed into the database.
Is there any means in JBoss 3.2.6/CMP to commit the records into the database immediately after ejbCreate() method is called?
Regards
- Hari
Hello,
Did you happen to figure this out or get some help with it? I have a similar question and I'd like to know how this gets solved...
- Matt