📄 ejb-ias.xtp
字号:
<title>Resin using Inprise Application Server EJB</title>From Damon Maria:<p/>Got 1.2 talking to IAS 4.1 the other day and just thought I'd share myexperiences to save someone else some time. <p/>Here's what to do:<ol><li>Copy vbjorb.jar and vbejb.jar from AppServer/lib into resin/lib. Just addingthese into the <classpath .../> in resin.conf doesn't work.<li>Add the path to your beans into resin.conf:<example> <classpath id='c:/development/classes'/></example><li>Add the JNDI link from resin to the app server in resin.conf:<example><jndi-link> <jndi-name>java:comp/env/ejb</jndi-name> <jndi-factory>com.inprise.j2ee.jndi.CtxFactory</jndi-factory></jndi-link></example><li>Then connect to your beans in servlets/JSP, simply add "java:comp/env/ejb/"onto any JNDI paths you use to find your beans. Eg. if I have a bean at the appserver JNDI path of "TestSession" then in my servlet I use:<example>javax.naming.Context context = new javax.naming.InitialContext();Object ref = context.lookup("java:comp/env/ejb/TestSession");home = (TestSessionHome) javax.rmi.PortableRemoteObject.narrow(ref, TestSessionHome.class);</example></ol>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -