aspose file tools*
The moose likes Web Services and the fly likes Reading registry values from remote computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Reading registry values from remote computer" Watch "Reading registry values from remote computer" New topic
Author

Reading registry values from remote computer

Madhavi Potukoochi
Greenhorn

Joined: Dec 17, 2005
Posts: 2
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
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
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.


Ping & DNS - my free Android networking tools app
Madhavi Potukoochi
Greenhorn

Joined: Dec 17, 2005
Posts: 2
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
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading registry values from remote computer