why ejbCrete() for stateless sessionbeans

Discussions

EJB programming & troubleshooting: why ejbCrete() for stateless sessionbeans

  1. why ejbCrete() for stateless sessionbeans (1 messages)

    can u clear my doubt regarding stateless beans.that is why we need to write ejbCrete(),ejbRemove() methods for statless sesion beans,becaz the server is going to create the beans whenever there is requirement for beans

    Threaded Messages (1)

  2. Wrong assumption[ Go to top ]

    The EJB Container won't create SLSB on every request. Most likely, it will pool them.

    The ejbCreate() will be invoked when the bean is created, not everytime a client request a instance of it.