DDS inside a Windows Service

3 posts / 0 new
Last post
Offline
Last seen: 9 years 1 week ago
Joined: 03/12/2015
Posts: 2
DDS inside a Windows Service

I'm trying to run a simple Connext 5.1 publisher inside a Service on Win7 but do not see any DDS traffic. The service runs as LocalSystem and appears to run fine. The service is running on a separate machine from the subscriber so this is not a shared memory problem.

Event log messages I added show that the correct domainId is picked up from the environment. The two machines can nddsping each other. When I run the service as an application in VS, the DDS messages are published fine so the fundamental publishing code appears ok.

I have run spy and wireshark on the subscriber and see no traffic from the service.

Is there something unique about running DDS inside a windows service that I'm missing?

 Has anyone else ever run a DDS application inside of a Windows Service? Is there anything special you had to do to get messages flowing?

Gerardo Pardo's picture
Offline
Last seen: 3 weeks 1 day ago
Joined: 06/02/2010
Posts: 601

Do yoy have the Windows Firewall enabled? If so try disabling it as a first step towards debugging...

Speculating here but perhaps the Windows Firewall has some exception for applications the are started from VS, or you "accepted" adding an exception to the firewall the first time the application was run as a "regular" application but when you run as a service the "exception" is not there and you do not even get the popup dialog from the firewall?

If that were the situation then you would need to enter an exeption for that service in the Windows 7 firewall. I found this description on how to do this but have not tried it myself: http://blink.ucsd.edu/technology/security/firewall/windows7-a.html#3.-Create-a-rule-to-enable-serv

Gerardo

Offline
Last seen: 9 years 1 week ago
Joined: 03/12/2015
Posts: 2

That's a good thought but, no, all firewalls are disabled.