This content has been marked as final. Show 4 replies
I guess that you provided only pieces of your code.
Anyway, most likely the problem is that you don't open a container with a transactional support. You should do something like:
Also you should commit or abort any transaction.
XmlContainerConfig containerConfig = new XmlContainerConfig(); containerConfig.setTransactional(true); container = manager.openContainer(CONTAINER_NAME, containerConfig);
Let me know if you have further questions/problems
Yes, I already set transactional environment. I has to be another problem.. But I don't have any idea.
Setting a transactional environment is not enough, you should set a transactional container as I pointed out -- I couldn't see it from your code snippet.
If it doesn't help, could you post the whole piece of code?
Ok, I didn't realize that setting environment transactional it's not enough.
I 'll try setting container too.