没有用weblogic服务器,是不是需要在ejb-jar.xml中配置数据源?

解决方案 »

  1.   

    数据源该如何配置呢?
    这样配置正确吗?weblogic-ejb-jar.xml文件时候需要配置?或者LS能否根据我提供我文件帮我配置一下,谢谢!
    <session>
    <display-name>ProductDao</display-name>
    <ejb-name>ProductDao</ejb-name>
    <business-local>com.nec.jp.zaa03.db.dao.ProductDao</business-local>
    <ejb-class>com.nec.jp.zaa03.db.dao.ProductDaoImpl</ejb-class>
    <session-type>Stateless</session-type>
    <resource-ref>
      <res-ref-name>jdbc/tutorialDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      <injection-target>
      <injection-target-class>com.nec.jp.zaa03.db.dao.ProductDaoImpl</injection-target-class>
    <injection-target-name>ds</injection-target-name>
    </injection-target>
    </resource-ref>
    </session>