cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim yesno <tim.ye...@gmail.com>
Subject Re: CXF 2.3.0: Shutdown a client which is connected with SOAPoverJMS
Date Thu, 09 Sep 2010 05:43:09 GMT
Hi Daniel

Thanks for your hint.

Works like a charm.

Regards

Tim

On Wed, Sep 8, 2010 at 4:41 PM, Daniel Kulp <dkulp@apache.org> wrote:

> On Wednesday 08 September 2010 8:23:57 am tim yesno wrote:
> > Hello
> >
> > I have a client, the following source code:
> >         ApplicationContext applicationContext = new
> > ClassPathXmlApplicationContext(APPL_CONFIG);
> >         JaxWsProxyFactoryBean factory =
> > applicationContext.getBean(CLIENT_FACTORY, JaxWsProxyFactoryBean.class);
> >         MyServiceInterface client = (MyServiceInterface)factory.create();
> >         String reply = client.greetMeString("Hans");
> >         LOGGER.info(reply);
> >         reply = client.greetMeString("Ruedi");
> >         LOGGER.info(reply);
> >
> > How can I shutdown or disconnect from the broker without making an
> > exception on the service side (not System.exit()!)?
> >
> > Thanks for your help.
>
> One of the issues with the jaxws spec is there isn't anything on the client
> to
> mark it as "finished".   For CXF, you can try:
>
> org.apache.cxf.frontend.ClientProxy.getClient(client).destroy();
>
> If that doesn't work, please log a bug.   That should call close() on the
> conduit which should completely cleanup it's connections and such.
>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message