[
https://issues.apache.org/jira/browse/CAMEL-12309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16386132#comment-16386132
]
Claus Ibsen commented on CAMEL-12309:
-------------------------------------
Using SpEL is only recommended for spring runtimes, but with this improvement
you can run it outside, but we do not know the ramifications of doing so as
SpEL is for Spring. The docs has a NOTE about this - so use this with a bit of
care.
> SpEL expression should be able to reference beans in non-Spring application
> context
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-12309
> URL: https://issues.apache.org/jira/browse/CAMEL-12309
> Project: Camel
> Issue Type: Improvement
> Components: camel-spring
> Affects Versions: 2.20.2
> Reporter: Jens Kleine-Herzbruch
> Assignee: Claus Ibsen
> Priority: Major
> Labels: SpEL
> Fix For: 2.21.0
>
> Attachments: spel-ref.diff
>
>
> Currently, a SpEL expression like @myBean only gets resolved correctly when
> using a Spring application context. Considering that the Ref language can do
> this with any type of context, it shouldn't be tto hard to support this for
> SpEL, too.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)