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 ?
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 - updated with new look and Ping home screen widget
Joined: Dec 17, 2005
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?
Joined: Mar 22, 2005
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.