• 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

MDBs with Oracle App Server - max instances

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a question about using MDBs with Oracle 10g application server.
I want the server to use only 1 MDB instead of multiple instances. So just by setting max-instances =1 for that MDB is fine? Or would server create multiple instaces of MDBs if needed?

also, anyone knows how does setting max-instances in orion-ejb-jar.xml differs from setting "activation-config-property" - "receiverThreads"?

----------
From - http://www.oracle.com/technology/tech/java/oc4j/1013/whitepapers/OC4J-EJB-FAQ-101300.pdf

How can I have multiple instances of an MDB, so that the messages on the bean its listening location are processed in parallel?

You can set pooling for MDB by using min-instances, max-instances attributes in orion-ejb-jar.xml.Also you can set listener-threads to a number higher than 1 to have multiple instances of MDBs listening tolocations in parallel. You can set an activation configuration property receiverThreads for MDBs that uses aJMS provider using JCA Resource Adapter
----------
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic