<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:kie="http://drools.org/schema/kie-spring"
       xmlns:osgi="http://www.springframework.org/schema/osgi"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://drools.org/schema/kie-spring http://drools.org/schema/kie-spring.xsd
       http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">

  <bean id="kiePostProcessor" class="org.kie.osgi.spring.OsgiKModuleBeanFactoryPostProcessor"/>

  <kie:kmodule id="kieModuleFromClassPath">
    <kie:kbase name="ctxKieBase" packages="drl_kiesample_dependency">
      <kie:ksession name="ctxStatefulSession" type="stateful"/>
    </kie:kbase>
  </kie:kmodule>

  <osgi:service ref="ctxStatefulSession" interface="org.kie.api.runtime.KieSession" />

</beans>
