This is because the service locator will cache the resource for whichever component USES the overloaded name first.
这是因为服务定位器将缓存不论哪个组件首次使用时所重载的名称的资源。
Since logging is not a direct part of the service or cache functionality, it can't really be considered part of the core design of the pattern.
由于日志记录并不是服务或缓存功能的直接子功能,因此并不能真正将其作为模式核心设计的一部分进行考虑。
因此必须缓存此服务。
My third implementation used a service locator with no cache.
我的第三个实现使用没有缓存的服务定位器。
Part of the goal of this pattern discussion is to include some way to log usage of the service and the cache.
此模式讨论的目标之一就是要包含用于记录服务和缓存的使用情况的方法。
So overloaded resource names mess up a service locator and its cache.
重载资源名使得服务定位器与其缓存之间变得混乱。
But the service locator should not include a resource cache.
但是服务定位器不应包含资源缓存。
This means the cache can service the read requests instead of the database.
这意味着缓存是为读请求服务,而不是数据库。
Therefore, J2EE 1.3 applications should not include the resource cache in their service locator implementations.
因此,在J2EE 1.3应用程序中,服务定位器的实现不应该包含资源缓存。
This allows us to cache our synonyms if the service is not available.
如果服务不可用,则允许我们缓存同义词。
Some of the important fields of this structure are the interface specification name service cache expiration age to know if the cache has to be refreshed.
这个结构中的重要字段包括接口规范名称服务缓存过期时间,这用于确认是否必须刷新缓存。
The pages are stored into a memory by the dynamic cache service.
页面将通过动态高速缓存服务存储到内存中。
In this caching scenario, when the cache mediation finds a response to a service request in the cache, it will return the cached response directly to the message requester.
在此缓存方案中,当缓存中介在缓存中发现服务请求的响应时,会将所缓存的响应直接返回给消息请求者。
The simple conclusion is that service locators that cache are a bad idea.
简单的结论是:使用服务定位器进行缓存不是一个好的主意。
Figure 1 shows how this screen would look like after you have enabled the dynamic cache service.
图1显示了该屏幕在启用动态缓存服务后的外观。
Once the pattern parameters are bound, additional UML elements such as the cache and the cache-aware service proxy are automatically created.
模式参数绑定后,将自动创建缓存和支持缓存的服务代理等其他U ml元素。
By using the Dynamic cache Service of Websphere Application Server in the form of the Distributed Map, you cached business objects, in order to gain performance benefits.
通过以分布式映射的形式利用WebsphereApplicationServer的动态缓存服务缓存业务对象,以获得性能方面的好处。
To enable dynamic cache service for web services, you should enable the servlet caching on the server startup
要启用Web服务的动态缓存服务,您应该在服务器启动时启用servlet缓存
The Distributed Map functionality is part of the Websphere Application Server dynamic cache service, an extension to the J2EE architecture to improve application performance.
分布式映射功能是WebsphereApplicationServer动态缓存服务的一部分,是用来提高应用程序性能的J2EE体系结构的扩展。
The authentication provider checks whether the cache service returned details of the user or null.
身份验证提供者检查缓存服务返回的是用户的详细信息还是null。
In the section, you will verify the web service cache behavior as expected.
在本小节,您将证实Web服务缓存行为实现了预期功能效果。
AspectJ rises to the occasion as an excellent architectural mechanism that can weave functionality like logging into an already compiled feature like the cache and service under development here.
AspectJ适时出现了,可用作将日志记录之类的功能与此处开发的缓存和服务之类的已编译功能结合到一起的优秀体系结构机制。
Enable dynamic cache service in process server.
在流程服务器中启用动态缓存服务。
The Document Manager cache service has a configurable schedule to refresh the cache on the Document Manager server.
DocumentManager缓存服务有一个可配置的刷新 Document Manager 服务器上缓存的调度计划。
Ideally, the access to the cache would be encapsulated by another layer, say the cache service, which would hide the details of accessing the cache for both the portlet and the servlet.
在理想情况下,应当有另一个层封装对缓存的访问,比如说缓存服务,它将为Portlet和Servlet隐藏访问缓存的详细信息。
One of the options is to use the dynamic cache service, which is built into WebSphere Application Server, to serve dynamic content and cache data.
其中的一个选项是使用动态缓存服务,WebSphereApplicationServer 中内置了该服务,用于提供动态内容和缓存数据。
When a change does occur the "server last updated" is set to pending, which forces the object to be updated the next time the Document Manager cache service runs.
在修改发生时,“serverlastupdated”设置为pending,因此对象会在DocumentManager缓存服务下一次运行时更新。
First, you need to enable the dynamic cache service. In the administrative console for Websphere Application server.
首先,您需要启用动态缓存服务。
Dynamic cache (also known as WebSphere dynamic cache service) is a WebSphere service that is enabled on an application server by default.
动态高速缓存(也称为WebSphere动态高速缓存服务)是应用服务器上默认启用的WebSphere服务。
The DNS information remains in the operating system's DNS cache (the "DNS Client service" on Microsoft Windows).
DNS信息仍保留在操作系统的DNS缓存(“ DNS客户端服务”在MicrosoftWindows上)。
应用推荐