Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Re: flush-mode=

scott.stark@jboss.org

2007-08-10


"rmemoria" wrote : Hi,
|
| I have a workaround for that until it's not implemented in SEAM.
|
| I created a bean like that:
|
| package com.rmemoria.utils;
|  |
|  | import org.jboss.seam.annotations.FlushModeType;
|  | import org.jboss.seam.annotations.In;
|  | import org.jboss.seam.annotations.Name;
|  | import org.jboss.seam.core.Conversation;
|  |
|  | @Name("beginConversationEvent")
|  | public class BeginConversationEvent {
|  |
|  |  @In
|  |  private Conversation conversation;
|  |  
|  |  public void setFlushModeManual() {
|  |    conversation.changeFlushMode(FlushModeType.MANUAL);
|  |  }
|  | }
|
| And in components.xml include the following line:
|
| <event type="org.jboss.seam.beginConversation">
|  |         <action expression="#{beginConversationEvent.setFlushModeManual}" />
|  | </event>
|
| So every long running conversation you start will be flush-mode=manual.
|
| regards,
| Ricardo

Thanks, very good workaround.i will implement it myself too.
Best regards

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073153
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.