Hi ..
I developed a message driven bean YYY , but i want the JBoss to create 3 instance of YYY
when the server starts up !?
I edited jboss.xml
I put inside jboss.xml:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<message-driven>
<ejb-name>YYY</ejb-name>
<destination-jndi-name>queue/YYY</destination-jndi-name>
<configuration-name>MyConf</configuration-name>
</message-driven>
</container-configurations>
<container-configuration>
<container-name>MyConf</container-name>
<call-logging>false</call-logging>
<invoker-proxy-binding-name>message-driven-bean</invoker-proxy-binding-name>
<container-interceptors>
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
org.jboss.ejb.plugins.LogInterceptor
org.jboss.ejb.plugins.RunAsSecurityInterceptor
<!-- CMT -->
org.jboss.ejb.plugins.TxInterceptorCMT
org.jboss.ejb.plugins.CallValidationInterceptor
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
<!-- BMT -->
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
org.jboss.ejb.plugins.CallValidationInterceptor
org.jboss.ejb.plugins.MetricsInterceptor
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
</container-interceptors>
<instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
<instance-cache></instance-cache>
<persistence-manager></persistence-manager>
<container-pool-conf>
100
3
</container-pool-conf>
</container-configuration>
</container-configurations>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I put some println() statements inside YYY.ejbCreate
but when the server starts up, the server does not print any thing so i does not create any instances in the pool.
I use JBoss 4.0.1, and Linux and Java 1.5
is there any configurations missing or wrong.
could you help
//////////////////////////////////////////////////////////////////////////////////
Thank you
JBoss does not have this capability, the beans are created on demand.
The minimum is only used to make sure that the pool size does not drop below the minimum.