Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Ad hoc – Real Time Updates – Kill Subscriptions

Solved379 views12th November 2024Ad Hoc data source
5
Carlos Matheus [SLC] [DevOps Advocate]318 4th November 2024 1 Comment

Hi Dojo,

I'm working on an ad hoc data source that enables real-time updates. Everything functions well, but we encountered an issue where subscriptions are not removed. This occurs because, in the OnStopUpdates() method, we perform a .Reset, which creates a new connection. We need this since, from the LCA, we can select different elements, each displaying its own data to support real-time updates.

Is there a proper way to reset subscriptions so that, when the user selects a different element, these subscriptions reinitialize and point to the new elements? Alternatively, is there a way to dispose of the subscriptions? Here is a screenshot of the flow we attempted to follow using the OnStartUpdates, OnStopUpdates, and OnDestroy methods.

Thank you!

Carlos Matheus [SLC] [DevOps Advocate] Selected answer as best 12th November 2024
Ward Haeck [SLC] [DevOps Enabler] commented 6th November 2024

Hi Carlos,

I’m not really following why the Reset creates a new connection, could you elaborate? Are there other options to Reset the data provider without creating a new connection?

Does the GQI query gets executed when the user selects a different element?

Best regards, Ward

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Sebastiaan Dumoulein [SLC] [DevOps Enabler]12.83K Posted 12th November 2024 1 Comment

Hi Carlos,

It seems there may be some misunderstanding about the lifecycle of an ad hoc data source. Each time a user runs a query that uses this data source, a new instance is created specifically for that user and query.

I assume your setup passes the selected element to the data source. As a result, when the selected element changes, a new query is executed, effectively starting from a clean state.

In your example, it looks like you're using static classes that persist beyond the ad hoc data source's lifecycle, assigning them to a local variable. This structure seems unusual, so I’d recommend replacing these static classes with regular instances to ensure better alignment with the intended lifecycle.

Carlos Matheus [SLC] [DevOps Advocate] Selected answer as best 12th November 2024
Carlos Matheus [SLC] [DevOps Advocate] commented 12th November 2024

Hi Sebastiaan! I'll give it a shot. Thank you!

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin