I'm writing a webservice to an external system.
My service wrapper class has a number of methods which call all the soap interface of the webservice. The call can throw an exception which should then automatically trigger a reconnect to the webservice.
To handle that scenario I'd like to use AOP such that all methods which call the SOAP interface should be "wrapped" by an try/catch block. In the catch block the reconnect is done.
I'm not using Spring at the moment, so I'm thinking about introducing JBoss AOP. I need some advice if AspectJ or Spring AOP would be a better alternative.
Thanks.