Single Threaded MDB on Glassfish

后端 未结 1 712
南方客
南方客 2021-01-15 06:09

I have a number of MDBs running on Glassfish 3.1.2.2. Due to the nature of work on one of the MDBs I need to make it single threaded. I looked at the Tuning Guide, and while

1条回答
  •  孤城傲影
    2021-01-15 06:42

    That's easy to achieve via the glassfish-ejb-jar.xml deployment descriptor:

    
      
        
          YourMDB
          
            1
            1
            1
          
        
      
    
    

    The above section will limit the number of processing beans to strictly 1, regardless of what the global poolsize says. That way you can easily finetune the system setup.

    0 讨论(0)
提交回复
热议问题