Explorerwen--Javahome

开拓者--Java之家

使用Eclipse3.0+lomboz3.0+jboss3.2.3开发EJB(一) 转载

1.   下载所需要的软件:

j2eesdk1.4SDK<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

http://java.sun.com/j2ee/1.4/download.html

下载j2eesdk-1_4-windows.exe

Eclipse3.0:

http://www.eclipse.org/

下载eclipse-SDK-3.0-win32.zip

lomboz3.0:

http://www.objectlearn.com/index.jsp

下载lomboz.3.zipemf-sdo-runtime-<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />2.0.0.zip

jboss3.2.3:

http://www.jboss.org/index.html

下载jboss-3.2.3.zip

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.zipemf-sdo-runtime-2.0.0.zip解压缩后,按照解压后的目录对应拷贝到D:/Eclipse3/pluginsD:/Eclipse3/ D:/Eclipse3/features目录下,再次运行eclipse.exe,在菜单中选择File-new-other,出现下面的界面:

r_r_1.jpg 

图1

④安装jboss

jboss-3.2.3.zip解压缩到D:/jboss-3.2.3目录下

⑤配置Eclipse3.0

在菜单中选择windows-preferences,按照下面的界面配置Eclipse

r_r_2.jpg 

图2

r_r_3.jpg 

图3

r_r_4.jpg 

 

注意:
1。把lomboz.3.zip和emf-sdo-runtime-2.0.0.zip解压到Eclispe目录后,需要把eclipse目录中的configuration/org.eclipse.update/platform.xml删除后重新启动eclipse,以便Eclipse能找到EMF和lomboz.lomboz的设置可以参考
::URL::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>

阅读更多
个人分类: J2EE/EJB收藏
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