• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading registry values from remote computer

 
Madhavi Potukoochi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic