Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6731901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:35:03+00:00 2026-05-26T10:35:03+00:00

First some background: I’m currently using j-interop to query WMI calls to a Windows

  • 0

First some background:

I’m currently using j-interop to query WMI calls to a Windows box from a Linux box, I’m running this query against WMI:

SELECT * FROM __InstanceCreationEvent WHERE TargetInstance ISA 'Win32_NTLogEvent'

And executing it as a notification query so I can get the data back as soon as it’s created. However this proves an issue at (rare) times.

Say, when a user changes permissions on a root folder, I can be flooded with thousands of logs, the system can handle this fine, java and the interop code is happy, however the WMI cycle seems to be this:

Hook into event
while(forever)
{
    Query server for next event.
    Do work with event.
}

Obviously this doesn’t work for me, being as I’ll jump back and forth from the server thousands of times, program doesn’t choke but it sure takes forever, I can’t find a way to get the event to return all pending events (I think).

The next choice is to keep track of the last record ID returned by WMI, and do a straight up query for all events where their record ID is greater than the last, I’m assuming this will work better, however I’m not familiar with DCOM.

So my question:

If I run a ExecQuery instead of a notification query, will I have to dance back and forth between client/server to iterate through each record returned by the query due to the nature of Distributed COM?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:35:03+00:00Added an answer on May 26, 2026 at 10:35 am

    The main solution here is to not use DCOM for this, it’s terribly inefficient and I’ve put servers under a decent amount of CPU strain executing large sets of DCOM instructions.

    I’m looking into Windows RPC Java implementations if I wanted to do this remotely, or WinAPI locally.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First some background: VB.NET 2005 Application that accesses a MS-SQL back-end, using multiple Web
First, some background: I'm developing a web application using Python. All of my (text)
First some background, I am currently working on a relatively large Asp.Net MVC application
First some background. I have a batch-type java process run from a DOS batch
First some brief background: I have an existing ASP.NET MVC 1 application using Entity
Some background first. I am currently learning some stuff about monadic parser combinators. While
I'm using GCD to do some background loading from the internet. This works great
First some background..I am using the Telerik MVC Grid to display data. The grid
I'm currently polling my CFReadStream for new data with CFReadStreamHasBytesAvailable . (First, some background:
First some background: I'm working on an application and I'm trying to follow MVVM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.