From do-not-reply at jboss.org Thu Jun 3 10:19:27 2010
Content-Type: multipart/mixed; boundary="===============8994188090498002451=="
MIME-Version: 1.0
From: do-not-reply at jboss.org
To: hornetq-commits at lists.jboss.org
Subject: [hornetq-commits] JBoss hornetq SVN: r9291 -
trunk/docs/user-manual/en.
Date: Thu, 03 Jun 2010 10:19:26 -0400
Message-ID: <201006031419.o53EJQG5006413@svn01.web.mwc.hst.phx2.redhat.com>
--===============8994188090498002451==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: ataylor
Date: 2010-06-03 10:19:26 -0400 (Thu, 03 Jun 2010)
New Revision: 9291
Modified:
trunk/docs/user-manual/en/appserver-integration.xml
Log:
added pooling section for Resource Adaptor
Modified: trunk/docs/user-manual/en/appserver-integration.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/docs/user-manual/en/appserver-integration.xml 2010-06-03 14:03:57=
UTC (rev 9290)
+++ trunk/docs/user-manual/en/appserver-integration.xml 2010-06-03 14:19:26=
UTC (rev 9291)
@@ -283,6 +283,29 @@
EJBs (including Session, Entity and Message-Driven Beans), Ser=
vlets (including jsps) and
custom MBeans.
+
+ MDB and Consumer pool size
+ Most application servers, including JBoss, allow you to config=
ure how many MDB's there are in a pool. In
+ Jboss this is configured via the MaxPoolSize p=
arameter in the ejb3-interceptors-aop.xml file. Configuring
+ this has no actual effect on how many sessions/consumers there ac=
tually are created. This is because the Resource
+ Adaptor implementation knows nothing about the application servers M=
DB implementation. So even if you set the MDB
+ pool size to 1, 15 sessions/consumers will be created (this is th=
e default). If you want to limit how many
+ sessions/consumers are created then you need to set the =
maxSession parameter either on the
+ resource adapter itself or via an an Activation Config Property on t=
he MDB itself
+ @MessageDriven(name =3D "MDBMessageSendTxExample",
+ activationConfig =3D
+ {
+ @ActivationConfigProperty(propertyName =3D "destin=
ationType", propertyValue =3D "javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName =3D "destin=
ation", propertyValue =3D "queue/testQueue"),
+ @ActivationConfigProperty(propertyName =3D "maxSes=
sion", propertyValue =3D "1")
+ })
+(a)TransactionManagement(value=3D TransactionManagementType.CONTAINER)
+(a)TransactionAttribute(value=3D TransactionAttributeType.REQUIRED)
+(a)ResourceAdapter("hornetq-ra.rar")
+public class MyMDB implements MessageListener
+{ ....}
+
+
Configuring the JCA Adaptor
The Java Connector Architecture (JCA) Adapter is what allows=
HornetQ to be integrated
--===============8994188090498002451==--