[ 
https://issues.apache.org/jira/browse/GERONIMO-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562902#action_12562902
 ] 

Manu T George commented on GERONIMO-3783:
-----------------------------------------

Hi Tomaz,
                     One thing that you can check is whether the 
ActivationConfigProperties maxSessions and maxMessagesPerSessions are both set 
to 10. Actually the instanceLimit by default is 10 in geronimo for Mdbs and so 
only 10 instances of the same MDB exist. If you are rasing the instance limit 
to say 100 then raise both maxSessions and maxMessagesPerSessions (refer AMQ 
http://activemq.apache.org/activation-spec-properties.html) such that they are 
also 100 or <100. 
Both should be same i.e maxSessions == maxMessagesPerSessions <= instanceLimit.

The instance limit can be set via the system property Default MDB 
Container.InstanceLimit=125.
You can set it via the SystemPropertiesGbean or pass it during startup as a 
system property.

eg: usage (modify the config.xml )
Change
 <module name="org.apache.geronimo.configs/j2ee-server/2.0.1/car"/>

to
<module name="org.apache.geronimo.configs/j2ee-server/2.0.1/car">
<gbean gbeanInfo="org.apache.geronimo.system.properties.SystemProperties" 
name="org.apache.geronimo.configs/j2ee-server/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-server/2.0.1/car,j2eeType=GBean,name=CustomPropertiesGBean">
<attribute name="systemProperties">Default\ MDB\ 
Container.InstanceLimit=100</attribute>
</gbean>
</module>

Another thing to note is that you should provide enough threads to the RA. 
Atleast 100 free threads for 100  parallel Mdbs. So its recommended to increase 
the size of the server thread pool or provide a separate threadpool to the 
resource adapter that your Mdb uses.




> MessageDrivenBean delivery problem
> ----------------------------------
>
>                 Key: GERONIMO-3783
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3783
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: ActiveMQ
>    Affects Versions: 2.1
>         Environment: Windows XP Professional, 2GB ram, Java6SE, Geronimo 
> 2.1-snapshot (2008-01-02)
>            Reporter: Tomasz Mazan
>            Priority: Critical
>         Attachments: mdb-issue.zip
>
>
> MessageDrivenBean that listens on the Queue receive (and process) some 
> messages and then stop receiving any new message until next module's restart.
> After restart a few next messages are delivered to MDB, and it stops again.
> Some additional information I put here 
> http://www.nabble.com/Strange-plug-with-delivering-messages-to-MDB-td14923100s134.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to