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.by...@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 <mmadha...@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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to