我知道其他地方有相关的问题,但我的问题不一样:)
我使用BasicHttpClient和HttpPoster将东西发送到第三方服务。我在一个场景中使用这个,其中我让JMS侦听器使用一个bean来发布内容。我不认为这是个问题,因为BasicHttpclient使用SingleClientConnectionManager,javadoc说
This connection manager maintains only one active connection at a time. Even though this class is thread-safe it ought to be used
在我的新WPF/silverlight应用程序中,是直接连接到我的远程SQL Server (我正在使用linq to sql)更好,还是调用WCF服务并让服务连接到数据库更好?
SQL Server和Win2k8 web服务器都是租用的,并且位于同一位置。如果创建WCF服务,我会在web服务器上运行它,并连接到隔壁的数据库。我不关心重用这个服务的能力,但我关心的是性能。直接从客户端远程调用SQL更好,还是调用服务并让服务执行调用更好。
遵循上的文档
2.3.4. Connection manager shutdown
When an HttpClient instance is no longer needed and is about to go out of scope it is important to shut down its connection manager to ensure that all connections kept alive by the manager get closed and system resources allocated by those connections are r
我已经安装了Ubuntu12.04 LTS。我是应该更新还是就这样留下?
我问,因为我上次安装Ubuntu并更新它时,我开始面临像System Program Problem Detected和内部错误这样的错误。
那么,建议更新吗?
如果是的话,最安全的方法是什么?是通过使用Ubuntu的更新管理器还是使用终端。如果通过终端,请告诉我完成这一任务的命令。