Calling WMI from Java?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to provide the default printer and printer port to a CICS application,
whose middle tier is hosted on a Unix server. Basically, I need to provide
this information to a Java application. I immediately thought of WMI as the
means of extracting this info from the client, and 2 ways of connecting the
Windows and java world together.

1. Provide the WMI calls in a web service so the java client could connect
and provide the computer name we want the printer information from. This
would be fairly straightforward in C#, but i don't know how difficult it is
for a Java app to consume a web service.

2. Let the Java client access WMI on the windows client. Of this, I am
completely in the dark. I know WBEM has been around for a while and Java can
access this, but I'm not sure the printer information is in a WBEM class, or
even how to interface to it.

Has anyone any idea on this or can anyone point me to an article that can
address this? Thanks in advance for any info...
 
Back
Top