J2CA0075W 处理方法 allocateMCWrapper 时应该存在活动的事务

转载 2006年05月24日 12:04:00

应用系统在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 时应该存在活动的事务。

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.

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.


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的话,将给出以上警告。消除该警告的方法参考上文的方法。

相关文章推荐

SSH框架中配置log4j日志以及Struts2配置异常处理方法

1. log4j.properties文件配置示例 # default properties to initialise log4j log4j.rootLogger=ERROR,file,...

up_484946_phpext_j2r9w.rar

  • 2012-12-22 22:49
  • 196KB
  • 下载

(三)6W2H方法

牧牛遛马在PDCA的基础上,理解了做一个计划严格实施达到我们预期的短期较难实现的目标。在P阶段和D阶段我们需要根据6W2H的方法把我们的计划落到实处,不能光是纸上谈兵,要有明确的责任人,完成时间,完成...

Jack:w3自创数组排序,直接用元素定位,算法复杂度O(n^2),另附上一种 我也不知道适不适用的方法。

1.元素定位排序 思想:比较一个元素小于等于多少个元素,对其位置进行定位输出 最坏情况运行时间:O(n^2) 最佳运行时间:O(n^2) 先上代码()对数组int[] a;进行排序 int[] a...

Struts2+Ibatis+Spring.30(完整例子,含3.0事务配置,OSCache缓存配置,JreeChart配置,log4j日志输出Sql,对一个表实现完整的查询,批量删除,添加,更新)

1.新建表 create table ( id int  identity(1,1) primary key, loginid varchar(10), username varchar(2...

活动选择问题(2)-贪心方法分析

活动选择问题(1)中对活动选择问提以动态规划的思想进行了分析,其实存在一种更好的解决方法。我们证明了此问题具有重叠子问题性与最优子结构性质,这个问题还可以继续优化吗?可以先从直观上想,我们应该选择这样...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)