隨筆-109  評論-187  文章-25  trackbacks-0

                             how to setup jacorb dev env
          1:download JacORB_2_2

                 http://www.jacorb.org/download.html
            download ant
                 http://ant.apache.org/bindownload.cgi

          2:extact JacORB_2_2.jar to d:\JacORB_2_2

          3:setup sys environment

                 set ANT_HOME=
                 set JAVA_HOME=
                 set JACORB_HOME=d:\JacORB_2_2
                 set PATH=%PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin;%JACORB_HOME%\bin;
                 set CLASSPAHT=.;%CLASSPAHT%;%ANT_HOME%\lib\ant.jar;%JACORB_HOME%\lib\jarorb.jar;%JACORB_HOME%\lib\idl.jar\;%JACORB_HOME%\lib\logkit-1.2.jar

          4:rename %JACORB_HOME%\etc\jacorb_properties.template to %JACORB_HOME%\etc\jacorb.properties
            and modify the 50th line to 53th line to
           
                 #ORBInitRef.NameService=file:/y:/nsiona.ref
                
          ORBInitRef.NameService=file://d://test//NS_Ref
                
          #ORBInitRef.NameService=http://www.x.y.z/~user/NS_Ref
                
          #ORBInitRef.TradingService=http://www.x.y.z/~user/TraderRef
           
            modify 618th line to
                 jacorb.naming.ior_filename=d://test//NS_Ref

          5:rename  %JACORB_HOME%\jacotemplate.bat to %JACORB_HOME%\jaco.bat
           
            and modify related env variable
           
            rename   %JACORB_HOME%\idltemplate.bat to %JACORB_HOME%\idl.bat
            
            and modify related env variable

           

          6:  use ant compile and build idl and java


               cd  %JACORB_HOME%\demo\grid  

               run ant
             
               the generate class file in %JACORB_HOME%\classes  and generated java file in %JACORB_HOME%\demo\grid


          7: open a new cmd window:
                    cd %JACORB_HOME%   ns
           
             you can see the following result:   
                 [ configuration jacorb loaded from file %JAORB_HOME%\etc\jacorb.properties]

             open a new cmd window:
                    cd %JACORB_HOME%   jaco demo.grid.Server
            you can see the following result:   
            [ configuration jacorb loaded from file %JAORB_HOME%\etc\jacorb.properties]
            
            open a new cmd window:
                    cd %JACORB_HOME%   jaco demo.grid.client
              you can see the following result:   
           
            [ configuration jacorb loaded from file D:\work\nj\JACORB\etc\jacorb.properties]
             Height = 31
             Width = 14
             Old value at (30,13): 0.21
             Setting (30,13) to 470.11
             New value at (30,13): 470.11
             MyException, reason: This is only a test exception, no harm done :-)
             done.

          posted on 2007-11-21 10:36 小小程序程序員混口飯吃 閱讀(4264) 評論(4)  編輯  收藏 所屬分類: java

          評論:
          # re: 用JACORB搭建一個corba的開發(fā)環(huán)境 2007-11-21 18:43 | 隔葉黃鶯
          可是現(xiàn)在真的很少有人會選擇用Corba,原來是真的需要跨很多種語言來通信會用它,現(xiàn)在都會考慮WebService,尤其是SOA正火的時候  回復(fù)  更多評論
            
          # re: 用JACORB搭建一個corba的開發(fā)環(huán)境 2007-11-22 09:11 | loocky
          你說的對啊,一般都是在跨語言平臺的時候會用它  回復(fù)  更多評論
            
          # re: 用JACORB搭建一個corba的開發(fā)環(huán)境 2007-11-27 10:05 | iLinux
          最近開始學(xué)習(xí)jacorb,收藏了  回復(fù)  更多評論
            
          # re: 用JACORB搭建一個corba的開發(fā)環(huán)境 2008-01-29 22:18 | Worm Online
          寫的不錯, 參考了。 其實很多地方都可以用。  回復(fù)  更多評論
            
          主站蜘蛛池模板: 玉环县| 明溪县| 婺源县| 江西省| 盘山县| 南宫市| 布尔津县| 通化市| 阳新县| 沽源县| 云霄县| 望奎县| 海盐县| 清丰县| 厦门市| 朔州市| 淳化县| 安多县| 禹城市| 特克斯县| 汉寿县| 清水河县| 芒康县| 油尖旺区| 略阳县| 嘉荫县| 保山市| 冀州市| 塔河县| 启东市| 土默特左旗| 汉阴县| 温泉县| 玉龙| 桐城市| 新疆| 上犹县| 昌邑市| 伊金霍洛旗| 玉树县| 顺义区|