You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Eric Pederson <er...@gmail.com> on 2010/08/14 03:04:43 UTC

jaxws:endpoint publish="false" ignored

I would like to configure my endpoint using the Spring jaxws:endpoint
element but publish it at a later time.   There is a "publish" attribute
that seems tailor made for my needs but it is ignored.   Is there a way to
do what I want?   Or do I need to configure and publish all through the API?

I'm using CXF 2.2.9.

-- Eric

Re: jaxws:endpoint publish="false" ignored

Posted by Eric Pederson <er...@gmail.com>.
Thanks Daniel - I'll log the bug and take a crack at the patch.

-- Eric



On Mon, Aug 16, 2010 at 3:18 PM, Daniel Kulp <dk...@apache.org> wrote:

>
> This definitely looks like a bug.   Can you log it?
>
> Looking at the code in the EndpointDefinitionParser, I just see:
>
>        if (!isAbstract) {
>            bean.setInitMethodName("publish");
>            bean.setDestroyMethodName("stop");
>        }
>        // We don't want to delay the registration of our Server
>        bean.setLazyInit(false);
>
> which definitely doesn't take that parameter into account.    If you'd like
> to
> submit a patch for that, that would be great as well.  :-)
>
> Dan
>
>
>
>
> On Friday 13 August 2010 9:04:43 pm Eric Pederson wrote:
> > I would like to configure my endpoint using the Spring jaxws:endpoint
> > element but publish it at a later time.   There is a "publish" attribute
> > that seems tailor made for my needs but it is ignored.   Is there a way
> to
> > do what I want?   Or do I need to configure and publish all through the
> > API?
> >
> > I'm using CXF 2.2.9.
> >
> > -- Eric
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
>

Re: jaxws:endpoint publish="false" ignored

Posted by Daniel Kulp <dk...@apache.org>.
This definitely looks like a bug.   Can you log it?

Looking at the code in the EndpointDefinitionParser, I just see:

        if (!isAbstract) {
            bean.setInitMethodName("publish");
            bean.setDestroyMethodName("stop");
        }
        // We don't want to delay the registration of our Server
        bean.setLazyInit(false);

which definitely doesn't take that parameter into account.    If you'd like to 
submit a patch for that, that would be great as well.  :-)

Dan




On Friday 13 August 2010 9:04:43 pm Eric Pederson wrote:
> I would like to configure my endpoint using the Spring jaxws:endpoint
> element but publish it at a later time.   There is a "publish" attribute
> that seems tailor made for my needs but it is ignored.   Is there a way to
> do what I want?   Or do I need to configure and publish all through the
> API?
> 
> I'm using CXF 2.2.9.
> 
> -- Eric

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog