-
1. Re: How to Configure Bean Pools for Session and Message-Driven Beans using the Management Console and the CLI tool for Jboss EAP 7.0 and Jboss AS 6.1.0.Final
hareeshmd Oct 18, 2016 3:55 AM (in response to hareeshmd)Please any one can responce for this..
How I need same solution for both Jboss EAP 7.0 and Jboss AS 6.1.0.Final
-
2. Re: How to Configure Bean Pools for Session and Message-Driven Beans using the Management Console and the CLI tool for Jboss EAP 7.0 and Jboss AS 6.1.0.Final
hareeshmd Oct 20, 2016 5:16 AM (in response to hareeshmd)I found this solution but @pool is annotation based Jboss specific one
import org.jboss.ejb3.annotation.Pool;
import org.jboss.ejb3.annotation.defaults.PoolDefaults;
@Stateless
@Pool (value=PoolDefaults.POOL_IMPLEMENTATION_STRICTMAX,maxSize=5,timeout=1000)
@Remote(StrictlyPooledSession.class)
public class StrictlyPooledSessionBean implements StrictlyPooledSession
{
...
}
XML:
<?xml version="1.0" encoding="UTF-8"?>
<aop xmlns="urn:jboss:aop-beans:1.0">
<domain name="Strictly Pooled Stateless Bean" extends="Stateless Bean" inheritBindings="true">
<annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
@org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=5, timeout=10000)
</annotation>
</domain>
<domain name="Strictly Pooled Message Driven Bean" extends="Message Driven Bean" inheritBindings="true">
<annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">
@org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=5, timeout=10000)
</annotation>
</domain>
</aop>
Found in Link: http://docs.jboss.org/ejb3/docs/reference/1.0.7/html/SessionBean_and_MDB_configuration.html
Please suggest Above explained annotation based is this right way to Implement and use strictMaxPool or NOT?
If it's not Right way then How I can configure the same strictMaxPool throught the xml file or configuration Files or In annotation base is this right way?
-
3. Re: How to Configure Bean Pools for Session and Message-Driven Beans using the Management Console and the CLI tool for Jboss EAP 7.0 and Jboss AS 6.1.0.Final
ctomc Oct 20, 2016 7:17 AM (in response to hareeshmd)AS 6.1 and EAP 7.0? You sure about that?
you know that there are 4 major versions of application server apart?
AS6.1 -> AS7 --> WildFly 8, --> WildFly 9 --> WildFly 10 --> JBoss EAP 7.0
If we don't count all minors and micros.
There is no support for AOP in AS7 and newer. At least not as integral part of the sever as it was in AS5 and AS6.
-
4. Re: How to Configure Bean Pools for Session and Message-Driven Beans using the Management Console and the CLI tool for Jboss EAP 7.0 and Jboss AS 6.1.0.Final
hareeshmd Oct 20, 2016 1:51 PM (in response to ctomc)Hi Tomaz cerar,
Actually I posted AOP based one for - Jboss EAP 7.0
Found in Link: http://docs.jboss.org/ejb3/docs/reference/1.0.7/html/SessionBean_and_MDB_configuration.html
Actually current application/system running in Jboss AS 6.1.0 so I need for this.
Future we are going to upgrade from Jboss AS 6.1.0 to Jboss EAP 7.0 so I need configuration details for Bean pool and Meassage-Driven Beans through XML
So, I need for Both.