??xml version="1.0" encoding="utf-8" standalone="yes"?>久久综合久久鬼色中文字,在线观看av影片,97在线观看免费观看http://www.aygfsteel.com/hx9111/archive/2006/05/10/45512.html我爱夏花,更爱U叶我爱夏花,更爱U叶Wed, 10 May 2006 09:37:00 GMThttp://www.aygfsteel.com/hx9111/archive/2006/05/10/45512.htmlhttp://www.aygfsteel.com/hx9111/comments/45512.htmlhttp://www.aygfsteel.com/hx9111/archive/2006/05/10/45512.html#Feedback3http://www.aygfsteel.com/hx9111/comments/commentRss/45512.htmlhttp://www.aygfsteel.com/hx9111/services/trackbacks/45512.html在现在的应用pȝ中几乎都能看到xml和database的n?与这两个东西正交的是OO.

  • XML <==> OO 影射的东西有很多,一般都是用marshaller架构.

 

(q里不说用于xml解析的dom和sax模型,只是说xml与pojo的媄关p?)其实再怎么影射也是通过dom或者sax接口的实现进行解析的,q是通过新的javaSE规范Streaming API for XML (StAX), xml和OO的媄只不过q行了抽象封?把xml到pojo之间的解析部分透明化了,我们q里实际说的其实是JavaEE5.0中一个新的规范Java Architecture for XML Binding (JAXB))

比较有名的框架有:

