[jboss-user] [EJB3] - Re: Set "maxSession" of an MDB using XML instead of Annotations
Hushen Savani
do-not-reply at jboss.com
Tue Dec 6 00:57:30 EST 2011
Hushen Savani [http://community.jboss.org/people/hushen.savani] created the discussion
"Re: Set "maxSession" of an MDB using XML instead of Annotations"
To view the discussion, visit: http://community.jboss.org/message/639955#639955
--------------------------------------------------------------
Hi,
Finally, I have found the solution of the above problem.
I have created a *{****}-aop.xml* file as following :
<?xml version="1.0" encoding="UTF-8"?>
<aop xmlns="urn:jboss:aop-beans:1.0">
<domain name="*ProcessingEntitiesQueueListenerMDB*" extends="Message Driven Bean" inheritBindings="true">
<annotation expr="!class(@org.jboss.ejb3.annotation.DefaultActivationSpecs)">
@org.jboss.ejb3.annotation.DefaultActivationSpecs (value={@javax.ejb.ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"), @javax.ejb.ActivationConfigProperty(propertyName="destination", propertyValue="queue/mocmProcessingQueue"), @javax.ejb.ActivationConfigProperty(propertyName="*maxSession*", propertyValue="*20*")})
</annotation>
</domain>
</aop>
and have placed the same file in deploy dir.
And the annotations in Message Driven Bean has been set as following:
@*+MessageDriven+*
@*+AspectDomain("ProcessingEntitiesQueueListenerMDB")+*
+ at ResourceAdapter("hornetq-ra.rar")+
public class ProcessingEntitiesQueueListenerMDB extends MessageServiceListenerSessionBase implements MessageListener {
........
.......
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/639955#639955]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111206/250a3433/attachment.html
More information about the jboss-user
mailing list