⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ejb-ias.xtp

📁 解压在c盘
💻 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 &lt;classpath .../> in resin.conf doesn't work.<li>Add the path to your beans into resin.conf:<example>  &lt;classpath id='c:/development/classes'/></example><li>Add the JNDI link from resin to the app server in resin.conf:<example>&lt;jndi-link>  &lt;jndi-name>java:comp/env/ejb&lt;/jndi-name>   &lt;jndi-factory>com.inprise.j2ee.jndi.CtxFactory&lt;/jndi-factory>&lt;/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 + -