/* (non-Javadoc)
* @see org.springframework.transaction.support.TransactionCallback#doInTransaction(org.springframework.transaction.TransactionStatus)
*/
public Object doInTransaction(TransactionStatus status) {
List result = (List) template.executeStateful(URI, null, new StatefulRuleSessionCallback() {
public Object execute(StatefulRuleSession session) throws InvalidRuleSessionException, InvalidHandleException, RemoteException {
browserHandle = session.addObject("Gecko");
session.executeRules();
return session.getObjects();
}
});
result = (List) template.executeStateful(URI, null, new StatefulRuleSessionCallback() {
public Object execute(StatefulRuleSession session) throws InvalidRuleSessionException, InvalidHandleException, RemoteException {
session.removeObject(browserHandle);
session.addObject("MSIE");
session.executeRules();
return session.getObjects();