Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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

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
Boost this thread!