I tried delegating the call inside the class, but then spring seems to ignore the aop on it: eg:
Code:
//This is the public api method...
public AvailableMoneyWSResultTO getTheMoney(PlayerTO playerTO, PokerTableTO pokerTableTO) throws BrokerUnavailableException {
return getAvailableMoney(playerTO, pokerTableTO, null);
}
//This method makes the call and is configured to be wrapped by AOP
//But spring is ingoring this.
private AvailableMoneyWSResultTO getAvailableMoney(PlayerTO playerTO, PokerTableTO pokerTableTO, BrokerTransactionID id) throws BrokerUnavailableException {
....//implementation here
}