Probably what's happening is you have multiple JSPs that the browser
might request for at the same time (they're in a frameset or something?)
and they both use an EJB that's kept in the session.
The easiest thing to do would be to put a synchronized block around your
accesses of that EJB:
BeanRemoteInterface ejb = session.getAttribute("ejb");
synchronized (ejb) {
ejb.doFoo();
}
You could also wrap the EJB in a plain JavaBean that does this.
-danch
Papo Napolitano wrote:
> I'm using Jboss 2.4.2 with Tomcat and sometimes I get this error when I call
> a method in a Bean.
>
> How can I do to solve this problem ??
>
> [EmbeddedCatalinaServiceSX] StandardWrapperValve[jsp]: Servlet.service() for
> servlet jsp threw exception
> java.rmi.RemoteException: Application Error: no concurrent calls on stateful
> beans
> <<no stack trace available>>
>
> I've tested and appears only sometimes..... I cannot detect the exact error.
>
> Regards,
>
> Papo
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user