• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Reading registry values from remote computer

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am working on a requirement to retreive the Registry data from a Remote computer and the environment we are using is J2EE on Unix WAS Servers. I did a lot of research but didn't find any information on directly implementing this requirement in J2EE. One of the alternative that came to my mind is to write a c# component with registry reading logic from remote computer, expose it with Web Services and then use it in J2EE environment.

Can anyone please let me know whether this is the only possible solution for the above requirement or is there any way of implementing this directly in J2EE without using Microsoft C# component ?

Thanks,
Madhavi
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Madhavi-

Welcome to JavaRanch.

By "registry", do you mean the Windows registry or a registry in the sense of UDDI/JAXR? If the former, then you will likely need some Windows-specific code, either through JNI or C#. A small part of the registry is accessible to the Java Preferences API, but in general, Java can't access it.
 
Madhavi Potukoochi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the quick response.

Great. JNI is looking like a very good option.

I am also looking at the possibility of one more option. Can we write a C# component, install it on Win2k server and call it from a J2EE application on WAS Unix server?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That depends on what you mean by "call" - you won't be able to make a remote method call RMI-style, but a socket connection, even a web service call if you don't mind the overhead, is possible.
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic