Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Is it possible to rollback take operation?

I have the following code snippet. I read that after exception occurred space rollbacks all event operation. I tried to simulate exception after take(), but taken object didn't return into the space. How can I do that? How can I make object to rollback into the space?

@SpaceDataEvent
    public void eventListener(TestFifo t) {
        TestFifo testFifo = gigaSpace.takeById(TestFifo.class, t.getId());        
    }

asked 2017-09-26 05:41:21 -0600

vladi gravatar image
edit retag flag offensive close merge delete

Comments

@EventDriven @Notify(fifo = true) @TransactionalEvent public class SimpleListener {

class for this method

vladi gravatar imagevladi ( 2017-09-26 06:19:30 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

Hi, When using transnational event transaction should be rolled back in case of a problem,rolling back the listener operations together with the receive operation, please report a support case if possible to investigate the problem in your specif scenario, otherwise please attach your test project here.

Regards, Ester.

answered 2017-09-27 02:00:21 -0600

Ester gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-09-26 05:41:21 -0600

Seen: 629 times

Last updated: Sep 27