thats it...
my class was not named manager.
i just followed my onw demo and than it worked. the diff the naming.
i did know about this default behavior.
thanks mike saved my day ;)
tibi
Michael Horwitz wrote:
By default AppFuse wraps all methods on any bean whose class name ends
in Manager in a transaction. So normally you do not need to add
transactional annotations to your methods. You will have problems
though if:
1) You access Dao's directly.
2) Your service layer bean class is not called xxxManager.
Mike.
On 4/18/07, *tibi* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
can't get my head around this.
why this happens in my current project and not in others i don't
know.
i did not use something like:
@Transactional(readOnly = false)
in my others projects where i could do an update fine.
any smart ass out there??
tibi
tibi wrote:
> anyone got this error:
>
> Data Access Failure
>
> Write operations are not allowed in read-only mode
> (FlushMode.NEVER/MANUAL): Turn your Session into
FlushMode.COMMIT/AUTO
> or remove 'readOnly' marker from transaction definition.
>
> « Back <http://localhost:8080/topnet/mainMenu.html>
>
>
> and solved it??
>
> thanks
>
> tibi
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]