aspose file tools*
The moose likes Java in General and the fly likes Connect to windows over network 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 » Java in General
Bookmark "Connect to windows over network" Watch "Connect to windows over network" New topic
Author

Connect to windows over network

Jagadeesh Kumar Sastry.K
Greenhorn

Joined: Jun 12, 2007
Posts: 5
Hi all,

I have a requirement where i need to connect to windows over network using my windows credentials and search for a string in particular location. Can somebody let me know how to do that using a java program.

Thanks in adavance,
Jagadeesh.K
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2266
    
    3

Howdy, Jagadeesh!

Champ, is there any chance that you can do this by creating a server, using either RMI or Sockets? For instance, there is a server and you simply connect to it and invoke a method that returns this String... is this possible?


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18656
    
    8

What kind of "location" would you be searching in? If it's in a file then you can access files across a Windows network using JCIFS. Of course if the network you referred to isn't a Windows network but is something else (like the Internet for example) then that isn't going to work. You didn't really provide a lot of details but perhaps JCIFS is the answer to your requirement.
Jagadeesh Kumar Sastry.K
Greenhorn

Joined: Jun 12, 2007
Posts: 5
Hi Paul,

Yes, this is a windows network only. The requirement is, am creating a tool, which works like a search tool. If you provide a string to the tool, it should search in windows machines across the network in a specific location and write into a file. This eliminates manual work of logging into every machine and look for specific data.

Hope it is clear now.

Thanks for the info Robert, but am not sure either sockets or RMI will work in this case.

thanks,
Jagadeesh.K
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18656
    
    8

Then JCIFS should be perfect for that.
 
jQuery in Action, 2nd edition
 
subject: Connect to windows over network