You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Edwin <ed...@gmail.com> on 2013/05/22 19:48:36 UTC

ThreadPoolProfile Error in Camel 2.10.2

Hi Folks,

In earlier versions of Camel, I have used a ThreadPoolProfile associated
with a component i.e. Wiretap. To implement this, I defined the
ThreadPoolProfile within the Camel Context.  i.e.

<camelContext>
     <ThreadPoolProfile id="myThreadPoolProfile" ... />
     <wiretap executorServiceRef="myThreadPoolProfile" ... />
</CamelContext>

I am now using using Camel 2.10.2. I am attempting to define the
ThreadPoolProfile in the same manner however I am receiving validation
errors in the Camel Context xml configuration indicating the
ThreadPoolProfile is not recognized from the defined xsd. 

Is it not possible to define a ThreadPoolProfile in this manner anymore? Is
the ThreadPoolProfile now an option on a different tag?

Any thoughts are much appreciated.

Thanks,
Edwin 



--
View this message in context: http://camel.465427.n5.nabble.com/ThreadPoolProfile-Error-in-Camel-2-10-2-tp5732979.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ThreadPoolProfile Error in Camel 2.10.2

Posted by Christian Müller <ch...@gmail.com>.
Check out [1]. You have to use "<threadPoolProfile ... />" instead of
"<ThreadPoolProfile .../>"

[1] http://camel.apache.org/threading-model.html

Best,
Christian


On Wed, May 22, 2013 at 7:48 PM, Edwin <ed...@gmail.com> wrote:

> Hi Folks,
>
> In earlier versions of Camel, I have used a ThreadPoolProfile associated
> with a component i.e. Wiretap. To implement this, I defined the
> ThreadPoolProfile within the Camel Context.  i.e.
>
> <camelContext>
>      <ThreadPoolProfile id="myThreadPoolProfile" ... />
>      <wiretap executorServiceRef="myThreadPoolProfile" ... />
> </CamelContext>
>
> I am now using using Camel 2.10.2. I am attempting to define the
> ThreadPoolProfile in the same manner however I am receiving validation
> errors in the Camel Context xml configuration indicating the
> ThreadPoolProfile is not recognized from the defined xsd.
>
> Is it not possible to define a ThreadPoolProfile in this manner anymore? Is
> the ThreadPoolProfile now an option on a different tag?
>
> Any thoughts are much appreciated.
>
> Thanks,
> Edwin
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/ThreadPoolProfile-Error-in-Camel-2-10-2-tp5732979.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: ThreadPoolProfile Error in Camel 2.10.2

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

No its not changed.

The XSD is here:
http://camel.apache.org/schema/spring/camel-spring-2.10.2.xsd

The validation error should give you a little hint what is wrong. The
ordering of the tags is often restricted, so maybe you need to move
<threadPoolProfile> up or down.


On Wed, May 22, 2013 at 7:48 PM, Edwin <ed...@gmail.com> wrote:
> Hi Folks,
>
> In earlier versions of Camel, I have used a ThreadPoolProfile associated
> with a component i.e. Wiretap. To implement this, I defined the
> ThreadPoolProfile within the Camel Context.  i.e.
>
> <camelContext>
>      <ThreadPoolProfile id="myThreadPoolProfile" ... />
>      <wiretap executorServiceRef="myThreadPoolProfile" ... />
> </CamelContext>
>
> I am now using using Camel 2.10.2. I am attempting to define the
> ThreadPoolProfile in the same manner however I am receiving validation
> errors in the Camel Context xml configuration indicating the
> ThreadPoolProfile is not recognized from the defined xsd.
>
> Is it not possible to define a ThreadPoolProfile in this manner anymore? Is
> the ThreadPoolProfile now an option on a different tag?
>
> Any thoughts are much appreciated.
>
> Thanks,
> Edwin
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/ThreadPoolProfile-Error-in-Camel-2-10-2-tp5732979.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen