简体   繁体   中英

JPA use with hundreds of servers

我从未使用过JPA,但我想知道是否可以通过某种方式对其进行配置,使其可以连接到大约200个不同的服务器,但是将完全相同的数据输入到每个服务器上具有相同结构的数据库中。

Even though the question lacks important contextual information I dare to answer (what seems to be) the core of it:

...JPA...possible configure it in a way that it will connect to around 200 different servers...

No, not really. The foundation of a JPA setup is a single data source ie connection to one server.

As others have correctly pointed out you attempt to solve your problem on OS or data base level. Depending on what you really need what you want to look into is:

  • database replication
  • database mirroring
  • database clustering (may be a form of either of the first two)

Primer for MS SQL: http://technet.microsoft.com/en-us/library/ms151799.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM