ctron's blog

More

  • About
  • PGP Key
  • Attic

Projects

  • PatternFly Yew
  • Yew OAuth2
  • Maven RPM Builder
  • Drogue IoT
  • OpenShift Update Graph
  • Eclipse IoT Packages

Access to WMI in Java using Eclipse SWT OLE integration

Today I ran into a problem which could easily solved using a short WMI query. The problem was that the query must be executed within a Java UI application. Googling for a solution I came only up with either quite some ugly workarounds (like generating a VBScript fragment, forking off the VBScript runtime and parsing the result) or some full blown COM/DCOM interfaces (like J-Integra or J-Interop). Although I really like J-Interop (we are using it for DCOM when accessing OPC server in OpenSCADA Utgard) it has some drawbacks. For J-Interop every access (even local access) is a network based access. Since J-Interop only supports DCOM it is free of any platform specific code but required the machine to be accessible using “remoting” functionality (DCOM). Since I wanted to query the WMI from a UI application and I am sure that the WMI query will stay on the Win32 version of the application I was not keen on adding “remoting” as a requirement to the UI application.


  • 7 minute read Jens Reimann
  • 4 February 2011
  • Read more …

Eclipse Install Issue

I just stumbled over a strange issue when installing an additional plugin into a fresh Eclipse installation:

An error occurred while collecting items to be installed<br></br>session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).

No repository found containing: osgi.bundle,org.eclipse.team.cvs.ssh,3.2.100.I20090508-2000

I was unable to add any new plugin and searching Google for help was not successful. There was an issue somewhere in the Eclipse Bugzilla that the plugin org.eclipse.team.cvs.ssh was optional and no longer installed or required. Seems that P2 thinks the somewhat required for the installation process.


  • 1 minute read Jens Reimann
  • 4 February 2011
  • Read more …

Workaround for LoadTimeWeaver issue with JBoss 6 and Spring 3

A possible workaround for the LTW issue that appeared in JBoss 6 using Spring 3 (SPR-7887) is to add an empty jboss-scanning.xml file to EAR and WAR files.


  • 1 minute read Jens Reimann
  • 1 February 2011
  • Read more …

Name that pattern

In my day to day work I encounter several interesting programming pattern that I don’t have a name for. Maybe you have?! So name the following pattern:


  • 1 minute read Jens Reimann
  • 28 January 2011
  • Read more …

Combo viewer requirements

Today I tried to create a combo viewer in Eclipse with a different approach than the it seems the widgets was designed. I have an object which has to main properties an ID and a descriptive name. While this is nothing unusual following requirements seems to be:


  • 2 minute read Jens Reimann
  • 26 January 2011
  • Read more …
⇤❬
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
❭

Recent Posts Archive

  • Using Ingress on OpenShift backed by Routes
  • Recovering from an expired OpenShift certificate
  • A Rusty frontend: Patternfly & Yew
  • OpenShift Update Graph Visualizer, lessons learned
  • Quarkus – Supersonic Subatomic IoT
© ctron's blog – All rights reserved
  • Disclaimer
  • Impressum / Impress
  • Datenschutzerklärung / Privacy Policy
Contact