wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Application code compare Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Application code compare" Watch "Application code compare" New topic
Author

Application code compare

akii jain
Greenhorn

Joined: Aug 17, 2008
Posts: 3
Hi Everyone,

I m developing an utility where in i want to check whether application code deployed in a particular server when copied to other server(same type) remains same or not(i.e i want to develop a comparer kind of software which compares files and folders of same application deployed on multiple servers )and accordingly display to client if there is any files or folders missing in their application code.Please can anyone help me out?For how should i go?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Akii,
Welcome to JavaRanch!

You could check the number/sizes of files and report on what is different. Or you could use a checksum to verify the correct thing was deployed.

How did the clients deploy the files to their server? There might be another way to check it knowing the answer to this.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
akii jain
Greenhorn

Joined: Aug 17, 2008
Posts: 3
Originally posted by Jeanne Boyarsky:
Akii,
Welcome to JavaRanch!

You could check the number/sizes of files and report on what is different. Or you could use a checksum to verify the correct thing was deployed.

How did the clients deploy the files to their server? There might be another way to check it knowing the answer to this.
akii jain
Greenhorn

Joined: Aug 17, 2008
Posts: 3
can you just tell me how to display list of all missing files and folders once i perform checksum and also using property class how to retrieve application code deployed on multiple servers using their Internet Protocol address
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Originally posted by akii jain:
can you just tell me how to display list of all missing files and folders once i perform checksum and also using property class how to retrieve application code deployed on multiple servers using their Internet Protocol address

If you are asking for a coded solution, not I cannot write it for you. JavaRanch is not a code mill. What I can do is help you arrive at a solution. I notice you didn't reply to my question about how the code gets there. That might yield a better solution than my answering your literal questions.

Now some more info on this: You can't display a list of all missing files/folders from a checksum. It's an either/or. The checksum tells you something is missing and you will need to do an exhaustive check to see what is missing. I recommend doing a directory dump (operating system dependent command) and then comparing the files to see what is different. Of course, this only works if all the deployments are on the same operating system.

If you have an account on the remote servers, you can execute commands remotely. If all you have is the IP address, you are out of luck as allowing it would likely be a security risk.
 
Don't get me started about those stupid light bulbs.
 
subject: Application code compare
 
Similar Threads
Log4j logging problem on Linux
Tomcat 404 error
Problem in accessing the local files & folders in web application
Checkout from CVS
implementing JSF