`
sys_ks_cnm
  • 浏览: 21441 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Closing a connection for you. Please close them yourself

阅读更多
今天用JBOSS进行测试时,connect 连接关闭报错 一般情况下 jboss会自动关闭连接的,代码里面也加了关闭连接的代码 ,但是还是出现 Closing a connection for you. Please close them yourself: org.jboss.resource 。

解决方法:JBOSS 4.0以上 jboss-4.0.5.GA\server\default\deploy/jbossjca-service.xml

将文件当中的
<mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager"
         name="jboss.jca:service=CachedConnectionManager">
    <depends optional-attribute-name="TransactionManagerServiceName">jboss:service=TransactionManager</depends>

    <!-- Enable connection close debug monitoring -->
   <attribute name="Debug">true</attribute>
将红色部分的true 改为false

这样jboss就不会报错了

分享到:
评论

相关推荐

    SSH异常总结

    持久化异常是指在使用 Mybatis 更新数据库时,报错 Cannot delete or update a parent row: a foreign key constraint fails。这种异常的原因是因为在更新 user 表时,未更改外键值 user_id,导致外键约束失败。解决...

    Financial Closing

    Unit 1: Overview of the Closing Activities................................................1 Month-End and Year-End Closing Processes ............................................2 Unit 2: The Financial...

    Digging into WordPress.pdf

    2.5.2 Add a New Account for Yourself ...................................................39 2.6.1 Choosing the Perfect Theme .................................40 2.6.2 Where to Find Awesome Themes.........

    16-kinds-of-close-the-window.rar_close

    1. **Form.Close()**: 这是最基础的关闭窗口的方法,通过调用窗体的Close方法,可以触发窗体的Closing事件。 2. **Me.Close()**: 这是另一种常见的关闭当前窗体的方式,它也是调用了Form.Close()方法。 3. **...

    Foundations for Analytics with Python O-Reilly-2016-Clinton W. Brownley

    As you can imagine, it’s a lot more efficient and fun to have a computer search for the records you need than it is to search for them yourself. Opening, searching in, and closing dozens of files ...

    C语言-文件操作-1(文件的打C-Language-1-Opening-and-Closing-Files-master.zip

    - `"a"`:追加模式,文件存在则在末尾添加,不存在则创建。 - `"r+"`、`"w+"`、`"a+"`:读写模式,分别对应上述模式,可同时读写。 3. **文件指针** `fopen()`函数返回一个文件指针,这是对文件的一种抽象表示,...

    Microsoft Remote Desktop for Mac

    A brand new Connection Center that supports drag and drop, manual arrangement of items, resizable columns in list view, column-based sorting, and easier group management. Settings import from the ...

    学校20xx年七年级下学期期末考试(英语).doc

    (A)单项填空从A、B、C、D四个选项中,选出可以填入空白处的最佳选项。 21. _______ enjoyable music programme on Channel 3! A. How B. How an C. What D. What an 22. ---What are the police doing there? ---...

    Web Caching and Replication

    Why Choose a Server When You Can Have Them All? Section 16.6. Summary Part IV: Further Directions Chapter 17. Adding Value at the Edge Section 17.1. Content Filtering Section 17.2. ...

    Hello Android.rar

    Whether you’re a hobbyist or a professional programmer, whether you are doing it for fun or for profit, it’s time to learn more about developing for Android. This book will help you get started. ...

    The way to go

    1.2 Main characteristics, context and reasons for developing a new language....................4 1.2.1 Languages that influenced Go.......................................................................

    41 Review_for_closing.exe

    41 Review_for_closing

    BURNINTEST--硬件检测工具

    - A network connection and the TCP/IP networking software installed for the Network Tests Pro version only: - A serial port loop back plug for the serial port test. - A parallel port loop back plug...

    Microsoft Remote Desktop for Mac Version 10.2.2 (1268)

    Microsoft Remote Desktop is designed to help you get your work done wherever you are. You can connect to remote PCs or applications and be productive as if these resources were running locally. ...

    [Go语言入门(含源码)] The Way to Go (with source code)

    The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................

    端口查看工具

    CurrPorts v2.10 ... o /close command-line parameter - Close a connection from command-line * Version 1.08: o Fixed columns order bug. * Version 1.07: o New option: Resolve the remote...

    Sql for mysql

    CHAPTER 4 SQL in a Nutshell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.2 Logging ...

    JLink_Windows_V670a.exe

    When closing a firmware update messagebox by pressing [ Esc ], the firmware update was still executed. Fixed. Connect to Cortex-M4 of STM32H7x5/x7 series devices, when M7 boot is deactivated, fixed...

    java 实现多线程服务器

    System.out.println ("Closing Connection...\n"); //最后释放资源 try{ if (in != null) in.close (); if (out != null) out.close (); if (sk != null) sk.close (); } catch (IOException e) { ...

Global site tag (gtag.js) - Google Analytics