1 Reply Latest reply: Jan 19, 2012 9:52 AM by Andy Taylor RSS

MDB maxsession

vairam S Newbie

Hi,

 

How to define maxsession of MDX in XML, I have done as below, but i'm getting the exception.

xml filename: Report-aop.xml

<?xml version="1.0" encoding="UTF-8"?>

<aop xmlns="urn:jboss:aop-beans:1.0">

  

   <domain name="Strictly Pooled Stateless Bean" extends="Message Driven Bean" inheritBindings="true">

      <annotation expr="!class(@org.jboss.ejb3.annotation.Pool)">

          @org.jboss.ejb3.annotation.DefaultActivationSpecs (value={@javax.ejb.ActivationConfigPropertypropertyName="destinationType", propertyValue="javax.jms.Queue"),@javax.ejb.ActivationConfigProperty(propertyName="destination", propertyValue="queue/ReportQueue"),@javax.ejb.ActivationConfigProperty(propertyName="maxSession", propertyValue="5")})

        

      </annotation>

   </domain>

</aop>

 

Exception:

Kindly view the attachment

 

Thanks in advance.