使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(一) 转载
来源:互联网 发布:易语言锁屏源码 编辑:程序博客网 时间:2024/06/06 01:29
1. 下载所需要的软件:
j2eesdk1.4SDK
http://java.sun.com/j2ee/1.4/download.html
下载j2eesdk-1_4-windows.exe
Eclipse3.0:
下载eclipse-SDK-3.0-win32.zip
lomboz3.0:
http://www.objectlearn.com/index.jsp
下载lomboz.3.zip和emf-sdo-runtime-
jboss
http://www.jboss.org/index.html
下载jboss-
2. 配置
安装j2eesdk1.4SDK,假设安装在C:/Sun/AppServer目录下
①添加环境变量ClassPath:
.; C:/Sun/AppServer/jdk/lib/ tools.jar; C:/Sun/AppServer/jdk/lib/ dt.jar;
C:/Sun/AppServer/lib/j2ee.jar
再在环境变量Path添加
C:/Sun/AppServer/jdk/bin; C:/Sun/AppServer/bin
②安装Eclipse3.0
将eclipse-SDK-3.0-win32.zip解压缩,假设解到D:/Eclipse3目录下,运行eclipse.exe
③安装lomboz
把文件lomboz.3.zip和emf-sdo-runtime-
图1
④安装jboss
将jboss-
⑤配置Eclipse3.0
在菜单中选择windows-preferences,按照下面的界面配置Eclipse
图2
图3
。
注意:
1。把lomboz.3.zip和emf-sdo-runtime-2.0.0.zip解压到Eclispe目录后,需要把eclipse目录中的configuration/org.eclipse.update/platform.xml删除后重新启动eclipse,以便Eclipse能找到EMF和lomboz.lomboz的设置可以参考
http://www.objectlearn.com/support/docs/installation/install.jsp
2。对于jboss3.2.5需要添加(修改)com.objectlearn.jdt.j2ee_3.0.1/servers/jboss325.server
<serverDefinition
name="JBOSS 3.2.5"
ejbModules="true"
webModules="true"
earModules="true">
<property id="serverRootDirectory"
label="Application Server Directory:"
type="directory"
default="F:/jboss-3.2.5" />
<property id="serverAddress"
label="Address:"
type="string"
default="127.0.0.1" />
<property id="serverPort"
label="Port:"
type="string"
default="8080" />
<property id="serverConfig"
label="Server Configuration (minimal/default/all):"
type="string"
default="default" />
<property id="classPathVariableName"
label="Classpath Variable Name:"
type="string"
default="JBOSS325" />
<property id="classPath"
label="Classpath Variable:"
type="directory"
default="F:/jboss-3.2.5" />
<serverHome>${serverRootDirectory}</serverHome>
<webModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</webModulesDeployDirectory>
<ejbModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</ejbModulesDeployDirectory>
<earModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</earModulesDeployDirectory>
<jndiInitialContextFactory>org.jnp.interfaces.NamingContextFactory</jndiInitialContextFactory>
<jndiProviderUrl>jnp://${serverAddress}:1099</jndiProviderUrl>
<startClass>org.jboss.Main</startClass>
<startWorkingDirectory>${serverRootDirectory}/bin</startWorkingDirectory>
<startVmParameters></startVmParameters>
<startProgramArguments>-c ${serverConfig}</startProgramArguments>
<stopClass>org.jboss.Shutdown</stopClass>
<stopWorkingDirectory>${serverRootDirectory}/bin</stopWorkingDirectory>
<stopVmParameters></stopVmParameters>
<stopProgramArguments>-S</stopProgramArguments>
<serverClassPath>
<jar type="variable">JDK_TOOLS</jar>
<jar type="variable">${classPathVariableName}/bin/run.jar</jar>
<jar type="variable">${classPathVariableName}/bin/shutdown.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
<jar type="variable">${classPathVariableName}/lib/concurrent.jar</jar>
<jar type="variable">${classPathVariableName}/lib/jboss-system.jar</jar>
<jar type="variable">${classPathVariableName}/lib/dom4j.jar</jar>
<jar type="variable">${classPathVariableName}/lib/xercesImpl.jar</jar>
<jar type="variable">${classPathVariableName}/lib/xml-apis.jar</jar>
<jar type="variable">${classPathVariableName}/lib/gnu-regexp.jar</jar>
<jar type="variable">${classPathVariableName}/lib/getopt.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/deploy/jbossweb-tomcat50.sar/servlet-api.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/bcel.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-transaction.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jnpserver.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-pattern.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-util.jar</jar>
</serverClassPath>
<clientClassPath>
<jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-client.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-common-client.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-jaas.jar</jar>
<jar type="variable">${classPathVariableName}/client/jbosssx-client.jar</jar>
<jar type="variable">${classPathVariableName}/client/jnet.jar</jar>
<jar type="variable">${classPathVariableName}/client/jnp-client.jar</jar>
<jar type="variable">${classPathVariableName}/client/log4j.jar</jar>
<jar type="variable">${classPathVariableName}/server/default/lib/jnpserver.jar</jar>
</clientClassPath>
<projectClassPath>
<jar type="variable">JDK_TOOLS</jar>
<jar type="variable">${classPathVariableName}/bin/run.jar</jar>
<jar type="variable">${classPathVariableName}/bin/shutdown.jar</jar>
<jar type="variable">${classPathVariableName}/client/jboss-j2ee.jar</jar>
<jar type="variable">${classPathVariableName}/lib/concurrent.jar</jar>
<jar type="variable">${classPathVariableName}/lib/jboss-system.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/deploy/jbossweb-tomcat50.sar/servlet-api.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/bcel.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jboss-transaction.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jnpserver.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-pattern.jar</jar>
<jar type="variable">${classPathVariableName}/server/${serverConfig}/lib/jpl-util.jar</jar>
</projectClassPath>
<adminTool>
<web><deploy /><undeploy />
</web>
<ejb><deploy /><undeploy />
</ejb>
<ear><deploy /><undeploy />
<webModule><deploy /><undeploy />
</webModule>
<ejbModule><deploy /><undeploy />
</ejbModule>
</ear>
</adminTool>
<adminToolPath>
</adminToolPath>
</serverDefinition>
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(一) 转载
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(一)
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(二) 转载
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(转载)
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(一)
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(一)
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(1)
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(2)
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(转)
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(二)
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(二)
- 用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB
- 用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB
- SQA测试过程
- Python中的类型关系和继承关系
- 实现Windows关机程序
- ASP.NET Framework深度历险
- 叫我如何“踏实”——写给李可文
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(一) 转载
- 单键恢复项目启动
- 使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(二) 转载
- 简单对象访问协议(SOAP)介绍
- The Value of Forums - Finding Forums
- 利用C++Builder中的IdSMTP和IdMessage控件发送电子邮件
- Windows在"移动" 全球最小智能手机呼之欲出
- TCP Connection Established! ^_^
- IBM 将推 OpenPower 服务器 仅运行 Linux 系统