Claims
- 1. A system for determining when an EJB compiler needs to be executed, comprising:
a server, including an EJB or plurality of EJBs and an EJB compiler operating thereon; and, a logic that determines a first snapshot of the EJB at a particular moment in time or for a particular server version, and a second snapshot of said EJB at a later moment in time or a subsequent server version, and compares the first and second snapshots to determine whether the EJB should be recompiled.
- 2. The system of claim 1 wherein said logic performs the step, for each EJB, of:
obtaining a current server version and storing it to a snapshot file; for each dependent EJB class, computing a unique hash; recording the fully qualified class name along with its computed hash to said snapshot file; for each deployment descriptor, computing a unique hash; recording the deployment descriptor name along with its computed hash to said snapshot file; and, associating the snapshot file with the EJB.
- 3. The system of claim 2 wherein said for each dependent EJB class computing a unique hash is based on the public method signatures and public field declarations for the class.
- 4. The system of claim 2 wherein said for each deployment descriptor computing a unique hash is based on the bytes of the deployment descriptor file.
- 5. The system of claim 2 wherein said associating the snapshot file with the EJB includes storing the snapshot file in the compiled EJB-JAR file.
- 6. A method for determining when an EJB compiler needs to be executed, comprising the steps of:
providing a server, including an EJB or plurality of EJBs and an EJB compiler operating thereon; and, determining a first snapshot of the EJB at a particular moment in time or for a particular server version, and a second snapshot of said EJB at a later moment in time or a subsequent server version, and comparing the first and second snapshots to determine whether the EJB should be recompiled.
- 7. The method of claim 6 wherein said determining further comprises:
obtaining a current server version and storing it to a snapshot file; for each dependent EJB class, computing a unique hash; recording the fully qualified class name along with its computed hash to said snapshot file; for each deployment descriptor, computing a unique hash; recording the deployment descriptor name along with its computed hash to said snapshot file; and, associating the snapshot file with the EJB.
- 8. The method of claim 7 wherein said for each dependent EJB class computing a unique hash is based on the public method signatures and public field declarations for the class.
- 9. The method of claim 7 wherein said for each deployment descriptor computing a unique hash is based on the bytes of the deployment descriptor file.
- 10. The method of claim 7 wherein said associating the snapshot file with the EJB includes storing the snapshot file in the compiled EJB-JAR file.
- 11. A computer readable medium including instructions stored thereon which when executed cause the computer to perform the steps of:
providing a server, including an EJB or plurality of EJBs and an EJB compiler operating thereon; and, determining a first snapshot of the EJB at a particular moment in time or for a particular server version, and a second snapshot of said EJB at a later moment in time or a subsequent server version, and comparing the first and second snapshots to determine whether the EJB should be recompiled.
- 12. The computer readable medium of claim 11 wherein said determining further comprises:
obtaining a current server version and storing it to a snapshot file; for each dependent EJB class, computing a unique hash; recording the fully qualified class name along with its computed hash to said snapshot file; for each deployment descriptor, computing a unique hash; recording the deployment descriptor name along with its computed hash to said snapshot file; and, associating the snapshot file with the EJB.
- 13. The computer readable medium of claim 12 wherein said for each dependent EJB class computing a unique hash is based on the public method signatures and public field declarations for the class.
- 14. The computer readable medium of claim 12 wherein said for each deployment descriptor computing a unique hash is based on the bytes of the deployment descriptor file.
- 15. The computer readable medium of claim 12 wherein said associating the snapshot file with the EJB includes storing the snapshot file in the compiled EJB-JAR file.
CLAIM OF PRIORITY
[0001] This application claims priority to U.S. Provisional Patent Application 60/450,645, filed Feb. 28, 2003 (Atty. Docket No. BEAS-01413US0), and incorporated herein by reference.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60450645 |
Feb 2003 |
US |