Hey,

> I am developing a web application, in which the web tier is 
> creating a 
> Stateful Session bean for each user, and invoking methods on 
> it for all 
> business logic.
> 
> Problem is, part of my web application requires framesets, and each 
> frame pane needs to invoke methods on the session bean. When 
> two frames 
> simultaneously load, and their corresponding JSP pages simultaneously 
> try to invoke methods on the same session bean, one of them 
> fails with a 
> "TRANSACTIONS ROLLED BACK EXCEPTION", having to do with being called 
> from the wrong transaction context.
> 
> I know that this is the correct behavior per the EJB spec, 
> but what I am 
> wondering is, can I configure jBoss to block the second call 
> until the 
> first call is done, rather than instantly throw an exception?

This has been discussed, and it is not trivial to achieve. 
For now JBoss is strictly spec compliant, and there is no such configuration
option.
Bear in mind that if you code with such an option available, your ejbeans
would not be portable among different application servers.

Simon

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to