Can't limit pool size of EJBs with inheritBindings="true"

Solution Verified - Updated -

Issue

We are trying to limit the pool for some EJBs in one of our applications using XML descriptors but cannot seem to get the configuration correct to do so.  We have tried the following

<domain name="Strictly Pooled My Stateless Bean 1" extends="Stateless Bean" inheritBindings="true">
  <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
    @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=10, timeout=0)
  </annotation>
</domain>

Environment

  • JBoss Enterprise Application Platform 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content