第 223 章 OPC UA 服务器组件

作为 Camel 版本 2.19 可用

Milo Server 组件使用 Eclipse Milo™ 实施提供一个 OPC UA 服务器。

Java 8 :该组件在运行时需要 Java 8。

Maven 用户需要将以下依赖项添加到其 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-milo</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

发送到来自 Camel 的端点的消息将从 OPC UA 服务器发送到 OPC UA 客户端。来自 OPC UA Client 的写入请求将触发发送到 Apache Camel 的消息。

OPC UA 服务器组件支持 20 个选项,它们如下所列。

名称描述默认类型

namespaceUri (common)

命名空间的 URI,默认为 urn:org:apache:camel

 

字符串

applicationName (common)

应用程序名称

 

字符串

applicationUri (common)

应用程序 URI

 

字符串

productUri (common)

产品 URI

 

字符串

bindPort (common)

服务器绑定到的 TCP 端口

 

int

strictEndpointUrls Enabled (common)

设置是否强制使用严格的端点 URL

false

布尔值

serverName (common)

服务器名称

 

字符串

hostname (common)

服务器主机名

 

字符串

securityPolicies (common)

安全策略

 

Set

securityPoliciesById (common)

使用 URI 或名称的安全策略

 

集合

UserAuthentication 凭证 (通用)

以 user1:pwd1,user2:pwd2 Usernames 的形式设置用户密码组合,密码将被解码

 

字符串

enableAnonymous Authentication (通用)

启用匿名验证,默认禁用

false

布尔值

usernameSecurityPolicy Uri (common)

设置时使用的 UserTokenPolicy

 

SecurityPolicy

bindAddresses (common)

设置服务器应绑定到的本地地址

 

字符串

buildInfo (common)

服务器构建信息

 

BuildInfo

serverCertificate (common)

服务器证书

 

结果

certificateManager (common)

服务器证书管理器

 

CertificateManager

certificateValidator (common)

客户端证书的验证器

 

供应商

defaultCertificate Validator (common)

使用默认基于文件的客户端证书验证器

 

File

resolveProperty Placeholders (advanced)

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

223.1. URI 格式

milo-server:itemId[?options]