+ castor 比较有名的一个O/X影射框架,可以Ҏxsd生成解析框架.(个h比较喜欢使用?

+ apache 的xmlbean和Commons-Digester(不知道ؓ什么会存在两个同样领域的东?可能是digester相对来说比较?因而它被许多的apache的开源项目?;

+ JAXB 是JAVAEE中的对于xml和OO对象Binding定制的新的规?标准?);

实际要研Ixml和OO的媄框?大家不妨看看现有的web service框架׃了解很多?看Codehaus?XFire 他是一个比较轻量的WS框架,AXIS2也不?

我了解的XML Binding框架p么多,如果谁知道更好用的可以告诉我,相您h.

  • 对于O/R mapping ׃用太说了,大家了解的可能都比我?个h只用q一下几?

+ hibernate ,ibatis ,jdo ,castor jdo(期待EJB3.0U的Persistence规范JPA)对于q几U框架的介绍׃说明?google一下会出来无数.

 

?q里不是惌ZU技?而是惛_大家对XML到database的媄有什么更好的办法,因ؓO/X,O/R都有很好的框架了,是否有X/R的好的框?

q里我只知道castor 中对从xml到database有一定的支持,但支持的q是不够,hibernate3.0U好象对xml到databaseq行了支?但是也是一些简单的支持.

不断整理中。。?/p>

我爱夏花,更爱U叶 2006-05-10 17:37 发表评论
]]>
q段旉比较忙!可能没时间维护Blog了:Q?/title><link>http://www.aygfsteel.com/hx9111/archive/2005/06/25/6705.html</link><dc:creator>我爱夏花,更爱U叶</dc:creator><author>我爱夏花,更爱U叶</author><pubDate>Sat, 25 Jun 2005 04:31:00 GMT</pubDate><guid>http://www.aygfsteel.com/hx9111/archive/2005/06/25/6705.html</guid><wfw:comment>http://www.aygfsteel.com/hx9111/comments/6705.html</wfw:comment><comments>http://www.aygfsteel.com/hx9111/archive/2005/06/25/6705.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hx9111/comments/commentRss/6705.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hx9111/services/trackbacks/6705.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">   q几天在研究框架枉层次的抽象问题,q有框架的一些集成问题,可能要没旉l护</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">Blog</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q框架的初期版本已经开发完毕了Q在几次初期的用中Q反映还是不错的Q真是高兴。但是还有很多不的地方Q下一阶段Ҏ架的开发,主要是在调试和试斚w?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN>JBrain</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">框架的设计的初期目的是要提供一个基本的企业U运行环境,好?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JVM</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">一栗而下一期开发的目标是?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JBrain</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">框架的这一个运行环境的基础上,开发一套徏模语aQ?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JBrain</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">框架是q种模型语言的运行环境?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">我们Zq个目标都在研究</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">MDA</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q个?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">MDA</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">的思想?/SPAN><SPAN style="mso-bidi-font-weight: bold"> </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">?/SPAN><SPAN style="mso-bidi-font-weight: bold"> <SPAN lang=EN-US>Perfection</SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">”,但是实现他谈何容易,我们研究它只是研I它的思想Q通过q种思想Q能够给我们以启发?BR>   </SPAN></FONT></P><img src ="http://www.aygfsteel.com/hx9111/aggbug/6705.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hx9111/" target="_blank">我爱夏花,更爱U叶</a> 2005-06-25 12:31 <a href="http://www.aygfsteel.com/hx9111/archive/2005/06/25/6705.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>白话自己心中的设计模?/title><link>http://www.aygfsteel.com/hx9111/archive/2005/06/16/6238.html</link><dc:creator>我爱夏花,更爱U叶</dc:creator><author>我爱夏花,更爱U叶</author><pubDate>Thu, 16 Jun 2005 14:07:00 GMT</pubDate><guid>http://www.aygfsteel.com/hx9111/archive/2005/06/16/6238.html</guid><wfw:comment>http://www.aygfsteel.com/hx9111/comments/6238.html</wfw:comment><comments>http://www.aygfsteel.com/hx9111/archive/2005/06/16/6238.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hx9111/comments/commentRss/6238.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hx9111/services/trackbacks/6238.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">   再一ơ的看设计模式的时候,感觉自己对设计模式,有了一个进一步的理解Q自我感觉的</SPAN><SPAN lang=EN-US style="FONT-FAMILY: Wingdings; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold; mso-char-type: symbol; mso-symbol-font-family: Wingdings"><SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings">J</SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">.<BR><BR><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">在数学计中我们要求</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">A</SPAN><SPAN lang=EN-US style="FONT-FAMILY: Wingdings; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold; mso-char-type: symbol; mso-symbol-font-family: Wingdings"><SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings">à</SPAN></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">B</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">点的最短\径,可能?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">A</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">点到</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">B</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Ҏ很多U走法,但是q求完美的我们(其是程序员Q,L希望扑ֈ一条最短的路径。设计模式也是相同,在设计中我们惌扑ֈ设计中的最短\径,也就是设计的永恒之道Q就是设计模式中常说的无名的质)Q说白了Q就是如何设计才能ɾpȝ更容易扩张,更灵z,更稳定。模式追求的是一U最佳的解决ҎQ在q个Ҏ的指gQ我们能够跟好的d现我们所惌实现的东ѝ?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">数学计算的时候有一定的法则QY件设计的时候也是有一定的法则的,而这些法则,都是在追求Y件设计的守恒定律时Ş成的——什么开</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">/</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">闭原则,面向接口原则Q依赖倒置原则{等Q但是Y件设计中的原则也是可变的Q而且是时d展的Q要不然׃会出玎ͼ今天?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">spring</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">非常火的场面Q?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">Ioc</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">原则?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">数学计算是通过许多的公式推倒出l果的,但是我们求解的时候,会出现这U情况,</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">C</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">l果Q是通过</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">A</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">B</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">两个公式推导出来的,模式也是一P有一些较的模式Q而这些较的模式是一些较大的模式的基?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">在理解模式的时候我们可以从对象的生命周期来理解?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">对象产生的时候需要描q对象的属性,它的存在形式Q创建模式就是用来描q这个的Q而这个对象存在就会和其他对象发生联系Q就会和其他对象发生作用Q如何描qC们之间的联系和作用就是结构模式要做的事了Q前面这些都是静态的Q对象的存在Q不可能永远静止不动的,它会Ҏ自己的需要,完成一些动作,语言中还有动词,名词QŞ容词之分呢!模式p语言一样需要有动词来描q对象,行ؓ模式是用来描述对象的行动的Q?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">设计模式Q实际就是一U设计中的语aQ很多的最基本的模式,是l成q种语言的基Q我们在理解模式的时候不能只是背模式Q而应该灵zȝq用他们Q让他们有机的结合在一P形成一个生动的句子。这个就好比我们学英语,不是光背一些单词,p写出一好文章的,q需要我们有语感Q理解了以后才能写出来?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">q个只是我对模式的一点点个h的理解,不代表所有h的观点!Q)</SPAN></FONT></FONT><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></P><img src ="http://www.aygfsteel.com/hx9111/aggbug/6238.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hx9111/" target="_blank">我爱夏花,更爱U叶</a> 2005-06-16 22:07 <a href="http://www.aygfsteel.com/hx9111/archive/2005/06/16/6238.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>事务的理解和jotmQxapool的?Q?Q?/title><link>http://www.aygfsteel.com/hx9111/archive/2005/06/11/5917.html</link><dc:creator>我爱夏花,更爱U叶</dc:creator><author>我爱夏花,更爱U叶</author><pubDate>Sat, 11 Jun 2005 10:13:00 GMT</pubDate><guid>http://www.aygfsteel.com/hx9111/archive/2005/06/11/5917.html</guid><wfw:comment>http://www.aygfsteel.com/hx9111/comments/5917.html</wfw:comment><comments>http://www.aygfsteel.com/hx9111/archive/2005/06/11/5917.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/hx9111/comments/commentRss/5917.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/hx9111/services/trackbacks/5917.html</trackback:ping><description><![CDATA[<SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"></SPAN><SPAN lang=EN-US><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对于中小型的应用</SPAN><SPAN lang=EN-US>tomcat</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">作ؓ服务器就_了,但是Q在我把框架往</SPAN><SPAN lang=EN-US>tomcat</SPAN></FONT><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=2>上{Uȝ时候有了一个问题,工作引擎的数据库是独立的,如何保证他和业务的数据库事务上的l一性,q里涉及到分布式事务的概念?BR><BR></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/SPAN><SPAN lang=EN-US>weblogic</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q?/SPAN><SPAN lang=EN-US>websphere</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q这U企业服务器,他们有自q事务理器,你可以配|多?/SPAN><SPAN lang=EN-US>datasource</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q这?/SPAN><SPAN lang=EN-US>datasource</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">可以指向不同的资源(数据库,消息服务Q,事务理器就是这些资源的理中心Q当一个事务开始的时候(</SPAN><SPAN lang=EN-US>begin</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q,事务理器会记录q监视这个事务涉及的所有可理资源Q当一个事务结束的时候(</SPAN><SPAN lang=EN-US>commit</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q,他会把所有的资源提交Q而当E序出现异常的时候,他会把所有的资源回滚Q?/SPAN><SPAN lang=EN-US>rollback</SPAN></FONT><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=2>Q。在事务边界以内Q所有的可管理资源实际都是没有提交的Q处于一U等待状态,只有当事务提交的时候,事务理器才负责把它所理的所有资源提交。事务管理器是一个全局事务理中心Q它负责把许多可理Q可以控制事务)的资源的事务l一h?BR><BR></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Zq种q种考虑Q我在管理全局性事务的时候,选择?/SPAN><SPAN lang=EN-US>jtom</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/SPAN><SPAN lang=EN-US>xapool</SPAN></FONT><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=2>?BR><BR></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT size=2><SPAN lang=EN-US>Jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是一个开源的</SPAN><SPAN lang=EN-US>JTA</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实现Q是?/SPAN><SPAN lang=EN-US>ObjectWeb</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">l织开发的Q实际就是实C事务理器的功能Q而且他还支持分布式事务,如果?/SPAN><SPAN lang=EN-US>jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">l合</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JORAM </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q也是由</SPAN><SPAN lang=EN-US>ObjectWeb</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">l织开发的</SPAN><SPAN lang=EN-US>JMS</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实现<SPAN style="mso-bidi-font-weight: bold">Q用,可以实?/SPAN></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JMS</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">的事务管理。(q里我在惻I</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">JBossCache</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">是支持事务的</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">cache</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q如果把它们l合在一P是不是就可以对缓存进行事务控制了Q)Q?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">对于</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">的用,你只要记住这个应用中只有一?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">Jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">对象?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">OK</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">了,对于分布式事务也是一P如何保证一个应用中只用一?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">Jotm</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">实例呢?<BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 42pt; mso-char-indent-count: 4.0"><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><FONT size=2><FONT color=#a52a2a>jotmCurrent = Current.getCurrent();</FONT><BR><BR><o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">使用上面的方法,如果</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jotmCurrent </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">{于</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">null</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q说明现在的</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jvm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">中没有没?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">实例Q当需要分布式的时候就不能q么判断了,你必L</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">对象攑ֈ</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jndi</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">上,以后使用的时候从</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jndi</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">上取可以了?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-tab-count: 1">       </SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">如果</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jotmCurrent</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">不等于空Q说?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jvm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">中已l有</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">实例了,而如何得到这个实例了Q如果从q个角度去考虑Q是不行的,你可以看一?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">Jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">API</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q看一?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">Current</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">的类说明Q?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-spacerun: yes"><FONT size=2> <FONT color=#0000ff>  </FONT></FONT></SPAN><A ><FONT color=#0000ff size=2>http://jotm.objectweb.org/current/jotm/jdoc/</FONT></A><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p><FONT size=2> </FONT></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><SPAN style="mso-spacerun: yes">    </SPAN></SPAN><SPAN lang=EN-US>public class <B>Current</B> </SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 31.5pt; mso-char-indent-count: 3.0"><SPAN lang=EN-US><FONT size=2>extends </FONT><A ><FONT color=#0000ff size=2>Object</FONT></A><FONT size=2> </FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36.75pt; mso-char-indent-count: 3.5"><SPAN lang=EN-US><FONT size=2>implements </FONT><A ><FONT color=#0000ff size=2>UserTransaction</FONT></A><FONT color=#0000ff size=2>, </FONT><A ><FONT color=#0000ff size=2>TransactionManager</FONT></A><FONT color=#0000ff size=2>, </FONT><A ><FONT color=#0000ff size=2>Referenceable</FONT></A><FONT color=#0000ff size=2>, </FONT><A ><FONT color=#0000ff size=2>Serializable</FONT></A><FONT size=2> <BR><BR></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="mso-bidi-font-weight: bold">Current </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">对象实际是一个事务管理器Q哈哈,我们使用</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q不是Zq个吗,</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">ok</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q?/SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">you got it</SPAN></FONT><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Q?BR><BR></SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">我对</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">jotm</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">和事务的研究q不够深入,以上都是个h理解Q有不对的地方还请大家指出!</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">下面的文章,我重点对</SPAN><SPAN lang=EN-US style="mso-bidi-font-weight: bold">xapool</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">q行说明Q用他的时候问题特别多Q)Q?/SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"></o:p></SPAN> </P><img src ="http://www.aygfsteel.com/hx9111/aggbug/5917.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/hx9111/" target="_blank">我爱夏花,更爱U叶</a> 2005-06-11 18:13 <a href="http://www.aygfsteel.com/hx9111/archive/2005/06/11/5917.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">֦</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ȫ</a>| <a href="http://" target="_blank">ǭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˷</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank">ϳ</a>| <a href="http://" target="_blank">ګ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ũ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">޽</a>| <a href="http://" target="_blank">ʤ</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">˳</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">γ</a>| <a href="http://" target="_blank">лͨ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¡</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>