Results 1 to 2 of 2
  1. #1
    javakt is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default stateful session bean pool size

    I am going through session bean material.i have doubts regarding below oints :-

    1) do we mention the pool size for a specific bean or is it collective for all session bean in application?

    2) lets say we mentioned the pool size as 50 for some statful session bean. Different 50 clients use them .
    so now all the 50 beans maintain some state. At what point of time will these states be removed so that
    if 51th clien ask for bean it does not get any previous spoilt state.?

    3) lets say we mentioned the pool size as 50 for some stateless session bean and all are in use at some
    point of time. If 51th client comes and ask for a bean, will that wait till some bean become free
    or create new bean instance?

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    1.) You configure different pool sizes per different bean.
    2.) When a method annotated with @Remove is called.
    3.) The pool size constaint will not be vialoted

Similar Threads

  1. [SOLVED] Invoking a Stateful Session Bean as Stateless
    By JThangiah in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 07-17-2008, 09:35 AM
  2. Stateful Session Bean
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-29-2007, 12:39 PM
  3. Calling a Stateful Session bean in NetBeans
    By JavaForums in forum NetBeans
    Replies: 0
    Last Post: 07-31-2007, 09:21 AM
  4. Introduction to Stateful Session Bean In NetBeans
    By JavaForums in forum NetBeans
    Replies: 0
    Last Post: 07-31-2007, 09:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •