What you miss is that SLSBs *can* have internal state, e.g. a cached datasource handle that they re-use to serve incoming requests.
Stateless is the interpretation from a client's point of view, so if a SLSB has 3 methods, a client should be able to call those methods on different bean instances, without that making any difference in the total outcome.
The single thread guarrantee of EJBs makes writing those beans easy, so you don't have to think about concurrency issues. It also scales well as the server will create as many SLBSs as they are needed to handle the load.
What you describe is a simple RMIServer singleton that must know how to deal with concurrent requests. That's a very different thing from EJBs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113305#4113305
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113305
Hi all,
We have a small test app which we are trying to load test using JMeter. Any experiences, suggestions in this area? We used JMeter on a Struts applications before, and we used the same recording technique on our Seam app, but was not able to replay the recorded scenario back. We get this
@In attribute requires non-null value:
message. The recording method we used was creating a Http Proxy on JMeter, testing our app manually, then replaying the scenario. We are on JBoss 4.2, Seam 2.0.
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113298#4113298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113298
"dimitris(a)jboss.org" wrote : No. A bean is always guaranteed to be called by one thread at any given point.
May be I'm wrong about SLSB because I'm not strong with EJB, but I really don't see any sense in this guarantee. If code hasn't internal state it is thread safe, so any constraints are exceeded, isn't it? Could you explain the sense of this guarantee or point me where I may read about this constraint?
Thanks in advance,
Dmitry Trunikov
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113292#4113292
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113292