Multiple UaServerApplication instances in one process

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
manuel.bliemel
Sr. Member
Sr. Member
Posts: 10
Joined: 23 Mar 2016, 13:17

Multiple UaServerApplication instances in one process

Post by manuel.bliemel »

Hello,

I'm wondering if the C++ SDK somehow supports having multiple server instances in one process.
I'm aware that having multiple namespace instances in one server is supported but in my
particular case I would prefer multiple server instances.

I tried and failed on the following assertion that checks a global variable:
assert(g_pUaApplication == 0);

Best regards,
Manuel

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: Multiple UaServerApplication instances in one process

Post by Support Team »

Hello Manuel,

With the C++ SDK you can have only one OPC UA Server Application (Application Instance URI) in a process.
Not sure why you would need more than one server application in a process.
There are enough OPC UA features (Namespaces, visibility and access based on user rights) that should cover special requirements.
Best regards
Unified Automation Support Team

manuel.bliemel
Sr. Member
Sr. Member
Posts: 10
Joined: 23 Mar 2016, 13:17

Re: Multiple UaServerApplication instances in one process

Post by manuel.bliemel »

Hello,

I will use multiple namespaces as proposed.
Thanks for the support.

Best regards,
Manuel

Post Reply