J2CA0075W 处理方法 allocateMCWrapper 时应该存在活动的事务
来源:互联网 发布:baby在韩国知乎 编辑:程序博客网 时间:2024/06/09 17:14
J2CA0075W 处理方法 allocateMCWrapper 时应该存在活动的事务
应用系统在websphere5.1环境小运行,SystemOut.log 文件不断打出以下warming语句
[06-5-9 17:01:44:778 GMT+08:00] 3945f948 ConnectionMan W J2CA0075W: 处理方法 allocateMCWrapper 时应该存在活动的事务。
[06-5-9 17:01:44:803 GMT+08:00] 3945f948 ConnectionMan W J2CA0075W: 处理方法 initializeForUOW 时应该存在活动的事务。
[06-5-9 17:01:44:778 GMT+08:00] 3945f948 ConnectionMan W J2CA0075W: 处理方法 allocateMCWrapper 时应该存在活动的事务。
[06-5-9 17:01:44:803 GMT+08:00] 3945f948 ConnectionMan W J2CA0075W: 处理方法 initializeForUOW 时应该存在活动的事务。
websphere的文档解释如下:
***********************************************************
Cause
These messages are being produced due to an "unsupported" environment. When application has spun its own threads from an EJB, accessing a database is not supported (per the J2EE specification). If a Servlet is spinning its own threads and accessing a database, the J2EE specification is not clear on this, so WebSphere Application Server 5.0 will allow it at this time. IBM is working with Sun to clarify this in the specification, so eventually (i.e. J2EE 1.4) spun threads from a Servlet accessing a database outside of a transaction will not be supported either.
***********************************************************
Cause
These messages are being produced due to an "unsupported" environment. When application has spun its own threads from an EJB, accessing a database is not supported (per the J2EE specification). If a Servlet is spinning its own threads and accessing a database, the J2EE specification is not clear on this, so WebSphere Application Server 5.0 will allow it at this time. IBM is working with Sun to clarify this in the specification, so eventually (i.e. J2EE 1.4) spun threads from a Servlet accessing a database outside of a transaction will not be supported either.
Since we don't want to promote the usage of these "naked" threads accessing databases, we are producing the warning messages. Although they may be filling up the logs, we feel that these are necessary to warn the user that they are doing something not in-line with the intended usage. Customers should consider changing their application to comply with the
J2EE specification.
J2EE specification.
Solution
The temporary fix to suppress these warning messages from log file is to modify the file j2c.properties which can be found in the $WAS_HOME/properties directory ($WAS_HOME is the directory where WebSphere Application Server 5.0.x is installed) and
add the following line to the file:
false
***********************************************************
具体原因就是在websphere环境下如果从非WebSphere创建的线程(如servlet)中访问datasource的Connection的话,将给出以上警告。消除该警告的方法参考上文的方法。
具体原因就是在websphere环境下如果从非WebSphere创建的线程(如servlet)中访问datasource的Connection的话,将给出以上警告。消除该警告的方法参考上文的方法。
- J2CA0075W 处理方法 allocateMCWrapper 时应该存在活动的事务
- J2CA0075W 处理方法 allocateMCWrapper 时应该存在活动的事务
- J2CA0075W 处理方法 allocateMCWrapper 时应该存在活动的事务
- 活动被回收时临时数据的处理方法
- 关于存在Rich Text Editor的页面应该如何处理?
- java处理事务的方法
- JDBC处理事务的方法
- 活动策划存在的意义
- 使用事务时应该避免的陷井
- 使用事务时应该避免的陷井
- 使用事务时应该避免的陷井
- 使用事务时应该避免的陷阱
- 使用事务时应该避免的陷井
- 使用事务时应该避免的陷井
- .net 事务嵌套存储过程事务的处理方法
- SQL Server事务日志的处理方法
- C#中事务的处理方法
- ef 事务 的一种处理方法
- .Net中的设计模式——从实例谈OOP、工厂模式和重构 http://www.cnblogs.com/wayne-ivan/archive/2006/09/07/496920.html
- 一步一步学RMAN第11篇 rman笔记之综述
- Oracle压力测试之orabm
- I'M BACK!
- 是个什么呀
- J2CA0075W 处理方法 allocateMCWrapper 时应该存在活动的事务
- 2007-9-18的生活
- NUnit学习笔记4--单元测试和项目结合的几种方法(摘录)
- ASP.NET 在线统计的研究
- 判断文件夹是否有了,没有则创建文件夹
- 星期一:今日不宜开会
- 定性研究的小技巧与注意事项!
- 今天很兴奋,发现了一个 ajaxpro 经常发生的错误,哈哈
- CSS样式嵌套