阿宝 Keep Walking......


JUST DO IT, DO YOUR BEST ! -- 勿在浮沙筑高台

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  49 Posts :: 6 Stories :: 26 Comments :: 0 Trackbacks

12 2006 档案

     摘要: First it is very important to understand the difference between local transactions and global (JTA) transactions. All JMS Sessions support local transactions. That is, calling commit() and rollback() directly on the JMS Session object. Local transactions only affect the JMS session, nothing else. Local transactions have nothing to do with and are independent from the JTA transactions used by container (CMT) or by bean managed transactions (BMT).  阅读全文
posted @ 2006-12-06 17:02 阿宝 阅读(734) | 评论 (0)  编辑

     摘要: 关于获取数据源的语法,大体有(javax.sql.DataSource) ctx.lookup ("java:comp/env/XXX")和(javax.sql.DataSource) ctx.lookup("XXX")两种写法,好多人以为这两种写法是相同的,以为都是通过JNDI来获取数据源。其实java:comp/env和 JNDI是不同的,java:comp/env 是环境命名上下文(environment naming context(ENC))  阅读全文
posted @ 2006-12-06 16:38 阿宝 阅读(7988) | 评论 (4)  编辑

     摘要: 在JBoss下判断当前是否处于JTA的事务中  阅读全文
posted @ 2006-12-06 15:57 阿宝 阅读(229) | 评论 (0)  编辑