Hide Forgot
Title: Stateless Session Beans Describe the issue: JBoss-specific extensions to the EJB 3.1 specification should be documented. There is for example the possibility to assign a stateless EJB to a particular bean pool. Suggestions for improvement: Add instructions how to assign a bean pool to a stateless EJB, that is using the @org.jboss.ejb3.annotation.Pool annotation, like this: @Stateless @Pool("myAwesomePool") public class HelloBean implements HelloBeanRemote { public HelloBean() { } @Override public String hello(String name) { return "Hello, " + name; } } Also please mention that the @Pool annotation is part of the JBoss EJB3 external API and must be added as a dependency, with Maven you can do it this way: <dependency> <groupId>org.jboss.ejb3</groupId> <artifactId>jboss-ejb3-ext-api</artifactId> <version>2.1.0</version> </dependency> Bean pools are discussed in the Admin guide (http://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6.2/html/Administration_and_Configuration_Guide/sect-Configuring_Bean_Pools.html) so it would also be useful to add a link to it.
I almost forgot, exactly the same goes for message driven beans, except the annotation will just be applied to a message driven bean declaration. No other difference.
Verified in Admin guide 6.4-en-US-6.4.0-35, thanks!