This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: Control MDB maxSession dynamically/programmatically?clebert.suconic Jun 6, 2011 12:00 PM (in response to kennardconsulting)1 of 1 people found this helpfulThat's an EJB question. But I don't think so. 
- 
        2. Re: Control MDB maxSession dynamically/programmatically?kennardconsulting Jun 7, 2011 11:45 PM (in response to clebert.suconic)Clebert, Okay cool. It appears I can get 'close enough' by using some JBoss EL in ejb-jar.xml: 
 <message-driven>
 <ejb-name>LongRunningProcessConsumerBean</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>${some.command.line.variable:2}</activation-config-property-value>
 </activation-config-property>
 </activation-config>
 </message-driven>And then some Unix scripting to set that variable during run.sh. Regards, Richard. 
 
    