axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Illsley" <davidills...@gmail.com>
Subject Re: [Axis2] why GenericProviderDispatcher in the kernel axis2.xml
Date Tue, 27 May 2008 14:57:48 GMT
Could we get the JAXWSDeployer to engage a 'by-default-unengaged'
module if JAX-WS services are found?
David

On Tue, May 27, 2008 at 3:45 PM, Glen Daniels <glen@thoughtcraft.com> wrote:
> Hi Deepal, Paul:
>
> Deepal Jayasinghe wrote:
>>>
>>> Is there a way of making it more dynamic? If its there it works, if
>>> not then its still ok?
>>>
>>
>> But now we get Class not found exception  , if we try to use Axis2 without
>> having jaxws around  :)
>
> Paul was asking if there's a way *around* that kind of problem, Deepal...
> and I think there is.
>
> For much of our configuration, components (handlers in particular) are
> non-optional - failing to find a configured class means a fatal error. We
> could pretty easily change that to allow for optional components in several
> ways:
>
> * We could leave everything as-is and create an "OptionalDispatcher" which
> uses reflection to load a target class.  It's a noop if it can't find the
> target class, and it delegates if it can.
>  <handler name="GenericProviderDispatcher"
>           class="org.apache.axis2.dispatchers.Optional">
>    <parameter name="targetClass">
>       [...]dispatchers.GenericProviderDispatcher
>    </parameter>
>  </handler>
>
> * We could add an "optional" flag to our handler configuration which would
> allow trapping ClassNotFoundExceptions and simply skipping the handler if
> one is thrown.
>
> * We could put the JAXWS dispatchers into a "jaxws.mar" and have that
> available on the default classpath.  Then you run into the same issue with
> optional module engagement, but I think that's a good thing to solve too...
>   <module ref="jaxws" optional="true"/>
>
> Thoughts?
>
> --Glen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message