3 Replies Latest reply on Jan 15, 2008 5:09 AM by jaikiran pai

    EAR verification

    Preetam Palwe Newbie

      hello all
      is there any way to ask jboss to verify my ear when deploying
      and if failed notifying me?

      thanks

        • 1. Re: EAR verification
          jaikiran pai Master

          When the server picks up your ear file for deployment, i checks for the basic validity of the archive. If something fails then you will see error messages in the logs. Is this what you are looking for?

          • 2. Re: EAR verification
            Preetam Palwe Newbie

            thanks jaikiran!
            I will say NO :)

            Actually what i want is :
            1. when i deploy my ear jboss should verify it. Verification means ...
            a) jsp pre-compilations to ensure that all jsps are correct.
            b) checking whether tables refered by entity beans are present in db
            c) so that i will come to know about any possible failures at the deployment time only.
            d) this is very similar to what i have seen in sun application server (glassfish to be more precise)

            2. if above said verification fails / succeeds then jboss should notify me by
            a) invoking a listener
            b) email

            Basically i am setting up a continuous integration server for my application using cruisecontrol. so i need this help to ensure the build deployment status.

            thanks ....

            • 3. Re: EAR verification
              jaikiran pai Master

               

              "preetam_pict" wrote:

              a) jsp pre-compilations to ensure that all jsps are correct.


              No, this is not available. However, you can package pre-compiled jsps in your ear and deploy it. For pre-compilation, Ant provides a task which you can use.

              "preetam_pict" wrote:

              b) checking whether tables refered by entity beans are present in db

              Sorry, i dont have any experience on entity beans. But i guess, an exception will be thrown if the tables referenced by the entity bean in missing from the DB. Not sure though. You can try out a sample application to test this.

              "preetam_pict" wrote:

              2. if above said verification fails / succeeds then jboss should notify me by
              a) invoking a listener
              b) email



              JBoss generates JMX notifications for some of the deployment related activities. You can listen them through your application. More details about the notifications can be found at

              http://wiki.jboss.org/wiki/Wiki.jsp?page=NotificationsEmittedByJBossMBeans

              Also, go through this wiki entry for details about how to listen to these notifications:

              http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanNonMBeansReceiveJMXNotifications