a stateless sessionbean with an instance counter writes the following 
lines to the console:

first run:


17:50:25,231 INFO  [STDOUT] [-1] new
17:50:25,252 INFO  [STDOUT] [-1] setSessionContext 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl@558939
17:50:25,254 INFO  [STDOUT] [1] create
17:50:25,257 INFO  [STDOUT] 1 message: remote test
17:50:25,259 INFO  [STDOUT] [-1] new
17:50:25,261 INFO  [STDOUT] [-1] setSessionContext 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl@4a7df6
17:50:25,262 INFO  [STDOUT] [2] create
17:50:25,263 INFO  [STDOUT] [-1] new
17:50:25,264 INFO  [STDOUT] [-1] setSessionContext 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl@13df2c
17:50:25,266 INFO  [STDOUT] [3] create

[...]

17:50:29,887 INFO  [STDOUT] [-1] new
17:50:29,888 INFO  [STDOUT] [-1] setSessionContext 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl@7918f0
17:50:29,888 INFO  [STDOUT] [98] create
17:50:29,897 INFO  [STDOUT] [-1] new
17:50:29,898 INFO  [STDOUT] [-1] setSessionContext 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl@546dbc
17:50:29,898 INFO  [STDOUT] [99] create
17:50:29,900 INFO  [STDOUT] [-1] new
17:50:29,901 INFO  [STDOUT] [-1] setSessionContext 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl@708ed8
17:50:29,901 INFO  [STDOUT] [100] create
17:50:29,902 INFO  [STDOUT] [-1] new
17:50:29,902 INFO  [STDOUT] [-1] setSessionContext 
org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl@322bce
17:50:29,903 INFO  [STDOUT] [101] create


-> 101 instances have been created! although default poolsize is 100


second run:

17:53:46,416 INFO  [STDOUT] 101 message: remote test

-> current poolsize seems to be 101 and the last instance from the pool 
seems to be used


further runs:

17:53:51,902 INFO  [STDOUT] 100 message: remote test
17:53:56,389 INFO  [STDOUT] 100 message: remote test
17:53:59,775 INFO  [STDOUT] 100 message: remote test

-> the last instance from the pool seems to be used, but the pool size 
was shrinked to 100 instances.


maybe the loop, that populates the pool, iterates once too often!? didn't 
look into the code, because I currently don't have the time, sorry!


holger



_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to