• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Error "Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)"

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
iam getting the following error on my console of eclipse:-



We are using setter bean injection (DI) of Spring.

Spring annotation defined in the service class is:-



What is the reason behind it ?



If i change the id defined above to ReadWrite then it works but i don't know its reason, why it is so?
Please explain me in detail why ?

thanks in advance





 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ReadOnly means that your code will only read in data, never try to write it. If you try to write it, it will fail, because you told it you were only going to do reads.

Setting your transaction to ReadOnly does some stuff to turn off Flushing for writes.

Mark
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic