spring과 hornetq를 사용하는 EJB 애플리케이션을 등록하다가 ear 애플리케이션 디플로이시 바인딩되지도 않은 JMS Connection Factory를 접근하다가 에러가 발생을 하는데 아래와 같이 설정을 바꿈으로써 가능합니다.

좋은 정보를 알려주신 송민우 책임, 감사합니다.

Many people talked about getting error when they deploy ear application including MDB, EJB like this :
http://stackoverflow.com/questions/4616078/how-to-order-deployment-of-ejbs-and-jms-queue-config-in-jboss-5 

http://community.jboss.org/thread/93539 http://community.jboss.org/thread/93539


In earlier version of JBoss, there was a method you can change deployment order in configuration file.

In JBoss EAP5 or AS5, you can configure deployment order like this :

$SERVER_HOME/conf/bootstrap/deployers.xml

 <!-- use legacy ordering -->
 <bean name="topContextComparator">
      <constructor factoryClass="org.jboss.system.deployers.LegacyDeploymentContextComparator" factoryMethod="getInstance"/>
         <property name="suffixOrder" class="java.util.Map">
             <map keyClass="java.lang.String" valueClass="java.lang.Integer">
              <entry>
               <key>-beans.xml</key>
               <value>200</value>
              </entry>
              <entry>
               <key>.ear</key>
               <value>1000</value>
              </entry>
              <entry>
               <key>.jar</key>
               <value>1000</value>
              </entry>
              <entry>
               <key>.war</key>
               <value>1000</value>
              </entry>
          </map>
       </property>
 </bean>


크리에이티브 커먼즈 라이센스
Creative Commons License
2011/12/20 08:57 2011/12/20 08:57
http://www.javapattern.info/trackback/412