• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setting session bean's pool size for jbossjboss-4.0.3RC1

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to define a pool size of stateless session beans instances for jboss-4.0.3RC1 application server? if yes in which jboss configuration file i have to made that change and what change i have to make?

if somebody has good pdf regarding the jboss-4.0.3RC1 please send me the link
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's a file named standardjboss.xml in %JBOSS_HOME%/server/default/conf folder which has the following entry. Try changing the value to whatever pool size you want. I havent tried this before and am not sure whether this is going to work. Give it a try.


[ May 01, 2007: Message edited by: Jaikiran Pai ]
 
jinesh parikh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the reply kiran.

i want to know if i want to create certain session beans objects when the application server starts up which jboss file should i changed ?i am using the jboss4.0.3
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I havent tried that before. Could you explain more about your usecase? Why are you trying to create session beans when the server is starting?
 
jinesh parikh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks kiran for your reply.
currently i am learing ejb so i am doing various kinds of r&d.i am trying to create an example,in which i could create 10 session beans on startup of application server(jboss-4.0.3.RC1)
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See the thing is, that is what an EJB Container is there for, and that a developer should not ever want or need to deal with. The Container is responsible for creating instances of EJBs, not the developer. You cannot instantiate a Bean and get all the hooks that is needed for things like Security, and Proxy object, and such.

So, as to your question, no you cannot create "10" session beans at startup. If you set your min size of the pool to 10, then you will have 10 session beans created at App Server startup, all created for you without any extra coding needed.

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic