JBoss EAP 6.2 - ejb pool strange behavior
lmrowka Jun 1, 2014 11:24 AMHello,
I try to set pool for slsb in my jboss eap 6.2.
My pool configuration:
<session-bean> <stateless> <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/> </stateless> <stateful default-access-timeout="5000" cache-ref="simple"/> <singleton default-access-timeout="5000"/> </session-bean>
<pools> <bean-instance-pools> <strict-max-pool name="slsb-strict-max-pool" max-pool-size="1" instance-acquisition-timeout="1" instance-acquisition-timeout-unit="MINUTES"/> <strict-max-pool name="mdb-strict-max-pool" max-pool-size="1" instance-acquisition-timeout="1" instance-acquisition-timeout-unit="MINUTES"/> </bean-instance-pools> </pools>
For tests i create simple servlet and simple ejb
Servlet:
@EJB TestEJB testEJB; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { testEJB.test(); }
EJB:
@Stateless @LocalBean public class TestEJB { public void test() { System.out.println("test"); } }
but when i check pool by jboss-cli:
[standalone@localhost:19999 /] /deployment=LajtTest.ear/subdeployment=LajtTestEJB.jar/subsystem=ejb3/stateless-session-bean=TestEJB:read-resource(include-runtime=true)
{
"outcome" => "success",
"result" => {
"component-class-name" => "TestEJB",
"declared-roles" => [],
"execution-time" => 57L,
"invocations" => 62L,
"methods" => {"test" => {
"execution-time" => 57L,
"invocations" => 62L,
"wait-time" => 0L
}},
"peak-concurrent-invocations" => 1L,
"pool-available-count" => 1,
"pool-create-count" => 62,
"pool-current-size" => 62,
"pool-max-size" => 1,
"pool-name" => "slsb-strict-max-pool",
"pool-remove-count" => 0,
"run-as-role" => undefined,
"security-domain" => "jbank-detal",
"timers" => [],
"wait-time" => 0L
}
}
Strange value in "pool-current-size".
What is wrong with my configuration??? or this is normal ??
Thanks for help