Liferay同时连接多个数据库及其事务问题
????Liferay运用的是spring框架,从早期版本开始,就可以同时连接多个数据库应用,但是在Liferay的文档还是代码中都没有关于同时连接多个数据库的说明,从<st1:chsdate isrocdate="False" w:st="on" year="1899" day="30" islunardate="False" month="12">4.2.0</st1:chsdate>的版本开始出现了连接多个数据库的文档(请参照liferay wiki:http://wiki.liferay.com/index.php/Connecting_to_Another_Datasource/Database),代码中也有相应的明确定义。<o:p></o:p>
Again in keeping with Spring's philosophy, the TransactionException that can be thrown by any of the<o:p></o:p>
PlatformTransactionManager interface's methods is unchecked (i.e. it extends the<o:p></o:p>
java.lang.RuntimeException class). Transaction infrastructure failures are almost invariably fatal. In rare<o:p></o:p>
cases where application code can actually recover from a transaction failure, the application developer can still<o:p></o:p>
choose to catch and handle TransactionException. The salient point is that developers are not forced to do so.
?
<property name="jndiName">