Added the patch to the jira[1] Thanks, Sameera.
[1] https://issues.apache.org/jira/browse/AXIS2-5234 On Fri, Jan 27, 2012 at 4:33 PM, Sagara Gunathunga < [email protected]> wrote: > > > On Fri, Jan 27, 2012 at 3:13 PM, Sameera Jayasoma < > [email protected]> wrote: > >> Hi Devs, >> >> Axis2 throws exceptions when the specified transport of a service is not >> available. And the service becomes faulty as well. If this service has >> specified multiple transports and these other transports are available, >> Axis2 should expose the service in other transports, without simply failing >> the deployment. >> >> e.g 1. Service Foo has specified http and https transports. >> >> <transports> >> <transport>https</transport> >> <transport>http</transport> >> </transports> >> >> Now We configured Axis2 only with Http transport. When we deploy the >> service Foo in Axis2, the default behavior of Axis2 is to fail the service >> deployment saying "Https transport is not available.". But my suggestion >> is, we should deploy the service Foo in Http transport and display a WARN >> message to notify that this service will not be exposed in Https. >> >> e.g 2. Service Bar has specified https and jms transports. >> >> <transports> >> <transport>https</transport> >> <transport>jms</transport> >> </transports> >> >> We configured Axis2 only with Http transport. Now this service cannot be >> exposed in either Https or jms. Hence Axis2 should fail the deployment of >> the service Bar. > > > +1 both cases are reasonable to me. BTW it's better to have a descriptive > warn message or a descriptive error message so that users can realize > what's the issue with their service. > > Thanks ! > > >> >> Thanks, >> Sameera. >> >> [1] https://issues.apache.org/jira/browse/AXIS2-5234 >> > > > > -- > Sagara Gunathunga > > Blog - http://ssagara.blogspot.com > Web - http://people.apache.org/~sagara/ > LinkedIn - http://www.linkedin.com/in/ssagara > -- Sameera Jayasoma Technical Lead WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://tech.jayasoma.org
