ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » JBoss MDB & Websphere MQ / Number of MDB instances

Post new topic  Reply to topic
 JBoss MDB & Websphere MQ / Number of MDB instances « View previous topic :: View next topic » 
Author Message
swissclash79
PostPosted: Thu Feb 11, 2010 7:36 am    Post subject: JBoss MDB & Websphere MQ / Number of MDB instances Reply with quote

Newbie

Joined: 11 Feb 2010
Posts: 5

Hello everybody

I am working on a project that uses Websphere MQ (version 6) in JBoss. There are some MDB's that get messages from different queues and process.

I successfully developped and integrated the MDB's in JBoss using the helpful wiki page IntegrationWithWebSphereMQSeries in jboss wiki.
Everything is working fine.

But there is a performance issues. The system processes too few messages. My first analysis shows that there are only 10 mdb instances that get the messages. How do I tell JBoss to create more instances?

My system is able to handle more load produced by more instances.

I am using JBoss 4.2.3 and Websphere MQ version 6.

Thank you for any help in advance
Best regards
Christian
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 11, 2010 7:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Presumably you configure the number of listener threads on the mdb listener.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 11, 2010 8:18 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mqjeff wrote:
Presumably you configure the number of listener threads on the mdb listener.


And if using client connections to MQ make sure to up the number of max channels/max active channels according to your needs.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
swissclash79
PostPosted: Fri Feb 12, 2010 3:17 am    Post subject: Reply with quote

Newbie

Joined: 11 Feb 2010
Posts: 5

mqjeff wrote:
Presumably you configure the number of listener threads on the mdb listener.


Thanks a lot for the quick answers!

@mqjeff
Where do I configure the number of listener threads in JBoss? Is there a speciall thread pool for that?

Best regards
Christian
Back to top
View user's profile Send private message
anilit99
PostPosted: Fri Feb 12, 2010 9:29 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2009
Posts: 75
Location: London, UK

I am not sure whether you are making use of the ejb3-interceptors-aop.xml to configure your mdbs, but thats the place you top up your connections.
Check for this node :
Code:
       <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
          @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=30, timeout=10000)
       </annotation>


cheers
_________________
"I almost care !"
Back to top
View user's profile Send private message
swissclash79
PostPosted: Mon Feb 15, 2010 1:59 am    Post subject: Reply with quote

Newbie

Joined: 11 Feb 2010
Posts: 5

anilit99 wrote:

Check for this node :
Code:
       <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
          @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=30, timeout=10000)
       </annotation>



Thank you for the tipp. I increased the maxSize value in the domain section "Message Driven Bean" but there was no improvement, unfortunatelly.

Best regards
Christian
Back to top
View user's profile Send private message
swissclash79
PostPosted: Mon Feb 15, 2010 8:02 am    Post subject: Reply with quote

Newbie

Joined: 11 Feb 2010
Posts: 5

Finally I found the solution myself.
In the activation config of the mdb itself there is a property called maxPoolDepth which defines the number of available mdb instances. But it is important that the aop-invoker has defined a suitable amount of threads to call those mdb instances.

Code:
<activation-config-property>
               <activation-config-property-name>maxPoolDepth</activation-config-property-name>
               <activation-config-property-value>20</activation-config-property-value>
            </activation-config-property>


Best regards
Christian
Back to top
View user's profile Send private message
anilit99
PostPosted: Mon Feb 15, 2010 8:19 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2009
Posts: 75
Location: London, UK

umm thats weird, because the config which I posted did the magic for me. Can you please explain your solution ?

thanks
Anil
_________________
"I almost care !"
Back to top
View user's profile Send private message
swissclash79
PostPosted: Tue Feb 16, 2010 5:23 am    Post subject: Reply with quote

Newbie

Joined: 11 Feb 2010
Posts: 5

@anilit99

I am a little bit confused right now. In which domain section did you increase the maxSize property? I did it in "Message Driven Bean".

I found the solution with the activation config property here:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj40080_.htm

What do I have to think about more, when I change the maxSize property?

Best regards
Christian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » JBoss MDB & Websphere MQ / Number of MDB instances
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.