Using FileSystemEventStore to store aggregate events

Hi All,

I'm trying to use FileSystemEventStore to store events, but no matter
how I set the basedir, it keeps complaining about not finding the
folder. When I set basedir to '/config' and store Company aggregate
events, it complains with message 'class path resource [config/
Company/] cannot be resolved to URL because it does not exist', even
after I put '/config' folder in the classpath. The same goes when I
put an absolute path like '/home/user/Desktop' etc.

Any help would be greatly appreciated.

Thanks & Regards,

Setya

Hi,

Did you try adding a trailing slash? There is an issue/feature in Spring's Resource. I am working around it in the next version.

Cheers,

Allard

Oh, and also add "file:" in front of the url to indicate that the url is to be found on the filesystem (it defaults to classpath).

Allard

Allard,

Adding 'file:' solves the problem.

Thanks & Regards,

Setya