I have a J2EE project in JBoss/MySQL that I would like to copy protect. If the EAR runs on our server then its protected. But, if customer in China wants the app hosted on their server on-site I fear that our code may get stolen.
I would like to protect the EAR such that it validates its license before running. So, if the machine is not the licensed machine OR the time period has elapsed OR the app detects a usage pattern in excess of what the license allows it will stop running.
Rather than write custom code to do this, can anyone give me advice as to how others are doing this or if their is some package we can buy or code we can use? Copy protection is something I am not familiar with at all.