Forums Register Login

Breaking up transaction in EJB's

+Pie Number of slices to send: Send
I am looking for a pattern where an Stateless Session Bean break up a large transaction into multiple transactions and allow the broken up transactions to be executed simultaneously. I am sure this is common problem to speed up the execution of a single large transaction. Is there a J2EE pattern or EJB pattern for it. Since EJB's can't create threads, I am wondering how can this be handled?

Suggestions appreciated. Thanks,
Ahmed
+Pie Number of slices to send: Send
Hello Ahmed,

I am brainstorming here so I am not sure if this would work, but what about using MDB the returns confirmation if sub-transactions succeed.
so the main EJB starts sending messages to different MDBs and check the confirmation of each.

but this sounds like your EJB will be doing a lot of management on its own, in other words you won't utilize services provided by the container properly like transactions. Don't you think?
+Pie Number of slices to send: Send
Thank you Musab,

I thought ejb might provide out of box solution, but probably not so. In case your solution I would have to build message.How would I get confirmation from mdbs unless mdbs send the confirmation back on bus and another mdb listens to it and somehow notified the master sslb. This sounds a lot of work to solve what I think is common problem.

I was looking into worker manager Api. It could very well solve this problem but I am still checking into it.

Any other suggestions, appreciate it.

Thanks
Ahmed
+Pie Number of slices to send: Send
Sorry, nothing that I can think of.
Please give us hints on this topic if you find anything.

Thanks
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 847 times.
Similar Threads
Can EJB's be used in this situation?
ejb & pojo transactions
Transactions
Can EJBActions be used for application client
Architectural Evolution with Entity Beans
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:23:58.