Page 1 of 1

adding an own TransferListener

Posted: Mon Mar 25, 2013 1:15 pm
by sedat.de
I am running Cyclos 3.7.3 and would like to add my own JavaClass to handle one of my transfer types.

Very close to your example at http://www.cyclos.org/wiki/index.php?ti ... ion_points
I implemented a file NoOverdrawTransferListener.java, compiled it to NoOverdrawTransferListener.class and put it into a jar-File which I copied to WEB-INF/classes as described in your example.

But still, my class is not known to the system. Even after removing the cache (work/Catalina/server/cyclos) and restarting Tomcat, when I try to spefify the new class to 'Invoke Java Class' within the specification of the transaction, I get the error message:

Invoke Java class should be a valid java class name assignable to nl.strohalm.cyclos.entities.accounts.transactions.TransferListener

What am I missing?
Do I have to register the new Class at some place to the system?

Re: adding an own TransferListener

Posted: Mon Mar 25, 2013 1:25 pm
by sedat.de
sorry - I noticed only now, that I should not put a jar-File with the new class to the classes directory but only the compiled Java '.class' file.

Things worked now.

Re: adding an own TransferListener

Posted: Mon Mar 25, 2013 3:45 pm
by admin
Thanks for informing, good to hear it works