I see that there has been quite a bit of discussion around stopping and 
starting conversations.  I have a similiar problem in that I don't want to nest 
conversations but stop one conversation and begin another.  

Some further info...

I have two views (one views a Property and another a Tenant).
Backing each view are two Seam conversation-scoped stateful session beans.
The Property view has a list of Tenants with hyperlinks to edit the
Tenant details.
The way I want it to work is that when they click on the Tenant link,
the Property conversation should end and a new conversation begins
for the Tenant view.

What is the recommended way to link between two views; being able
to end one conversation and start another?

I have tried to implement it by calling an action on the Property session bean
which in turn invokes a method on the Tenant session bean.  I have added
@End and @Begin to these methods but I get a error to say that there is
already a conversation in progress.



  | // method in the Property session bean
  | @End
  | public String viewTenant() {
  |     // the tenant populated using a DataModelSelection
  |     Locator.getInstance().getTenantManager().selectTenant(tenant);
  |     return "viewTenant";
  | }
  | 
        
        

  | // and in the Tenant session bean
  | @Begin
  | public void selectTenant(Tenant tenant) {
  |     this.tenant = tenant;
  |     initTenant();
  | }
  | 

Thanks 
Caron           
        

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to