[jboss-user] [JBoss Seam] - Seam 2.0 beat few questions

Kruno do-not-reply at jboss.com
Wed Jul 4 08:30:14 EDT 2007

First could someone please explain why there is no more annotation @Rollback(ifOutcome..)
and if I am relaying on seam managed transactions, and Flush=MANUAL, em.flush() for commit. 
How can I rollback transaction even after em.flush() but before thread exits method:

  | @Rollback(ifOutcome="NOT")
  | public String save(Entity entity){
  |           kontrol(entity);
  |      if(!error){
  |         em.persist(entity);
  |         em.flush();
  |     }
  | .....
  |   doSomeThingElse();
  | ...
  |   if(error) return "NOT"
  | {

2. I know there was some talk about adding default option in configuration files  flush=MANUAL, so one does not need to specify it every time. Is it going to happened? I would like it very much :)

3. And perhaps a small request if it is not too much trouble.
In pageflows it would be great if one could send component from conversation as a parameter when invoking expression.
some thing like this:

  | <decision name="action_1" expression="#{sfsb.save(entity)}">
  | 	<transition name="OK" to="katalog"/>
  | 	<transition name="NOT" to="katalog"/>
  | 	</decision>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060423#4060423

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060423

More information about the jboss-user mailing list