Olga Wsdf

Greenhorn
+ Follow
since Jun 21, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Olga Wsdf

I try to describe my environment shortly. Technologies: EJB 3.1, JSF, JBoss 7.1.1

There are Servise-classes (@SessionScoped @Stateful). Servise-classes call Dao classes (@Stateless)

I want :
- use EntityManager only into @StateLess beans (Dao)
- have short transaction in most cases (like persist, merge)
- have one long transaction for some multistep-methods (methods are in Dao also)
- have actual (up to date, without first-level cache) data[

I have: Pesistense.xml


Dao

Problem: If it is throw an Exception into Dao method, part data will save in DB instead of total rollback.

I think, is need Join Transaction to EM. Or disconnect persists each item to the DB right away (using cache). I've try different ways, but didn't have success.

Thanks for in advance!