-
1. Re: EAR verification
jaikiran Jan 14, 2008 10:57 AM (in response to preetam_pict)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_pict Jan 15, 2008 1:27 AM (in response to preetam_pict)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 Jan 15, 2008 5:09 AM (in response to preetam_pict)"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