I'm trying to use a LocalStatelessSessionProxyFactoryBean to advise methods in an ejb.
Basically I want to be able to retry the ejb method should it fail for a specific reason.
This is what i'm doing ( i think this is a fairly reasonable way of doing it, but please correct me if wrong..) :
but then it barfs when I try to cast back to the JobLocal.
LocalStatelessSessionProxyFactoryBean bean = new LocalStatelessSessionProxyFactoryBean();
logger.error("e=" + e.getMessage());
Object proxy = bean.getObject();
TransactionFailureInterceptor i = new TransactionFailureInterceptor();
ProxyFactory factory = new ProxyFactory(JobLocal.class);
Object p1 = factory.getProxy();
I'm possibly doing something dull here... and if someone could point it out I'd be really really grateful. thanks in advance!