You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Christian Müller <ch...@gmail.com> on 2013/08/22 12:29:04 UTC

Re: Enums in spring config

Hello Geoffrey!

It works in the same way as in the Java DSL. Please find attached a sample
project with a Java and XML DSL test. Hope this helps...

Best,
Christian
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Wed, Jul 31, 2013 at 2:36 PM, Gershaw, Geoffrey <
geoffrey.gershaw@credit-suisse.com> wrote:

> Hi Christian,
>
> Thanks for your reply. Does it work in the spring xml?  It appears like
> static attributes work, but not enums.
>
> See log output and example.
>
> <simple>${header.EventCategory} ==
> ${type:org.apache.camel.component.quickfix.QuickfixjEventCategory.AppMessageReceived}</simple>
>
> [pool-1-thread-1] WARN org.apache.camel.util.ObjectHelper - Cannot find
> class:
> org.apache.camel.component.quickfix.QuickfixjEventCategory.AppMessageReceived
> [pool-1-thread-1] WARN org.apache.camel.util.ObjectHelper - Cannot find
> class: org.apache.camel.component.quickfix.QuickfixjEventCategory
>
>
> Yes, I have the module in my classpath 
>
>                      <dependency>
>                            <groupId>org.apache.camel</groupId>
>                            <artifactId>camel-quickfix</artifactId>
>                      </dependency>
>
>
>
>
> Geoffrey A Gershaw
> Credit eTrading Development
> +1 919 994 6412 (*102 6412)
>
>
> -----Original Message-----
> From: Christian Müller [mailto:christian.mueller@gmail.com]
> Sent: Tuesday, July 30, 2013 6:51 PM
> To: users@camel.apache.org
> Subject: Re: Enums in spring config
>
> It works with 2.11.0 [1]. What's the exception do you get?
>
> [1]
>
> https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=camel-core/src/test/java/org/apache/camel/processor/CBRSimpleTypeTest.java;h=aaf9051b9e97a1971e923f8319b688c8bd80b686;hb=99b5784e1fc5fd529c0178f9a8f60ac37fed5682
>
> Best,
> Christian
> -----------------
>
> Software Integration Specialist
>
> Apache Camel committer: https://camel.apache.org/team
> V.P. Apache Camel: https://www.apache.org/foundation/
> Apache Member: https://www.apache.org/foundation/members.html
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>
>
> On Tue, Jul 30, 2013 at 10:20 PM, Gershaw, Geoffrey <
> geoffrey.gershaw@credit-suisse.com> wrote:
>
> > Hello All,
> >
> >
> >
> > I was under the impression that enums can now be specified in the Spring
> > config as in the below example. Having issues. Any advice?
> >
> >
> >
> > <simple>${header.EventCategory} ==
> > ${type:org.apache.camel.component.quickfix.QuickfixjEventCategory.AppMes
> > sageReceived}</simple>
> >
> >
> >
> > [pool-1-thread-1] WARN org.apache.camel.util.ObjectHelper - Cannot find
> > class:
> > org.apache.camel.component.quickfix.QuickfixjEventCategory.AppMessageRec
> > eived
> >
> > [pool-1-thread-1] WARN org.apache.camel.util.ObjectHelper - Cannot find
> > class: org.apache.camel.component.quickfix.QuickfixjEventCategory
> >
> >
> >
> >
> >
> > Yes, I have the module in my classpath J
> >
> >
> >
> >                      <dependency>
> >
> >                            <groupId>org.apache.camel</groupId>
> >
> >                            <artifactId>camel-quickfix</artifactId>
> >
> >                      </dependency>
> >
> >
> >
> >
> >
> > Geoffrey A Gershaw
> >
> > CREDIT SUISSE
> >
> > Information Technology | Credit eTrading Development, KFVB 525
> >
> > 7033 Louis Stephens Drive | 27560 Research Triangle Park | United States
> >
> > Phone +1 919 994 6412
> >
> > geoffrey.gershaw@credit-suisse.com | www.credit-suisse.com
> > <http://www.credit-suisse.com/>
> >
> >
> >
> >
> >
> >
> >
> ===============================================================================
> > Please access the attached hyperlink for an important electronic
> > communications disclaimer:
> > http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> >
> >
> ===============================================================================
> >
> >
>
>
>
> ===============================================================================
> Please access the attached hyperlink for an important electronic
> communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>
> ===============================================================================
>
>