Friday, November 9, 2012

start-mdbs-with-application

http://docs.oracle.com/cd/E17904_01/web.1111/e15493/summary.htm


"Controls when MDBs start processing messages. When set totrue, an MDB starts processing messages as soon as it is deployed, even if WebLogic Server has not completed booting. This can cause an MDB application to access uninitialized services or applications during boot up and, therefore, to fail. Set to false to defer message processing until after WebLogic Server opens its listen port."

In OSB, a ProxyService consuming messages from a JMS queue is deployed as a MDB. Its weblogic-application.xml is:


<?xml version='1.0' encoding='UTF-8'?>
<web:weblogic-application xmlns:web="http://xmlns.oracle.com/weblogic/weblogic-application">
  <web:ejb>
    <web:start-mdbs-with-application>false</web:start-mdbs-with-application>
  </web:ejb>
  <web:application-param>
    <web:param-name>service-ref</web:param-name>
    <web:param-value>ProxyService$OSBProject$ProxyServices$MyJMSService</web:param-value>
  </web:application-param>
  <web:listener>
    <web:listener-class>com.bea.wli.sb.transports.jms.JmsEndPointAppListener</web:listener-class>
  </web:listener>
</web:weblogic-application>


The parameter is set to false for all the OSB JMS services.

No comments: