-
1. Re: SY Service Channel in Drools Service
dward Mar 28, 2014 11:29 AM (in response to anikulin)Hi Anton,
Your problem is that you did not have a reference to the BeanService from your DroolsService. Adding these lines corrects that:
<sca:reference name="BeanService">
<sca:interface.java
interface="com.example.switchyard.switchyard_channel_example.BeanService" />
</sca:reference>
You should also update your DroolsService.java interface to include the data you are passing to it. So change this:
void insertFact();
to this:
void insertFact(TestModel fact);
Now, the question of why there was silently no error? I'll look into that.
-
2. Re: SY Service Channel in Drools Service
dward Mar 28, 2014 11:57 AM (in response to dward)Okay, there is a null reference check, which throws an exception, which is later caught and logged because Channels don't allow for checked exceptions. I need to consider whether or not we want to actually throw a RuntimeException here instead. Same thing for WorkItemHandlers too. As for why you didn't see the log, it's probably a logging configuration thing.
-
-
4. Re: SY Service Channel in Drools Service
anikulin Mar 31, 2014 9:43 AM (in response to dward)Thanks a lot, David!