Startup-Log “No Transaction manager found”

戏子无情 提交于 2019-12-06 18:29:25

问题


When I start jetty, following line appears in Log:

:INFO:oejpw.PlusConfiguration:No Transaction manager found
- if your webapp requires one, please configure one.
  • What does it means?
  • How do I know that my webapp requires a transaction manager?
  • Which features serves such transaction manager or what am I missing if I do not have one?

回答1:


Typically if you need one, you know you need one.

Transaction managers like Atomikos or JOTM are what are being referred to here. Used for distributed transactions leveraging the JTA api:

  • http://en.wikipedia.org/wiki/Java_Transaction_API

So in jetty's case it is an informational message that no such api has been bound via jndi on startup when using the jetty-plus configuration. jetty-plus in of itself is a module for integrating to resources that are outside of the strict servlet-api sense but are still often useful for people.




回答2:


I also have this warn message and have config transaction manager in spring config-file.

But everything is normal,so,i think you can ignore this message.



来源:https://stackoverflow.com/questions/11339758/startup-log-no-transaction-manager-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!