[读书笔记]INTRODUCING SCA摘记

本文深入探讨了Service Component Architecture (SCA)的基本概念,包括组件与复合体的定义及配置方式。介绍了如何通过Service Component Definition Language (SCDL)进行配置,并详细解释了服务、引用、属性和绑定等核心概念。同时,还提供了Java组件模型下的具体实施案例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

作者:DAVID CHAPPELL

SCA FUNDAMENTALS

COMPONENTS AND COMPOSITES(由component组成)

There must be a way to define components and to describe how they interact.

an SCA application can be accessed by software from the non-SCA world(如Servlet,JSP Service Data Objects)

An SCA composite is typically described in an associated configuration file

This file uses an XML-based format called the Service Component Definition Language (SCDL)

DOMAINS

an SCA runtime can allow a third party to create a container that plugs into that runtime to support a particular technology, such as BPEL.

A domain can contain one or more composites, each of which has components implemented in one or more processes running on one or more machines.

UNDERSTANDING COMPONENTS

a component is an instance of an implementation that has been appropriately configured.

The configuration, expressed in SCDL, defines how that component interacts with the outside world.

every component relies on a common set of abstractions, including services, references, properties, and bindings, to specify its interactions with the world outside itself。

SERVICES, REFERENCES, AND PROPERTIES

a component implemented in BPEL would likely describe its services using the Web Services Description Language (WSDL).

Each property contains a value that can be read by that component from the SCDL configuration file when it’s instantiated.

BINDINGS

A binding specifies exactly how communication should be done between an SCA component and something else.

in the same domain,the runtime determines what bindings to use

To communicate outside its domain,must specify one or more bindings for this communication

Each binding defines a particular protocol that can be used to communicate with this service or reference

AN EXAMPLE: SCA’S JAVA COMPONENT MODEL

the Spring Framework provides explicit support for services, references, and properties, and so mapping these into SCA’s similar concepts is straightforward

new component model for Java:Java component model.One important motivation was the need for an explicitly service-oriented approach.

Defining Services

SCA’s Java programming model relies on annotations rather than API calls。

Defining References

In SCA’s Java programming model, references are specified using the @Reference annotation

服务的具体实现是有runtime自动找的(dependency injection或inversion of control)

Defining Properties

@Property protected String region;

it indicates that a value should be read from the SCDL configuration file of the composite to which this component belongs

the goal is : providing a way to configure a component via values that are read at runtime.

Defining Bindings

bindings determine how a component communicates with the world outside its domain

SCA allows each remotable service and each reference to specify the protocols it supports using bindings

SOAP over HTTP-〉Web Services binding,queued messaging protocol-〉JMS binding

Internet Inter-ORB Protocol (IIOP)-〉EJB session bean binding

binary protocol->SCA binding

the bindings a service or reference relies on are either chosen by the runtime, for intra-domain communication, or set explicitly in a component’s SCDL configuration file

Defining Other Aspects of a Component

@OneWay 非阻塞 ,@Scope 控制构件生命期,@Callback 允许定义回调接口

CONFIGURING A COMPONENT

every SCA component relies on information in the SCDL configuration file

UNDERSTANDING COMPOSITES

If components are the atoms of SCA, then composites are the molecules.

WIRES AND PROMOTION

A wire is an abstract representation of the relationship between a reference and some service that meets the needs of that reference.

Exactly what kind of communication a wire provides can vary—it depends on the specific runtime that’s used, what bindings are specified (if any), and other things.

a composite can also expose one or more services。These services are actually implemented by components within the composite。提升后的构件服务,能够作为composite外界可见的接口。

CONFIGURING A COMPOSITE

All of the relationships in a composite are expressed in the SCDL configuration file.

USING POLICY

let developers use policies to specify their intent—what they want to happen—then let something else figure out how to achieve this intent

Interaction policies:Modify how a component interacts with other components.指定安全,可靠性需求。一般是被应用到binding上的。

Implementation policies:Modify how a component behaves locally.指定构件必须运行在一个事务中。

policies can be declared in a SCDL configuration file

For Java SCA components, policies can also be defined using annotations assigned to interfaces,methods. @Confidentiality  @Authentication

To define policies, SCA posits a policy administrator role in each domain.This administrator specifies what a particular policy means in her domain by specifying intents and policySets

PUTTING THE PIECES TOGETHER: ILLUSTRATING AN SCA APPLICATION

IMPLEMENTING SCA

The SCA specs say essentially nothing about how this technology should be implemented.

SCA runtime might provide a number of containers, one for each component technology it supports(Java component model, BPEL, and Spring).The SCA runtime provides all bindings,The runtime also defines all communication between components, regardless of how those components are implemented.

It’s also possible for the creator of an SCA runtime to use OSGi. OSGi defines how to package code into bundles, and while it’s also Java-only, some creators of SCA runtimes might allow extensions such as a new binding to be added as an OSGi bundle.

SOA Tools Platform Project, one of its goals is to create SCA-based development tools for Eclipse.

CONCLUSION

《Tecplot与MIKE结合教程》是一份详细介绍如何将Tecplot与MIKE软件进行协同工作的学习资料。这份教程旨在帮助用户理解并掌握这两款强大的科学计算与数据可视化工具的整合应用,从而提高在流体动力学、环境工程、海洋科学等领域的模拟分析效率。 Tecplot是一款广泛应用于科研和工程领域的数据可视化和分析软件,它能够处理大量数据,快速生成高质量的2D和3D图形,便于用户理解和解释复杂的数值模拟结果。其强大的后处理能力,如等值线绘制、颜色梯度图、矢量场显示等功能,使得数据的呈现更加直观。 MIKE(原名DHI软件)是由丹麦水力研究所开发的一系列专业仿真软件,主要用于水资源管理、环境流动、海岸工程等领域。MIKE软件家族包括MIKE 11(河流模拟)、MIKE 21(海洋模型)、MIKE 3(三维流体动力学模型)等,可以解决从河流、湖泊到海洋的各类水动力问题。 当Tecplot与MIKE结合使用时,Tecplot作为后处理器,可以接收MIKE软件产生的计算结果,进行更深入的数据解析和可视化。通过这种方式,用户不仅可以查看MIKE模拟出的流场、浓度分布等数据,还能进行多变量分析、动画制作,以及生成专业报告所需的图表,极大地提高了数据分析的效率和质量。 教程中可能会涵盖以下内容: 1. **数据导入**:讲解如何从MIKE软件导出适合Tecplot处理的文件格式,如ASCII或二进制文件。 2. **Tecplot界面操作**:介绍Tecplot的基本操作,如数据加载、变量选择、区域定义等。 3. **数据可视化**:教学如何使用Tecplot创建等值线图、颜色梯度图、矢量图等,以及调整色彩映射、透明度等参数,以清晰地展示MIKE的模拟结果。 4. **动画制作**:说明如何通过Tecplot制作时间序列动画,动态展示流动过程。 5. **高级分析**:可能涉及统计分析、插值运算、剖面图绘制等高级功能,帮助用户深入理解模拟数据。 6. **定制化和脚本编程**:介绍如何利用Tecplot的内置脚本语言(如TecScript或Python)自动化处理MIKE数据,进行批量分析或自定义功能的实现。 7. **案例研究**:提供实际案例,演示Tecplot与MIKE结合的具体应用,如河流污染扩散分析、海岸线变化模拟等。 通过学习这份教程,用户将能够熟练地将Tecplot与MIKE结合使用,提升在复杂水动力问题上的建模和分析能力,为科学研究和工程决策提供有力支持。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值