magnus byne [https://community.jboss.org/people/magnusb] created the discussion

"How to set the maxSession for an MDB at runtime in JBoss 7?"

To view the discussion, visit: https://community.jboss.org/message/717292#717292

--------------------------------------------------------------
In JBoss 5.1 I was able to have an ejb-jar.xml that referenced a system 
property for setting the maxSessions for an MDB. But in JBoss AS 7, if I use a 
variable the setting is not applied.
This is a problem as the ejb-jar.xml is compiled into the ear file, and I need 
to be able to set this value as runtime. Is there a way to set the maxsessions 
for an MDB in jboss as 7 at run time?

e.g. working config in jboss 5.1:

<ejb-jar xmlns=" http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee"; xmlns:xsi=" 
http://www.w3.org/2001/XMLSchema-instance 
http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee  
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";
          version="3.0">
          <description>Deployment descriptor</description>
          <enterprise-beans>
                    <message-driven>
                              <ejb-name>WorkerMdb</ejb-name>
                              
<messaging-type>javax.jms.MessageListener</messaging-type>
                              
<message-destination-type>javax.jms.Queue</message-destination-type>
                              <activation-config>
                                        <activation-config-property>
                                                  
<activation-config-property-name>maxSession</activation-config-property-name>
                                                  
<activation-config-property-value>*${worker.threads:8}*</activation-config-property-value>
                                        </activation-config-property>
                              </activation-config>
                    </message-driven>
          </enterprise-beans>
</ejb-jar>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/717292#717292]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to