Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux集群 > Architecture > » 正文

EJB配置

来源: iffiffj 分享至:
1.EJB3部署描述
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
	<interceptors>
		<interceptor>
			<interceptor-class>com.redhat.auth.ejb.impl.SpringEJBIntercepter</interceptor-class>
		</interceptor>
	</interceptors>
	<assembly-descriptor>
		<interceptor-binding>
			<ejb-name>AccountApplicationBean</ejb-name>
			<interceptor-order>
				<interceptor-class>com.redhat.auth.ejb.impl.SpringEJBIntercepter</interceptor-class>
			</interceptor-order>
		</interceptor-binding>
	</assembly-descriptor>
</ejb-jar>

2.jboss.xml部署描述
<?xml version="1.0" ?>
<jboss>
	<!-- impl -->
	<enterprise-beans>
		<session>
			<ejb-name>TestApplicationBean</ejb-name>
			<jndi-name>gsms/TestApplicationBean</jndi-name>
		</session>
	</enterprise-beans>
</jboss>

Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史