在websphere中编写的消息驱动bean中使用了数据源,在onMessage()运行完之后报错: 发生试探非法用现有两阶可用资源落实一阶可用资源。 我的原因是因为消息驱动bean的配置文件中 <transaction-type>Container</transaction-type> 修改成 <transaction-type>Bean</transaction-type>之后问题解决