You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ivan <xh...@gmail.com> on 2011/03/28 09:59:57 UTC

ClassLoader choosing in JAXWSProxyHandler ?

Hi,
    In the class JAXWSProxyHandler, there is some logic for choosing
classloader of SEI and context classloader. Currently, it would try to build
the JAXBContext with both classloaders, and compare them with a set of
rules, But I found that JAXBUtils.getJAXBContext method would not return
null in most scenarios even if it is not suitable, and context classloader
did not have enough chance to win.
    In the JAXBUtils,getJAXBContext, it would first try to build the
JAXBContext with context path style, then checked whether the built
JAXBContext contains expected reference classes. If not, it will turn to
build the JAXBContext with class array style, but the logic for this style
is so careful, it would not throw exception as I could see it will try to
find a best successful set. Also, JAXBUtils does not check the built
JAXBContext contains expected reference classes at this time. Should it also
do some checking and throw JAXBException if required ?
    Thanks.
-- 
Ivan

Re: asynchronous messages - long running operations

Posted by Christophe Noël <ch...@gmail.com>.
Hello Andrej,

I have already ask for examples of such a communication pattern, one IN /
many OUT, but for now, I haven't found how to do it with Axis2.
Please, let's keep in touch in case anybody found a solution.

Christophe.

2011/3/28 Andrej Hollmann <An...@tu-dresden.de>

> Dear axis community,
>
>
>
> I want implement a web service which has long running operations, I want
> send messages about progress of execution of such operations to the client.
>
> How can I do so in java/axis2?
>
>
>
> In Book "Developing Web Services with Apache Axis2" is described the
> scenario where a server sends many messages to a client on predefined port.
> The client listen to this port and thus can receive all transmitted
> messages. Is there any examples or Tutorials how to sent many asynchronous
> messages from server to a client with java/axis2?
>
>
>
> Best Regards
>
> Andrej
>
>
>
> Dipl.-Medieninf. Andreas Hollmann
>
> Wissenschaftlicher Mitarbeiter
>
>
>
> Technische Universität Dresden
>
> Fakultät Bauingenieurwesen
>
> Institut für Bauinformatik
>
> 01062 Dresden
>
>
>



-- 
Christophe Noël
-------------------------
Please consider the environment before printing this email.

asynchronous messages - long running operations

Posted by Andrej Hollmann <An...@tu-dresden.de>.
Dear axis community,

I want implement a web service which has long running operations, I want send messages about progress of execution of such operations to the client.
How can I do so in java/axis2?

In Book "Developing Web Services with Apache Axis2" is described the scenario where a server sends many messages to a client on predefined port. The client listen to this port and thus can receive all transmitted  messages. Is there any examples or Tutorials how to sent many asynchronous messages from server to a client with java/axis2?

Best Regards
Andrej

Dipl.-Medieninf. Andreas Hollmann
Wissenschaftlicher Mitarbeiter

Technische Universität Dresden
Fakultät Bauingenieurwesen
Institut für Bauinformatik
01062 Dresden


Re: ClassLoader choosing in JAXWSProxyHandler ?

Posted by Ivan <xh...@gmail.com>.
I attached a patch AXIS-4990-ThrowException.patch in the
https://issues.apache.org/jira/browse/AXIS2-4990

2011/3/28 Ivan <xh...@gmail.com>

> Hi,
>     In the class JAXWSProxyHandler, there is some logic for choosing
> classloader of SEI and context classloader. Currently, it would try to build
> the JAXBContext with both classloaders, and compare them with a set of
> rules, But I found that JAXBUtils.getJAXBContext method would not return
> null in most scenarios even if it is not suitable, and context classloader
> did not have enough chance to win.
>     In the JAXBUtils,getJAXBContext, it would first try to build the
> JAXBContext with context path style, then checked whether the built
> JAXBContext contains expected reference classes. If not, it will turn to
> build the JAXBContext with class array style, but the logic for this style
> is so careful, it would not throw exception as I could see it will try to
> find a best successful set. Also, JAXBUtils does not check the built
> JAXBContext contains expected reference classes at this time. Should it also
> do some checking and throw JAXBException if required ?
>     Thanks.
> --
> Ivan
>



-- 
Ivan