This content has been marked as final. Show 5 replies
An ear is just a zip file. If you want to know stuff about zip files, ask Google.
But it seems to me like you want to generate a checksum which you should keep safe. Then if you later generate the checksum again and it is different from the original, you know the file has been tampered with.
Thanx for your answer,
the thing is that i want my application server to immediately stop working when the .ear file contents have changed...
So i want it to be done automatically without me having to perform the check.
I am using websphere and i havent still figured out a way to do that.
The application server won't stop working; at best you could make the application stop working.
But I have no experience with Websphere, perhaps it has specialized security measures. Only one one way to find out: read the manual or if that doesn't prove fruitful - go to the forums on the IBM website.
It sounds like you are trying to make some sort of DRM. unfortunately, there is no way to make something like that which is actually secure (as various companies learn time and time again). you can do various things to make it difficult, but at the end of the day, if someone else has your ear and they want to modify it and run it on their computer, there's nothing you can do to stop them.
Oh dear, there we go again ;) "But I must!". "But you can't". "But I must!" etc. etc.