只要确保在每次需要建立连接时,重用命名服务而不是实例化远程上下文。
Just be sure to reuse the naming service rather than instantiating a remote context every time you need to employ one.
Spring还利用一个以XML编写的应用程序上下文来实例化、配置和组装应用程序中的对象。
Spring also utilizes an application context written in XML to instantiate, configure, and assemble the objects in your application.
实例化本地jndi上下文。
不要每次请求都实例化应用程序上下文(它是团队移植遗留应用到Spring上时不时会碰到的错误)。
Don't instantiate an application context per-request (a mistake sometimes encountered when teams migrate legacy applications to Spring).
动态关系使用类似的表结构将键属性彼此关联;否则,实现实例创建和删除自动化就需要提供额外的上下文信息。
Dynamic relationships use a similar table structure to associate key attributes with each other; however, automating the creation and deletion of instances requires additional context information.
因为应用程序使用无状态的服务接口,所以此时的课程实例看作已经与持久化上下文 “分离”。
Because the application uses a stateless service interface, the course instance is at this point considered "detatched" from the persistence context.
可以将泛型类型看作是类型“函数”;它们通过类型变量进行参数化,这些类型变量可以根据上下文用各种类型参数进行实例化。
Generic types can be thought of as type "functions"; they are parameterized by type variables that can then be instantiated with various type arguments depending on context.
这个引擎将自动地为该对象构造的一个新的实例,然后调用其init方法,以便该对象能够有机会根据上下文对象对自己进行初始化。
The engine will automatically construct a new instance of the object then call the init method on that object, so that the object has a chance to initialize itself from the context object.
我们初始化上下文,寻找并实例化存根,进而调用Web服务相关方法。
We establish our context, look up, and instantiate a stub to a web service, and then call the web service's method to do our work.
然后实例化NotesDXLImporter,以便在数据库上下文中使用 stream,并规定这次的导入是更新而不是创建。
We then instantiate NotesDXLImporter to consume the stream within the database context and specify that this import is an update (and not a create).
根据特定上下文的要求,可以用不同的父类实例化mixin。
Mixins can be instantiated with different parent classes depending on the requirements of a particular context.
不过,可以用servlet或ejb上下文中的ltpa令牌来实例化它。
However, it can be instantiated with an LTPA token in a servlet or EJB context.
如何在WCF实例化影响的方法被称为上下文吗?
How does WCF instancing affect the context in which methods are called?
如何在WCF实例化影响的方法被称为上下文吗?
How does WCF instancing affect the context in which methods are called?
应用推荐