[jbossws-dev] What exception to trigger undeploy.

Alessio Soldano asoldano at redhat.com
Tue Dec 10 09:54:49 EST 2013


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" <asoldano at redhat.com>
>> 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



More information about the jbossws-dev mailing list