0 Replies Latest reply on Feb 17, 2006 5:53 AM by john_woo

    how deploy as local ejb if ejb.jar and timer.sar in same tes

      Hi,

      one thing very strange to me is that, put ejb.jar in a test.ear is ok if there is
      only ejb.jar web.war in it (the ejb.jar is a simple remote session bean);

      but if put a timer.sar (which can be deployed fine placing in /deploy folder) in this test.ear, then the JBoss deploys this ejb as local ejb, the following is the descriptor:

      jboss-app.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
      <jboss-app>

      timer.sar

      </jboss-app>

      application.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">

      <display-name>ejb.jar</display-name>

      ejb.jar



      the timer main class
      extends org.jboss.system.ServiceMBeanSupport
      implements Schedulable

      Can any one tell how to fix it?

      --
      Thanks
      John
      Toronto