• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    怎么樣配置Weblogic的數據源

    發布: 2007-6-21 16:03 | 作者:   | 來源:   | 查看: 26次 | 進入軟件測試論壇討論

    領測軟件測試網

       
    應用環境:JBuilderX+Welogic7.0+MSSQL server2000

    一、    安裝MSSQL  Server驅動程序

    此處假設安裝路徑是:F:\green\Microsoft SQL Server 2000 JDBC那么在F:\green\Microsoft SQL Server 2000 JDBC\lib下面, 會有以下三個文件msbase.jar、mssqlserver.jar、msutil.jar。

    二、    設置Weblogic的啟動classpath,也就是設置Weblogic啟動時要加載的包

    一定記。菏切薷%BEA_HOME%\user_projects\mydomain\目錄下的startWeblogic.cmd,一定不要修改%WL_HOME%\server\bin\下的任何文件。

    配置后的文件如下:
    @rem *************************************************************************
    @rem This script is used to start WebLogic Server for the domain in the 
    @rem current working directory.  This script simply sets the SERVER_NAME 
    @rem variable and calls the startWLS.cmd script under
    @rem %WL_HOME%\server\bin.
    @rem
    @rem To create your own start script for your domain, all you need to set is 
    @rem SERVER_NAME, then call %WL_HOME%\server\bin\startWLS.cmd
    @rem
    @rem Other variables that startWLS takes are:
    @rem
    @rem WLS_USER     - cleartext user for server startup
    @rem WLS_PW       - cleartext password for server startup
    @rem STARTMODE    - true for production mode servers, false for 
    @rem                development mode
    @rem JAVA_OPTIONS - Java command-line options for running the server. (These
    @rem                will be tagged on to the end of the JAVA_VM and MEM_ARGS)
    @rem JAVA_VM      - The java arg specifying the VM to run.  (i.e. -server, 
    @rem                -hotspot, etc.)
    @rem MEM_ARGS     - The variable to override the standard memory arguments
    @rem                passed to java
    @rem
    @rem For additional information, refer to the WebLogic Server Administration 
    @rem Guide (http://e-docs.bea.com/wls/docs70/adminguide/startstop.html).
    @rem *************************************************************************

    echo off
    SETLOCAL

    @rem Set SERVER_NAME to the name of the server you wish to start up.
    set SERVER_NAME=myserver

    @rem Set WLS_USER equal to your system username and WLS_PW equal  
    @rem to your system password for no username and password prompt 
    @rem during server startup.  Both are required to bypass the startup
    @rem prompt.  This is not recomended for a production environment.

    set WLS_USER=zy
    set WLS_PW=zy
    此處設置后,在啟動weblogic時,不需要沒次都輸入用戶名和密碼



    @rem Set Production Mode.  When this is set to true, the server starts up in 
    @rem production mode.  When set to false, the server starts up in development 
    @rem mode.  If it is not set, it will default to false.
    set STARTMODE=

    @rem Set JAVA_OPTIONS to the java flags you want to pass to the vm. i.e.: 
    @rem set JAVA_OPTIONS=-Dweblogic.attribute=value -Djava.attribute=value
    set JAVA_OPTIONS=-Dweblogic.security.SSL.trustedCAKeyStore=d:\bea\weblogic700\server\lib\cacerts

    @rem Set JAVA_VM to the java virtual machine you want to run.  For instance:
    @rem set JAVA_VM=-server
    set JAVA_VM=

    @rem Set MEM_ARGS to the memory args you want to pass to java.  For instance:
    @rem set MEM_ARGS=-Xms32m -Xmx200m
    set MEM_ARGS=


    set  classpath=%WL_HOME%\common\lib\classes12.jar;%WL_HOME%\common\lib\mssqlserver.jar;%WL_HOME%\common\lib\msbase.jar;%WL_HOME%\common\lib\msutil.jar 
    此處的設置根據自己的情況來確定




    @rem Call Weblogic Server
    call "d:\bea\weblogic700\server\bin\startWLS.cmd"

    ENDLOCAL

    三、    在Weblocig的控制臺中設置連接池和數據源,略

    總結
       配置過程最重要的是第二步,因為如果classpath配置錯誤,那么在配置數據源的時候將會找不到驅動程序類

    如果還有問題和我聯系 zhyiwww@163.com

    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備10010545號-5
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>