參考《weblogic7+bjb7整合开发培训手册一份》

解决方案 »

  1.   

    To warren04(想飞的鱼~~) :
      
        您能给我一份吗?谢谢!
                     [email protected]
      

  2.   

    http://www.cn-java.com/target/download.php?id=2255&downurl=/download/book/JBuilder7Weblogic7整和开发培训手册.rar
      

  3.   

    一 安装JBuilder7,Weblogic700,Oracle8
    安装过程略,假设安装路径如下:
    c:\bea
    c:\jbuilder7
    c:\oracle8
    假设使用的Oracle数据库名为:orcl二 Weblogic7配置(本例采用thin连接方式访问oracle)· 进入c:\bea\weblogic700\server\bin目录,修改startWLS.cmd
    找到set CLASSPATH = … 和set PATH = …
    在CLASSPATH最前面加上class12.jar所在全路径,如c:\oracle8\lib\class12.jar;。
    在PATH中加入c:\bea\weblogic700\server\bin\oci817_8;。· 打开[启动菜单]中的[BEA Weblogic platform 7.0]->[domain configuration wizard]
    1.Select a template:选择WLS Domain,Name默认的mydomain (可修改)
    2.Choose Server Type: 默认的是“Single Server”
    3.Specify directory for "mydomain": 输入C:\bea\user_projects\ 
    4.Configure Standalone/Administrative Server: 
      Server Name: 默认为myserver (可修改)
      Server Listen Address: 本机ip地址 (单机使用时不填也可)
      Server Listen Port: 默认7001 
      Server SSL Listen Port:默认7002 
    5.Create Administrator User: 输入管理使用的用户名和密码。
    6.选择是否作为系统服务运行。
    7.选择是否添加快捷方式到开始菜单中。
    上述配置完成后单击[create]创建新的domain。创建成功后会在开始菜单中会出现(前面配置过程中如果没有选择该项则看不到)
    [BEA Weblogic Platform 7.0]->[User projects]->[mydomain]->[Start Server] 
    选择[Start Server]· 启动浏览器输入:http://localhost:7001/console
    输入管理使用的用户名和密码,即可进入管理控制台。
     
    · 配置连接池(使用管理控制台)
    选择Services->JDBC->Connection Pools,
    单击右侧的Configure a new JDBC Connection Pool. 
    输入以下信息: 
    Configuration->General页: 
    Name : 输入连接池名称 
    URL : jdbc:oracle:thin:@机器名(IP):1521:orcl 
    Driver classname : oracle.jdbc.driver.OracleDriver 
    Properties : 
    user= 数据库用户名
    password= 密码
    单击Create建立连接池。 
    选择Targets->Server页: 
    将myserver(服务器名称)移至右侧的列表中,单击Apply。
     
    · 配置数据源(使用管理控制台)
    选择Services->JDBC->TX Data Sources,
    单击右侧的Configure a new TX Data Sources,
    输入以下信息: 
    Configuration->General页: 
    Name : 输入数据源名称
    JNDI Name : 输入数据源JNDI名 (以后要引用的DataSource的JNDI名) 
    Pool Name : 输入连接池名字 (要和上面配置的连接池名字一致)
    选中Emulate Two-Phase Commit for non-XA Driver和Row Prefetch Enabled 
    单击Create建立数据源。 
    Targets->Server页: 
    将myserver(服务器名称)移至右侧的列表中,但击单击Apply,配置完毕 
    三 JBuilder7配置
    ·  确保系统环境变量种的TEMP和TMP 为不带空格的目录。(weblogic不支持空格)
    ·  启动Jbuilder7,选择Tools->Configure libraries->class->Add,
       加入class12.jar;。。
    ·  选择Tools->Configure Servers
       选择Weblogic Application Server 6.x+,选中右边的Enable Server 
       Home Directory设为WebLogic7的Home Directory:如c:/bea/weblogic700/server。 
       server parameters不填。
       
    ·  将Custom->JDK Installation Directory设为当前使用JDK的安装目录,如:c:/jdk131 
    ·  将Custom->BEA Home Directory设为WebLogic7的Home Director,如:c:/bea 
    ·  将Custom->Domain Directory设为你的域目录,如:c:/bea/user_projects/mydomain 
    ·  输入Weblogic中的User name, Password ,Domain name, Server name.
    ·  选择:Tools->Enterprise Setup,选择[CORBA]页, 按下表填写相应信息:
       Name for this configuration : WelLogic 
       Path for ORB Tools : c:/bea/weblogic700/server 
       Library for Projects : WebLogic 6.x+ Deploy 
       IDL compiler command : idlj.exe 
       Commnad option for output directory : 随意目录
       选择[DATABASE]页,在其中添加class12.jar库文件。
    ·  单击OK退出,重新启动JBuilder7配置生效。