indikad wrote:The issue is even if Jiwa does not find a free licence to login , especially when there are multiple similar plugins running, it will still extract the file from the watch folder and dump it into succeed folder without actually processing it.
Eg: If a sales orders is being imported then the order will not import but the file ends up in the succeeded folder.
This means a legitimate file is discarded.
Hi Indika,
I cannot see how this is possible, unless you've got in your config for the Jiwa Plugin Scheduler Service the same database on the same server twice, or you're running multiple instances of the Jiwa Plugin Scheduler Service.
The Jiwa Plugin Scheduler Service at the poll interval specified in the JiwaPluginSchedulerService.exe.config file, examine the Databases section of the config:
- Code: Select all
<Databases>
<Database>
<DatabaseName>JiwaDemo</DatabaseName>
<ServerName>localhost</ServerName>
<JiwaUsername>Admin</JiwaUsername>
<JiwaPassword>password</JiwaPassword>
</Database>
</Databases>
And for each database in that config, it will Logon
once and then invoke the plugins implementing the IJiwaScheduledExecutionPlugin interface. It
does not logon for each plugin and thus it will only use once licence for all plugins.
If your file watcher is moving files to the succeeded folder and not actually processing the file, then
something else is going on -
for it to even be able to move the file, that means your file watcher plugin is running - and that only occurs after a successful logon the Jiwa Plugin Scheduler Service makes for you.
As Stuart mentioned you may be able to side step the whole issue by explicitly attaching a licence to the user the Jiwa Plugin Scheduler Service is configured to use - but I really don't think your issue is a licence issue.
If you look at the code in the file watcher plugin (If you're using the sample File Watcher plugin we ship with?), you'll see the conditions around moving a file to the succeeded folder - it should be fairly easy to work out why this is occurring for you and seemingly not processing.
Mike