OPC UA Browser
Browse the nodes of an OPC UA server and the references between them.
What’s inside
-
OPC UA Browser component, URI syntax:
milo-browse:endpointUri -
OPC UA Client component, URI syntax:
milo-client:endpointUri -
OPC UA Server component, URI syntax:
milo-server:itemId
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-milo-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 86 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.milo-browse.allowed-security-policies | A comma-separated list of the security policies that the client may use, as URIs or as names of org.eclipse.milo.opcua.stack.core.security.SecurityPolicy, for example Basic256Sha256. Of the endpoints of the server with an allowed policy, the client uses the one with the highest security level. If not set, every policy is allowed, None included. | String | |
camel.component.milo-browse.application-name | The application name of the client, which it sends to the server in its application description. | Apache Camel adapter for Eclipse Milo | String |
camel.component.milo-browse.application-uri | The application URI of the client, which it sends to the server in its application description. With a client certificate, it should match the application URI in that certificate. | String | |
camel.component.milo-browse.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.milo-browse.certificate-validator | A custom validator for the certificate of the OPC UA server. When set, it is used instead of the trust list configured with trustListDirectory. Endpoints share a connection only when they use the same validator instance. The option is a org.eclipse.milo.opcua.stack.core.security.CertificateValidator type. | CertificateValidator | |
camel.component.milo-browse.channel-lifetime | The requested lifetime in milliseconds of the security token of the secure channel, after which the client renews it. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-browse.client-id | An ID that is part of the key of the shared connections: endpoints with the same endpoint URI, requestedPublishingInterval and clientId use the same connection to the server. Set a different value to give an endpoint a connection of its own. | String | |
camel.component.milo-browse.configuration | The client configuration that holds the default options of the endpoints of this component. Each endpoint uses a copy of it, with the options that are set on the endpoint. The option is a org.apache.camel.component.milo.client.MiloClientConfiguration type. | MiloClientConfiguration | |
camel.component.milo-browse.discovery-endpoint-suffix | A suffix that the client appends to the endpoint URI to get the URI of the discovery endpoint, for example /discovery. Not used when discoveryEndpointUri is set. | String | |
camel.component.milo-browse.discovery-endpoint-uri | The URI of the discovery endpoint that the client gets the endpoint descriptions of the server from, instead of the endpoint URI. It takes precedence over discoveryEndpointSuffix. | String | |
camel.component.milo-browse.enabled | Whether to enable auto configuration of the milo-browse component. This is enabled by default. | Boolean | |
camel.component.milo-browse.key-alias | The alias of the private key and its certificate in the key store. It can be omitted when the key store holds a single entry. | String | |
camel.component.milo-browse.key-password | The password of the private key of keyAlias in the key store. | String | |
camel.component.milo-browse.key-store-password | The password of the key store of keyStoreUrl. | String | |
camel.component.milo-browse.key-store-type | The type of the key store of keyStoreUrl, as a java.security.KeyStore type. The default is PKCS12. | String | |
camel.component.milo-browse.key-store-url | The URL of the key store with the certificate and the private key of the client, for example file:/etc/opcua/client.p12. A security policy other than None needs it. | String | |
camel.component.milo-browse.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.milo-browse.max-pending-publish-requests | The maximum number of publish requests that the client keeps pending at the server for its subscription. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-browse.max-response-message-size | The maximum size in bytes of a response message that the client accepts from the server. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-browse.milo-client-connection-manager | To use a custom org.apache.camel.component.milo.client.MiloClientConnectionManager that creates and releases the connections to the OPC UA servers. The default one shares a connection between the endpoints with the same endpoint URI, clientId, requestedPublishingInterval and validation of the server certificate, and closes it when the last endpoint releases it. The option is a org.apache.camel.component.milo.client.MiloClientConnectionManager type. | MiloClientConnectionManager | |
camel.component.milo-browse.override-host | Whether to replace the host of the endpoint URL that the server reports with the host of the endpoint URI. Use it when the server reports a host name that the client cannot reach. | false | Boolean |
camel.component.milo-browse.override-port | Whether to replace the port of the endpoint URL that the server reports with the port of the endpoint URI. Use it when the server reports a port that the client cannot reach. | false | Boolean |
camel.component.milo-browse.password | The password for authentication. Use this instead of embedding credentials in the endpoint URI when the password contains special characters (such as ?, /, , &). | String | |
camel.component.milo-browse.product-uri | The product URI of the client, which it sends to the server in its application description. | String | |
camel.component.milo-browse.reconnect-timeout | The delay in milliseconds before the client tries again to connect to the server after an attempt failed, and between two attempts to create the monitored items that the server refused. Neither attempt is made while the OPC UA client recovers a lost session on its own. | 10000 | Long |
camel.component.milo-browse.request-timeout | The timeout in milliseconds of a request to the server. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-browse.requested-publishing-interval | The publishing interval in milliseconds that the client requests for the subscription of its connection, which carries the values of the monitored nodes. Endpoints with different values use different connections. | Double | |
camel.component.milo-browse.session-name | The name of the session that the client creates on the server. If not set, Eclipse Milo generates one. | String | |
camel.component.milo-browse.session-timeout | The requested timeout in milliseconds of the session, after which the server closes a session without activity. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-browse.trust-all-certificates | Whether to accept any certificate presented by the OPC UA server. This is insecure: the connection is encrypted, but the client does not authenticate the server it talks to. It only applies when neither certificateValidator nor trustListDirectory is configured. | false | Boolean |
camel.component.milo-browse.trust-list-directory | The directory holding the trust list used to validate the certificate of the OPC UA server, in the layout used by Eclipse Milo: trusted certificates in trusted/certs, CRLs of trusted certificates in trusted/crl, certificates of issuing CAs in issuer/certs and their CRLs in issuer/crl. The directories are created if they do not exist. Besides the chain of trust, the validity period, the revocation by a CRL of the trust list and the application URI of the server certificate are checked. A certificate issued by a CA is refused when the trust list holds no CRL of that CA; an empty CRL is enough. A server certificate that does not chain up to a trusted certificate is written to rejected/certs, from where it can be moved to trusted/certs once it has been checked. | String | |
camel.component.milo-browse.username | The username for authentication. Use this instead of embedding credentials in the endpoint URI when the username contains special characters (such as ?, /, , &). | String | |
camel.component.milo-client.allowed-security-policies | A comma-separated list of the security policies that the client may use, as URIs or as names of org.eclipse.milo.opcua.stack.core.security.SecurityPolicy, for example Basic256Sha256. Of the endpoints of the server with an allowed policy, the client uses the one with the highest security level. If not set, every policy is allowed, None included. | String | |
camel.component.milo-client.application-name | The application name of the client, which it sends to the server in its application description. | Apache Camel adapter for Eclipse Milo | String |
camel.component.milo-client.application-uri | The application URI of the client, which it sends to the server in its application description. With a client certificate, it should match the application URI in that certificate. | String | |
camel.component.milo-client.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.milo-client.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.milo-client.certificate-validator | A custom validator for the certificate of the OPC UA server. When set, it is used instead of the trust list configured with trustListDirectory. Endpoints share a connection only when they use the same validator instance. The option is a org.eclipse.milo.opcua.stack.core.security.CertificateValidator type. | CertificateValidator | |
camel.component.milo-client.channel-lifetime | The requested lifetime in milliseconds of the security token of the secure channel, after which the client renews it. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-client.client-id | An ID that is part of the key of the shared connections: endpoints with the same endpoint URI, requestedPublishingInterval and clientId use the same connection to the server. Set a different value to give an endpoint a connection of its own. | String | |
camel.component.milo-client.configuration | The client configuration that holds the default options of the endpoints of this component. Each endpoint uses a copy of it, with the options that are set on the endpoint. The option is a org.apache.camel.component.milo.client.MiloClientConfiguration type. | MiloClientConfiguration | |
camel.component.milo-client.discovery-endpoint-suffix | A suffix that the client appends to the endpoint URI to get the URI of the discovery endpoint, for example /discovery. Not used when discoveryEndpointUri is set. | String | |
camel.component.milo-client.discovery-endpoint-uri | The URI of the discovery endpoint that the client gets the endpoint descriptions of the server from, instead of the endpoint URI. It takes precedence over discoveryEndpointSuffix. | String | |
camel.component.milo-client.enabled | Whether to enable auto configuration of the milo-client component. This is enabled by default. | Boolean | |
camel.component.milo-client.key-alias | The alias of the private key and its certificate in the key store. It can be omitted when the key store holds a single entry. | String | |
camel.component.milo-client.key-password | The password of the private key of keyAlias in the key store. | String | |
camel.component.milo-client.key-store-password | The password of the key store of keyStoreUrl. | String | |
camel.component.milo-client.key-store-type | The type of the key store of keyStoreUrl, as a java.security.KeyStore type. The default is PKCS12. | String | |
camel.component.milo-client.key-store-url | The URL of the key store with the certificate and the private key of the client, for example file:/etc/opcua/client.p12. A security policy other than None needs it. | String | |
camel.component.milo-client.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.milo-client.max-pending-publish-requests | The maximum number of publish requests that the client keeps pending at the server for its subscription. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-client.max-response-message-size | The maximum size in bytes of a response message that the client accepts from the server. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-client.milo-client-connection-manager | To use a custom org.apache.camel.component.milo.client.MiloClientConnectionManager that creates and releases the connections to the OPC UA servers. The default one shares a connection between the endpoints with the same endpoint URI, clientId, requestedPublishingInterval and validation of the server certificate, and closes it when the last endpoint releases it. The option is a org.apache.camel.component.milo.client.MiloClientConnectionManager type. | MiloClientConnectionManager | |
camel.component.milo-client.override-host | Whether to replace the host of the endpoint URL that the server reports with the host of the endpoint URI. Use it when the server reports a host name that the client cannot reach. | false | Boolean |
camel.component.milo-client.override-port | Whether to replace the port of the endpoint URL that the server reports with the port of the endpoint URI. Use it when the server reports a port that the client cannot reach. | false | Boolean |
camel.component.milo-client.password | The password for authentication. Use this instead of embedding credentials in the endpoint URI when the password contains special characters (such as ?, /, , &). | String | |
camel.component.milo-client.product-uri | The product URI of the client, which it sends to the server in its application description. | String | |
camel.component.milo-client.reconnect-timeout | The delay in milliseconds before the client tries again to connect to the server after an attempt failed, and between two attempts to create the monitored items that the server refused. Neither attempt is made while the OPC UA client recovers a lost session on its own. | 10000 | Long |
camel.component.milo-client.request-timeout | The timeout in milliseconds of a request to the server. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-client.requested-publishing-interval | The publishing interval in milliseconds that the client requests for the subscription of its connection, which carries the values of the monitored nodes. Endpoints with different values use different connections. | Double | |
camel.component.milo-client.session-name | The name of the session that the client creates on the server. If not set, Eclipse Milo generates one. | String | |
camel.component.milo-client.session-timeout | The requested timeout in milliseconds of the session, after which the server closes a session without activity. If not set, the default of Eclipse Milo is used. | Long | |
camel.component.milo-client.trust-all-certificates | Whether to accept any certificate presented by the OPC UA server. This is insecure: the connection is encrypted, but the client does not authenticate the server it talks to. It only applies when neither certificateValidator nor trustListDirectory is configured. | false | Boolean |
camel.component.milo-client.trust-list-directory | The directory holding the trust list used to validate the certificate of the OPC UA server, in the layout used by Eclipse Milo: trusted certificates in trusted/certs, CRLs of trusted certificates in trusted/crl, certificates of issuing CAs in issuer/certs and their CRLs in issuer/crl. The directories are created if they do not exist. Besides the chain of trust, the validity period, the revocation by a CRL of the trust list and the application URI of the server certificate are checked. A certificate issued by a CA is refused when the trust list holds no CRL of that CA; an empty CRL is enough. A server certificate that does not chain up to a trusted certificate is written to rejected/certs, from where it can be moved to trusted/certs once it has been checked. | String | |
camel.component.milo-client.username | The username for authentication. Use this instead of embedding credentials in the endpoint URI when the username contains special characters (such as ?, /, , &). | String | |
camel.component.milo-server.application-name | The application name of the server. If not set, Apache Camel Milo Server is used. | String | |
camel.component.milo-server.application-uri | The application URI of the server. If not set, urn:org:apache:camel:milo:server is used. | String | |
camel.component.milo-server.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.milo-server.bind-addresses | A comma-separated list of the local addresses that the server binds to. If not set, it binds to localhost. For each address, the server has endpoints for the host name of the machine and for the host names of that address. | String | |
camel.component.milo-server.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.milo-server.build-info | The build information of the server, as an org.eclipse.milo.opcua.stack.core.types.structured.BuildInfo, which clients can read from the Server object. The option is a org.eclipse.milo.opcua.stack.core.types.structured.BuildInfo type. | BuildInfo | |
camel.component.milo-server.certificate | The certificate of the server, as a java.security.cert.X509Certificate, which the endpoints of the server announce. The option is a java.security.cert.X509Certificate type. | X509Certificate | |
camel.component.milo-server.certificate-manager | To use a custom org.eclipse.milo.opcua.stack.core.security.CertificateManager that holds the certificate and the key pair of the server. Not used when defaultCertificateValidator is set. When certificateValidator is set, the certificate groups of this certificate manager validate the certificates of the clients with that validator. The option is a org.eclipse.milo.opcua.stack.core.security.CertificateManager type. | CertificateManager | |
camel.component.milo-server.certificate-validator | To use a custom org.eclipse.milo.opcua.stack.core.security.CertificateValidator that validates the certificates of the OPC UA clients, instead of the validators of the certificate groups of certificateManager. Requires certificateManager, which holds the certificate of the server. Cannot be used together with defaultCertificateValidator. The option is a org.eclipse.milo.opcua.stack.core.security.CertificateValidator type. | CertificateValidator | |
camel.component.milo-server.default-certificate-validator | The directory of a file based trust list for the certificates of the OPC UA clients, in the layout used by Eclipse Milo: trusted certificates in trusted/certs, their CRLs in trusted/crl, certificates of issuing CAs in issuer/certs and their CRLs in issuer/crl. Rejected certificates are put in rejected/certs. The directories are created if they do not exist. | String | |
camel.component.milo-server.enable-anonymous-authentication | Whether the endpoints of the server offer the Anonymous user token policy, for clients that connect without a user name. | false | Boolean |
camel.component.milo-server.enabled | Whether to enable auto configuration of the milo-server component. This is enabled by default. | Boolean | |
camel.component.milo-server.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.milo-server.namespace-uri | The URI of the namespace that holds the items of the milo-server endpoints. A client addresses an item with this URI and the item ID, for example nsu=urn:org:apache:camel;s=myItem. | urn:org:apache:camel | String |
camel.component.milo-server.path | The path of the endpoint URLs of the server, after the host and the port. It does not need to start with a slash. The discovery endpoint always has the path /discovery. | String | |
camel.component.milo-server.port | The TCP port that the server listens on. | Integer | |
camel.component.milo-server.product-uri | The product URI of the server. If not set, urn:org:apache:camel:milo is used. | String | |
camel.component.milo-server.security-policies | The security policies of the endpoints of the server, as a Set of org.eclipse.milo.opcua.stack.core.security.SecurityPolicy. Only None and Basic256Sha256 create endpoints, Basic256Sha256 with the security mode SignAndEncrypt. If neither this option nor securityPoliciesById is set, the endpoints use None. | SecurityPolicy> | |
camel.component.milo-server.security-policies-by-id | A comma-separated list of the security policies of the endpoints of the server, as URIs or as names of org.eclipse.milo.opcua.stack.core.security.SecurityPolicy. They are added to the securityPolicies option. Only None and Basic256Sha256 create endpoints. | String | |
camel.component.milo-server.user-authentication-credentials | The users that the server accepts, as comma-separated user:password pairs, for example user1:pwd1,user2:pwd2. The user names and passwords are URL decoded: URL encode a comma, a percent sign or a plus sign in them, and a colon in a user name. | String | |
camel.component.milo-server.username-security-policy-uri | The security policy of the UserName user token policy, which the client uses to encrypt the password, as a name of org.eclipse.milo.opcua.stack.core.security.SecurityPolicy. If not set, Basic256Sha256 is used. Only used when userAuthenticationCredentials is set. | SecurityPolicy |