appserver

How to make App server to start even if database is down?

这一生的挚爱 提交于 2019-12-04 15:44:14
I am using spring & hibernate. my application has 3 modules. Each module has a specific database. So, Application deals with 3 databases. On server start up, if any one of the databases is down, then server is not started. My requirement is even if one of the databases is down, server should start as other module's databases are up , user can work on other two modules. Please suggest me how can i achieve this? I am using spring 3.x and hibernate 3.x. Also i am using c3p0 connection pooling . App server is Tomcat . Thanks! I would use the @Configuration annotation to make an object who's job it

How to enable PDO on AppServ on windows?

若如初见. 提交于 2019-12-01 19:02:27
I am trying to create an app fir the first time using PDO and when i try { $db = new PDO('mysql:host=localhost;dbname=DBname', 'user', 'pass'); } catch(PDOException $e){ echo '<div class="errorMSG">Failed to connect to database. Please try to refresh this page in 1 minute. However, if you continue to see this message please contact your system administrator.</div>'; echo '<br /><br />' . $e->getMessage(); exit(); } ofcourse i have change pass user and DBname to the correct once but i have get an error could not find driver So with few searches i found out that i need to enable pdo_mysql but i

分布式服务化系统一致性的“最佳实干”

妖精的绣舞 提交于 2019-12-01 18:41:42
1 背景 一致性是一个抽象的、具有多重含义的计算机术语,在不同应用场景下,有不同的定义和含义。在传统的IT时代,一致性通常指强一致性,强一致性通常体现在你中有我、我中有你、浑然一体;而在互联网时代,一致性的含义远远超出了它原有的含义,在我们讨论互联网时代的一致性之前,我们先了解一下互联网时代的特点,互联网时代信息量巨大、需要计算能力巨大,不但对用户响应速度要求快,而且吞吐量指标也要向外扩展(既:水平伸缩),于是单节点的服务器无法满足需求,服务节点开始池化,想想那个经典的故事,一只筷子一折就断,一把筷子怎么都折不断,可见人多力量大的思想是多么的重要,但是人多也不一定能解决所有事情,还得进行有序、合理的分配任务,进行有效的管理,于是互联网时代谈论最多的话题就是拆分,拆分一般分为“水平拆分”和“垂直拆分”(大家不要对应到数据库或者缓存拆分,这里主要表达一种逻辑)。这里,“水平拆分”指的是同一个功能由于单机节点无法满足性能需求,需要扩展成为多节点,多个节点具有一致的功能,组成一个服务池,一个节点服务一部分的请求量,团结起来共同处理大规模高并发的请求量。“垂直拆分”指的是按照功能拆分,秉着“专业的人干专业的事儿”的原则,把一个复杂的功能拆分到多个单一的简单的元功能,不同的元功能组合在一起,和未拆分前完成的功能是一致的,由于每个元功能职责单一、功能简单,让维护和变更都变得更简单、安全

分布式服务化系统一致性的“最佳实干”

一曲冷凌霜 提交于 2019-12-01 18:26:00
1 背景 一致性是一个抽象的、具有多重含义的计算机术语,在不同应用场景下,有不同的定义和含义。在传统的IT时代,一致性通常指强一致性,强一致性通常体现在你中有我、我中有你、浑然一体;而在互联网时代,一致性的含义远远超出了它原有的含义,在我们讨论互联网时代的一致性之前,我们先了解一下互联网时代的特点,互联网时代信息量巨大、需要计算能力巨大,不但对用户响应速度要求快,而且吞吐量指标也要向外扩展(既:水平伸缩),于是单节点的服务器无法满足需求,服务节点开始池化,想想那个经典的故事,一只筷子一折就断,一把筷子怎么都折不断,可见人多力量大的思想是多么的重要,但是人多也不一定能解决所有事情,还得进行有序、合理的分配任务,进行有效的管理,于是互联网时代谈论最多的话题就是拆分,拆分一般分为“水平拆分”和“垂直拆分”(大家不要对应到数据库或者缓存拆分,这里主要表达一种逻辑)。这里,“水平拆分”指的是同一个功能由于单机节点无法满足性能需求,需要扩展成为多节点,多个节点具有一致的功能,组成一个服务池,一个节点服务一部分的请求量,团结起来共同处理大规模高并发的请求量。“垂直拆分”指的是按照功能拆分,秉着“专业的人干专业的事儿”的原则,把一个复杂的功能拆分到多个单一的简单的元功能,不同的元功能组合在一起,和未拆分前完成的功能是一致的,由于每个元功能职责单一、功能简单,让维护和变更都变得更简单、安全

Are java app servers able to destroy threads? If yes, how?

时光怂恿深爱的人放手 提交于 2019-11-30 08:37:35
问题 Destroying threads is deprecated in Java (and not implemented according to javadoc), and interrupting it is only a suggestion which upon the thread is expected to quit, but might not do so. (Not to provide any way to kill a thread inside the J VM is a disturbing design, but my question is not design related.) How do Java application servers unload applications? Are they able somehow to destroy the threads of an application being unloaded? If yes, how? If no, then a single thread of a deployed

Web server vs App server

谁说我不能喝 提交于 2019-11-29 22:36:02
Is an application server something like an additional layer of application servicing above a web server? Does an application server always have a web server as its core? What is the difference? Jitesh No,Application server does not contain web server... Read following articles... http://www.answers.com/topic/application-server http://download.oracle.com/docs/cd/E19159-01/819-3671/ablat/index.html Basically: After the Web exploded in the mid-1990s, application servers became Web based. Also following shows the difference between web server, web container and application server... Difference

Are java app servers able to destroy threads? If yes, how?

余生长醉 提交于 2019-11-29 07:14:12
Destroying threads is deprecated in Java (and not implemented according to javadoc), and interrupting it is only a suggestion which upon the thread is expected to quit, but might not do so. (Not to provide any way to kill a thread inside the J VM is a disturbing design, but my question is not design related.) How do Java application servers unload applications? Are they able somehow to destroy the threads of an application being unloaded? If yes, how? If no, then a single thread of a deployed app with an infinite-loop could bring down an entire app server without any possibility to intervene?

How to change the logging level of dev_appserver

泄露秘密 提交于 2019-11-27 06:04:34
问题 Do you know how to change the logging level of Google App Engine dev_appserver ? I would like to set it to ERROR removing messages like: INFO 2011-10-18 17:43:00,806 dev_appserver_multiprocess.py:637] Running application foo on port 8106: http://localhost:8106 INFO 2011-10-18 17:47:12,927 dev_appserver.py:4247] "GET /images/sprite.png HTTP/1.1" 200 - 回答1: There are two slightly different arguments which let you control the log level, log_level and dev_appserver_log_level . log_level {debug