可以接口和是不是sessionbean没关系

解决方案 »

  1.   

    当然可以, 只是entity bean一般用session bean调用.所以remote interface用的不多.
      

  2.   

    可以,看看我们的实例用ant等工具自动生成的:
          <session >
             <description><![CDATA[Description of the Class]]></description>         <ejb-name>CaFronts</ejb-name>         <home>com.corp.product.session.ca.interfaces.CaFrontsHome</home>
             <remote>com.corp.product.session.ca.interfaces.CaFronts</remote>
             <local-home>com.corp.product.session.ca.interfaces.CaFrontsLocalHome</local-home>
             <local>com.corp.product.session.ca.interfaces.CaFrontsLocal</local>
             <ejb-class>com.corp.product.session.ca.ejb.CaFrontsSession</ejb-class>
             <session-type>Stateless</session-type>
             <transaction-type>Container</transaction-type>      </session>