In camel, when you specify a from endpoint you are actually telling camel to create a JBI provider endpoint. This means that camel will create a new endpoint and when messages are sent to the new endpoint it will do what ever you configured camel to do with the message (routing, etc). This also means that the "from" endpoint must be unique (i.e. not the same as your bean endpoint).
You will need to configure your bean component (or a higher-level EIP) to send the message to the camel "from" endpoint. More info about camel endpoints: http://activemq.apache.org/camel/jbi.html - Jeff On Thu, Nov 27, 2008 at 11:09 AM, avermout <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm using some servicemix-bean components and a servicemix-camel component. > (servicemix 3.2.2) > > I wonder if it is possible to use a servicemix-bean endpoint as a from > endpoint in camel. > > I want to do something like this in my RouteBuilder: > from("jbi:endpoint:service:endpoint").to(...) > > But when I do that, I always get a "internal endpoint for service ... and > endpoint ... is already registered. > > Should it work or am I doing something wrong? > > > thanks very much for your help. > -- > View this message in context: > http://www.nabble.com/Using-servicemix-bean-as-From-endpoint-tp20724254p20724254.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
