Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OID for stateless session bean  RSS feed

 
Prasad Kuppa
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am reffering to the Object Interaction diagram described for stateless session bean in HF EJB page 227.
Is that right, if we say the bottom part of the diagram is what happens during the business method invocation time? ( replace " and at a completely different / unrelated time " with " during business method invocation time" ).
Please reply. Thanks in advance,
Prasad
 
Joe McIntyre
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the bottom part of the diagram should be when the container creates the Stateless Session Bean. The time of creation isn't related to anything the client does. The container could just create a bunch of stateless beans and put them into the pool. Then (see page 226), when somebody calls a stateless bean biz method, the container pulls one out of the pool to service the method call.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!