Eclipse + Lomboz+WebLogic9.1配置EJB环境小结

 

今天又一次配置这个环境,顺便写个日志记录下

 

1.       下载lomboz插件

emf-sdo-runtime-I200412160800.zip

http://forge.objectweb.org/project/download.php?group_id=97&file_id=3039

org.objectweb.lomboz_3.1.0.N20050106.zip

http://forge.objectweb.org/project/download.php?group_id=97&file_id=3060

 

2.       安装插件

E:\eclipse\links下建立一个文件emf-sdo-runtime-I200412160800.link

内容:path=G:\\ejbsoft\\emf-sdo-runtime-I200412160800

再把org.objectweb.lomboz_3.1.0.N20050106.zip解压到相应的eclipse文件夹下面

 

3.       安装BEA Weblogic 9.1

网络上有很多教程,不说了

 

4.       修改weblogic配置

E:\eclipse\plugins\com.objectlearn.jdt.j2ee_3.0.1\servers下面的weblogic81.server复制一份修改为weblogic91.server,其中内容:

 

<serverDefinition

     name="BEA Weblogic Server v9.1"   //在 eclipse显示的名字

     ejbModules="true"

     webModules="true"

     earModules="true">

<property id="beaHome"                 //weblogic的安装目录

    label="BEA Home Directory:"

    type="directory"

    default="C:/bea" />

<property id="serverRootDirectory"      //weblogic的主目录

    label="Application Server Directory:"

    type="directory"

    default="C:/bea/weblogic91" />

<property id="domainName"               //weblogic的域名

    label="Admin Domain Name:"

    type="string"

    default="mydomain" />

<property id="domainDirectory"          //weblogic的域目录

    label="Administration Domain Directory:"

    type="directory"

    default="C:/bea/user_projects/domains/base_domain" />

<property id="serverName"               //weblogic的服务器名

    label="Server Name:"

    type="string"

    default="AdminServer" />

<property id="userName"                //用户名

    label="User Name:"

    type="string"

    default="weblogic" />

<property id="password"                //密码

    label="Password:"

    type="string"

    default="12345678" />

<property id="productionMode"

    label="Production Mode:"

    type="boolean"

    default="false" />

<property id="serverAddress"

    label="Address:"

    type="string"

    default="127.0.0.1" />

<property id="serverPort"

    label="Port:"

    type="string"

    default="7001" />

<property id="classPathVariableName"

    label="Classpath Variable Name:"

    type="string"

    default="WEBLOGIC91" />

<property id="classPath"

    label="Classpath Variable:"

    type="directory"

    default="C:/bea/weblogic91/server/lib" />

<serverHome>${serverRootDirectory}</serverHome>

<webModulesDeployDirectory>${domainDirectory}/applications</webModulesDeployDirectory>

<ejbModulesDeployDirectory>${domainDirectory}/applications</ejbModulesDeployDirectory>

<earModulesDeployDirectory>${domainDirectory}/applications</earModulesDeployDirectory>

<jndiInitialContextFactory>weblogic.jndi.WLInitialContextFactory</jndiInitialContextFactory>

<jndiProviderUrl>t3:/${serverAddress}:${serverPort}</jndiProviderUrl>

<startClass>weblogic.Server</startClass>

<startWorkingDirectory>${domainDirectory}</startWorkingDirectory>

<startVmParameters>-Xms32m -Xmx200m -XX:MaxPermSize=128m -Dweblogic.Name=${serverName} -Dbea.home="${beaHome}" -Dweblogic.management.username=${userName} -Dweblogic.management.password=${password} -Dweblogic.ProductionModeEnabled=${productionMode} -Djava.security.policy=="${serverRootDirectory}/server/lib/weblogic.policy"</startVmParameters>

<startProgramArguments></startProgramArguments>

<stopClass>weblogic.Admin</stopClass>

<stopWorkingDirectory>${domainDirectory}</stopWorkingDirectory>

<stopVmParameters></stopVmParameters>

<stopProgramArguments>-url t3://${serverAddress}:${serverPort} -username ${userName} -password ${password} SHUTDOWN</stopProgramArguments>

<serverClassPath>

    <jar type="variable">JDK_TOOLS</jar>

    <jar type="variable">${classPathVariableName}/weblogic.jar</jar>

    <jar type="variable">${classPathVariableName}/ojdbc14.jar</jar>

    <jar type="variable">${classPathVariableName}/webservices.jar</jar>

    <jar type="absolute">C:/lib/dblib/mysql-connector-java-5.0.0-beta-bin.jar</jar>

    <jar type="absolute">C:/lib/dblib/mysql-connector-java-5.0.0-beta-bin-g.jar</jar>

    <jar type="absolute">C:/lib/dblib/aspectjrt.jar</jar>//做相应修改

</serverClassPath>

<clientClassPath>

    <jar type="variable">${classPathVariableName}/wlclient.jar</jar>

    <jar type="variable">${classPathVariableName}/wsclient91.jar</jar>

    <jar type="variable">${classPathVariableName}/wljtaclient.jar</jar>

    <jar type="variable">${classPathVariableName}/wljmsclient.jar</jar>

</clientClassPath>

<projectClassPath>

    <jar type="variable">JDK_TOOLS</jar>

    <jar type="variable">${classPathVariableName}/weblogic.jar</jar>

    <jar type="variable">${classPathVariableName}/ojdbc14.jar</jar>

    <jar type="variable">${classPathVariableName}/webservices.jar</jar>

</projectClassPath>

</serverDefinition>