You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Eduardo Burgos <eb...@gmail.com> on 2007/03/23 20:40:46 UTC

DefaultComponent, adding endpoints

Hi,

Could it be possible that the addEndpoint method (line 298) in
org.apache.servicemix.common.DefaultComponent be a public method? That way
people could create endpoints and add them to a component programatically.
or is there another way?


Regards,


Eduardo Burgos

Re: DefaultComponent, adding endpoints

Posted by Eduardo Burgos <eb...@gmail.com>.
JIRA is raised as https://issues.apache.org/activemq/browse/SM-897
however, there is something I would like to point out.

I couldn't deploy an HttpSoapConsumerEndpoint programatically even if I did
the same as the addEndpoint method does. I think it has something to do with
the new HttpConsumerEndpoint endpoint type, somehow it does not behave like
the old HttpEndpoint one. So I'm not sure if only making this method public
would allow us to deploy programatically. This is how I am deploying http
endpoints programatically now and it's working for me (only HttpEndpoint
though). This is broken with HttpConsumerEndpoint at the moment.


                Endpoint hse = ....;
                hse.setServiceUnit(httpComponent.getServiceUnit());

                try {
                    hse.validate();

                } catch (DeploymentException e1) {
                    e1.printStackTrace();
                }
                httpComponent.getRegistry().registerEndpoint(hse);

                hse.activate();


Any Comments?



Eduardo Burgos


On 3/24/07, Guillaume Nodet <gn...@gmail.com> wrote:
>
> Sure, good idea.
> Please raise a JIRA (this is only because if you don't,
> I will certainly forget ;-)
>
> On 3/23/07, Eduardo Burgos <eb...@gmail.com> wrote:
> >
> > Hi,
> >
> > Could it be possible that the addEndpoint method (line 298) in
> > org.apache.servicemix.common.DefaultComponent be a public method? That
> way
> > people could create endpoints and add them to a component
> programatically.
> > or is there another way?
> >
> >
> > Regards,
> >
> >
> > Eduardo Burgos
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Architect, LogicBlaze (http://www.logicblaze.com/)
> Blog: http://gnodet.blogspot.com/
>

Re: DefaultComponent, adding endpoints

Posted by Guillaume Nodet <gn...@gmail.com>.
Sure, good idea.
Please raise a JIRA (this is only because if you don't,
I will certainly forget ;-)

On 3/23/07, Eduardo Burgos <eb...@gmail.com> wrote:
>
> Hi,
>
> Could it be possible that the addEndpoint method (line 298) in
> org.apache.servicemix.common.DefaultComponent be a public method? That way
> people could create endpoints and add them to a component programatically.
> or is there another way?
>
>
> Regards,
>
>
> Eduardo Burgos
>



-- 
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/