Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Adding a node permanently
June 14, 2020
16:45, EET
Forum Posts: 4
Member Since:
December 1, 2019
sp_UserOfflineSmall Offline

Hello ProSys-Team,

is it possible to add a node permanently during runtime?
So they are still there when the server restarts and loads the information model.

Best regards

June 16, 2020
9:54, EET
Matti Siponen

Forum Posts: 72
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline


At the moment, the Prosys OPC UA SDK for Java doesn’t provide built-in support for persisting the AddressSpace. If you wish to add Nodes to a Server during runtime and have them stored to memory so that they can be loaded to the AddressSpace when you restart the Server, you will need to implement your own NodeManager that handles storing them to disk. You can use NodeManagerUaNode as a starting point and override methods related to adding Nodes with versions that store the added Node to disk. You can handle loading Nodes from disk in the constructor of your NodeManager.

However, saving Nodes to disk won’t be easy as you would have to solve how to serialize UaNode interface in a way that preserves all the information contained by it and interfaces that extend it. You could use NodeSet2 XML files at OPC Foundation github (https://github.com/OPCFoundation/UA-Nodeset/tree/v1.04) as an example. They are used to model OPC UA information models in XML form and the Prosys OPC UA SDK for Java can use them to generate AddressSpaces when a Server is started. If you serialized your Nodes in a similar form, you should be able to load your stored Nodes when the Server is restarted.



Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 103

pramanj: 86

ibrahim: 70

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 38

Rainer Versteeg: 32

Thomas Reuther: 31

Member Stats:

Guest Posters: 0

Members: 1160

Moderators: 15

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1048

Posts: 4416

Newest Members:

jonas.rahm, sophiekohler, zqecortney, adeletoscano947, forestgenders23, auroratrumper, ericmclain04, rblu, starlowery23194, dakotadalgety82

Moderators: Jouni Aro: 853, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 579, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Teppo Uimonen: 21, Markus Johansson: 24, Matti Siponen: 72, Lusetti: 0

Administrators: admin: 1