This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
zabet tyan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am getting this exception:



I read somewhere online that I have to wrap my the classes in transactionProxies. I am doing so for wfControllerMdb which is a MessageListener and where the initial request is made.




my initial call at the top of the stacktrace is wrapped in a proxy:



I am also doing in my OrderManager which makes the final call to my entityManager to save:





and my entityManager which is in charge of saving is also wrapped in a transcationProxy:



So WFControllerMdb (wrapped in txProxy) calls a couple of objects:


those objects get the OrderManager bean from my beanAwareFactory (wrapped in txProxy) and call updateOrder.
then OrderManager(wrapped in txProxy) calls entityManger (wrapped in txProxy) to save the order.

I am pretty sure that no where in my code any transaction is marked as readonly, so the question is why am I getting this error message.


THanks a lot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic