English 中文(简体)
JBoss的亚洲开发银行动态转换
原标题:Dynamic switching of DB in JBoss
  • 时间:2011-11-11 11:22:22
  •  标签:
  • java
  • jboss

能否在JBoss(无论是装装XML还是改用另一个数据来源)中动态转换亚洲开发银行? 如果是,如何?

最佳回答

JBoss的部署名录载有可热开发的服务(可增入或从运行服务器中删除的服务)。 本报告还载有当前服务器配置的申请。 你在部署名册上设置了申请包(JAR、WAR和EAR档案)。 该名录不断扫描,以便更新,任何经修改的部件都将自动重新开发。

因此,如果你改变数据来源档案,就在运行。 将自动重新启用。 如果没有放弃,你将产生变化的影响。

问题回答

可以通过在您的部署名录中查阅DS.xml文档,扫描仪将重新开发数据来源的描述。 我很想知道,你会希望这样做吗? 如果你在两个数据库之间听起来,那么为什么你不只为这两个数据库部署说明员? 无论是在一份——DS.xml档案中,还是作为两卷——DS.xml文档? 或者,你说,你正在使用被称为XXX的日本邮政局的持久性,即两个不同的银行。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签