• Post Reply Bookmark Topic Watch Topic
  • New Topic

simply specify how to set for ejb

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. how to specify how many instances to pool at deployment time?
2. how to specify the limited time within which a CMT bean transaction must finish?
3. how to specify the limited time within which a BMT bean transaction must finish?
4. how to specify state timeout for stateful EJB, stateless EJB and entity EJB?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on which app server you are using. Most of them allow such information to be defined in properties file that will be used at runtime.
For BMT you can call setTransactionTimeout() on the UserTransaction instance.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!