File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes MDBs with Oracle App Server - max instances Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "MDBs with Oracle App Server - max instances" Watch "MDBs with Oracle App Server - max instances" New topic

MDBs with Oracle App Server - max instances

Amit Athavale

Joined: Mar 31, 2003
Posts: 29
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 -

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
I agree. Here's the link:
subject: MDBs with Oracle App Server - max instances
It's not a secret anymore!