[rules-users] Kie-spring Issues - Not able to autowire sessions
Stephen Masters
stephen.masters at me.com
Wed Aug 20 17:27:07 EDT 2014
May be worth checking what class/interface your bean is. In the code that works, you are casting it to StatelessKieSession, but I suspect that the object which was injected was a KieSession.
Steve
On 19 Aug 2014, at 15:17, Ged Byrne <ged.byrne at gmail.com> wrote:
> Hi Matt,
>
> This may be a problem with Spring rather than KIE.
>
> Take a look at the following:
> * https://jira.spring.io/browse/SPR-9786
> * http://www.javabeat.net/annotation-based-bean-wiring-autowired-in-spring-framework/
>
> Regards,
>
>
> Ged
>
>
>
> On 16 August 2014 18:56, mattmadhavan <mmadhavan at facs.org> wrote:
> Hello,
> I have the following kie-spring xml definition to test my custom evaluater.
>
>
>
> I am not able to inject neither the *IN_LIST_KBase *nor the
> /IN_LIST_KSession/ in my test class as follows:
>
>
>
> But i am able to look it up via the applicationContext as follows:
>
>
> I am bit confused! Any ideas please?
>
> Thanks in advance!
>
> Matt'M
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Kie-spring-Issues-Not-able-to-autowire-sessions-tp4030663.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140820/95e1829c/attachment-0001.html
More information about the rules-users
mailing list