?在weblogic-ejb-jar.xml中
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>InputmingxitblBean</ejb-name>
<jndi-name>InputmingxitblBean</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>在ejb-jar.xml中
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>InputmingxitblBean</ejb-name>
<home>com.canon.ec.ejb.Entity.InputmingxitblHome</home>
<remote>com.canon.ec.ejb.Entity.Inputmingxitbl</remote>
<ejb-class>com.canon.ec.ejb.Entity.InputmingxitblBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>InputmingxitblBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
在程序中
String s = (String) context.lookup("InputmingxitblBean");
就可以了
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>InputmingxitblBean</ejb-name>
<jndi-name>InputmingxitblBean</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>在ejb-jar.xml中
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>InputmingxitblBean</ejb-name>
<home>com.canon.ec.ejb.Entity.InputmingxitblHome</home>
<remote>com.canon.ec.ejb.Entity.Inputmingxitbl</remote>
<ejb-class>com.canon.ec.ejb.Entity.InputmingxitblBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>InputmingxitblBean</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
在程序中
String s = (String) context.lookup("InputmingxitblBean");
就可以了
解决方案 »
- struts2开发BBS 问题。。
- xml文件中的元素和属性
- JDom的Element如何转换为String类型
- 文件管理
- 一个弱弱的问题:Java分布式为什么就是指EJB,Servlet不能实现分布式吗?
- 一个小问题,请各位一定帮忙解决
- 做webservice时遇到问题,求助各位大大!
- spring + hibernate 怎么做修改????谢谢各位
- 真是一个超级无语的报错! 求大神们告诉我why!?
- 我在线等待好久,为什么没有回答,难道不欢迎新来的吗???????????????
- 在JSP页中嵌套进应用程序该怎么写
- SOS!!!Weblogic部署EJB时出现ZipFile Closed错误?????
先确定成功再说..