adding an own TransferListener

Any issue about installation and configuration of the Cyclos software

Moderators: hugo, alexandre, rmvanarkel

Post Reply
sedat.de
Posts: 30
Joined: Fri Jul 03, 2009 1:35 pm
Location: Germany

adding an own TransferListener

Post 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?
sedat.de
Posts: 30
Joined: Fri Jul 03, 2009 1:35 pm
Location: Germany

Re: adding an own TransferListener

Post 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.
admin
Site Admin
Posts: 1423
Joined: Mon Jan 24, 2005 10:31 am

Re: adding an own TransferListener

Post by admin »

Thanks for informing, good to hear it works
Post Reply