From rsearls at redhat.com Tue Dec 10 08:24:40 2013 From: rsearls at redhat.com (Rebecca Searls) Date: Tue, 10 Dec 2013 08:24:40 -0500 (EST) Subject: [jbossws-dev] What exception to trigger undeploy. In-Reply-To: <821965448.49581436.1386636744135.JavaMail.root@redhat.com> References: <821965448.49581436.1386636744135.JavaMail.root@redhat.com> Message-ID: <1223525817.49791024.1386681880110.JavaMail.root@redhat.com> Is there a specific exception to use to trigger undeployment? During the deployment process, I am checking for specific conditions of webservice apps. If the conditions are not met I want to signal that the app is not to be deployed. From asoldano at redhat.com Tue Dec 10 08:32:41 2013 From: asoldano at redhat.com (Alessio Soldano) Date: Tue, 10 Dec 2013 14:32:41 +0100 Subject: [jbossws-dev] What exception to trigger undeploy. In-Reply-To: <1223525817.49791024.1386681880110.JavaMail.root@redhat.com> References: <821965448.49581436.1386636744135.JavaMail.root@redhat.com> <1223525817.49791024.1386681880110.JavaMail.root@redhat.com> Message-ID: <52A717F9.10600@redhat.com> Hi Rebecca, it should be possible to make a deployment fail, for example by raising an exception in one of the DeploymentAspect / DeploymentUnitProcessor instances. Actually triggering undeployment of a successful deployment is not something that can be done by throwing an exception. Alessio On 10/12/13 14:24, Rebecca Searls wrote: > > Is there a specific exception to use to trigger undeployment? > > During the deployment process, I am checking for specific conditions > of webservice apps. If the conditions are not met I want to signal > that the app is not to be deployed. > _______________________________________________ > jbossws-dev mailing list > jbossws-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbossws-dev -- Alessio Soldano Web Service Lead, JBoss From rsearls at redhat.com Tue Dec 10 09:20:37 2013 From: rsearls at redhat.com (Rebecca Searls) Date: Tue, 10 Dec 2013 09:20:37 -0500 (EST) Subject: [jbossws-dev] What exception to trigger undeploy. In-Reply-To: <52A717F9.10600@redhat.com> References: <821965448.49581436.1386636744135.JavaMail.root@redhat.com> <1223525817.49791024.1386681880110.JavaMail.root@redhat.com> <52A717F9.10600@redhat.com> Message-ID: <19796502.49831280.1386685237947.JavaMail.root@redhat.com> Yes, but what Exception (type) to throw? I would think there would be some existing jboss exception I should use. For example if A and B are null then throw the exception. Also I would need to be able to put relevant text in the exception. ----- Original Message ----- > From: "Alessio Soldano" > To: jbossws-dev at lists.jboss.org > Sent: Tuesday, December 10, 2013 8:32:41 AM > Subject: Re: [jbossws-dev] What exception to trigger undeploy. > > Hi Rebecca, > it should be possible to make a deployment fail, for example by raising > an exception in one of the DeploymentAspect / DeploymentUnitProcessor > instances. > Actually triggering undeployment of a successful deployment is not > something that can be done by throwing an exception. > > Alessio > > On 10/12/13 14:24, Rebecca Searls wrote: > > > > Is there a specific exception to use to trigger undeployment? > > > > During the deployment process, I am checking for specific conditions > > of webservice apps. If the conditions are not met I want to signal > > that the app is not to be deployed. > > _______________________________________________ > > jbossws-dev mailing list > > jbossws-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/jbossws-dev > > > -- > Alessio Soldano > Web Service Lead, JBoss > > _______________________________________________ > jbossws-dev mailing list > jbossws-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbossws-dev > From asoldano at redhat.com Tue Dec 10 09:54:49 2013 From: asoldano at redhat.com (Alessio Soldano) Date: Tue, 10 Dec 2013 15:54:49 +0100 Subject: [jbossws-dev] What exception to trigger undeploy. In-Reply-To: <19796502.49831280.1386685237947.JavaMail.root@redhat.com> References: <821965448.49581436.1386636744135.JavaMail.root@redhat.com> <1223525817.49791024.1386681880110.JavaMail.root@redhat.com> <52A717F9.10600@redhat.com> <19796502.49831280.1386685237947.JavaMail.root@redhat.com> Message-ID: <52A72B39.6000204@redhat.com> I think any RuntimeException would actually work. A good candidate here would probably be org.jboss.wsf.spi.deployment.WSFDeploymentException though. Alessio On 10/12/13 15:20, Rebecca Searls wrote: > Yes, but what Exception (type) to throw? I would think there would be some existing jboss exception I should use. > For example if A and B are null then throw the exception. Also I would need to be able to put relevant text in the > exception. > > > ----- Original Message ----- >> From: "Alessio Soldano" >> To: jbossws-dev at lists.jboss.org >> Sent: Tuesday, December 10, 2013 8:32:41 AM >> Subject: Re: [jbossws-dev] What exception to trigger undeploy. >> >> Hi Rebecca, >> it should be possible to make a deployment fail, for example by raising >> an exception in one of the DeploymentAspect / DeploymentUnitProcessor >> instances. >> Actually triggering undeployment of a successful deployment is not >> something that can be done by throwing an exception. >> >> Alessio >> >> On 10/12/13 14:24, Rebecca Searls wrote: >>> Is there a specific exception to use to trigger undeployment? >>> >>> During the deployment process, I am checking for specific conditions >>> of webservice apps. If the conditions are not met I want to signal >>> that the app is not to be deployed. >>> _______________________________________________ >>> jbossws-dev mailing list >>> jbossws-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/jbossws-dev >> >> -- >> Alessio Soldano >> Web Service Lead, JBoss >> >> _______________________________________________ >> jbossws-dev mailing list >> jbossws-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/jbossws-dev >> -- Alessio Soldano Web Service Lead, JBoss