I have an application which start a new conversation like hibernate hotel booking example. It works fine with one user online. However, if there are more than one user using the application, it will occasionally happen an exception says:
begin method invoked from a long-running conversation, try using @Begin(join=true) on method: selectSnackShop
I have tried use
/** * If false (the default), invocation of the begin * method in the scope of an existing conversation * will cause an exception to be thrown. */ boolean join() default false;
So, I think whether the hibernate hotel booking example have the same problem.
If a user select a hotel(it start a conversation), however it click a back button, and then select another hotel. So there is an conversation existed and the problem happen? I have tried this. but don't seen the problem.
So when to use