Chris Tragas wrote:
> Hi.
>
> This might be a silly question but i'll ask anyhow:
>
> How do i keep my entity beans in "synch" (so to speak) if the data the bean
> is mapped to is updated in the datasource by another application or process
> ?
>
> what i'm experiencing is this: I use entity beans to cerate records in a
> dabatabse; my bean creates a record with pk_id = 1; then i remove the record
> from the database and initialise my sequence class back to 1 so when i call
> my bean.create i expect it to create a record with pk_id 1 again; but when i
> do this i get all sorts of ejbexcpetions errors;
>
> this leads me to believe that i'm upsetting the caching of jboss; can anyone
> point me in the right direction as far as what i am doing wrong;
You need to change your commit-option to C in either standardjboss.xml
or in a bean-specific jboss.xml. This will cause JBoss to not cache the
beans at all (except within a transaction)
-danch
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user