EJB 本地 Bean 引用配置
配置 EJB 本地 Bean 的引用时,需定义 Bean 类型(实体 Bean 或会话 Bean),其中 local-home 和 local 必须为完全限定名。
<ejb-local-ref>
<ejb-ref-name>ejb/Customer</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>com.zb.CustomerHome</local-home>
<local>com.zb.Customer</local>
</ejb-local-ref>
EJB 远程 Bean 引用配置
与本地 Bean 的区别在于使用 <ejb-ref> 标记,且接口使用 <home> 和 <remote>。
<ejb-ref>
<ejb-ref-name>ejb/Customer</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.zb.CustomerHome</home>
<remote>com.zb.Customer</remote>
</ejb-ref>
扩展名与 MIME 类型映射
建立扩展名和 MIME 类型之间的映射,注意扩展名前没有点,且此处使用的是 <mime-mapping> 而非 <file-type>。
<mime-mapping>
mpg
video/mpeg

