青青在线精品,一级做a爰片久久毛片美女图片,亚洲免费在线看http://www.aygfsteel.com/jinfeng_wang/category/39829.htmlG-G-S,D-D-U!zh-cnTue, 26 May 2009 13:11:58 GMTTue, 26 May 2009 13:11:58 GMT60config the jolt pool in your weblogichttp://www.aygfsteel.com/jinfeng_wang/archive/2009/05/26/278060.htmljinfeng_wangjinfeng_wangTue, 26 May 2009 10:09:00 GMThttp://www.aygfsteel.com/jinfeng_wang/archive/2009/05/26/278060.htmlhttp://www.aygfsteel.com/jinfeng_wang/comments/278060.htmlhttp://www.aygfsteel.com/jinfeng_wang/archive/2009/05/26/278060.html#Feedback0http://www.aygfsteel.com/jinfeng_wang/comments/commentRss/278060.htmlhttp://www.aygfsteel.com/jinfeng_wang/services/trackbacks/278060.html
[root@rhelserver lib]# cp /home/oracle/tuxedo10gR3/udataobj/jolt/jolt.jar  ./
[root@rhelserver lib]# cp /home/oracle/tuxedo10gR3/udataobj/jolt/joltjse.jar  ./
[root@rhelserver lib]# cp /home/oracle/tuxedo10gR3/udataobj/jolt/joltwls.jar  ./


2)add the startup and shutdown class in your domain.
 
3)add the joltpool to your weblogic. 

4)write your servlet program to call the tuxedo service:
 1 
 2 import java.io.IOException;
 3 import javax.servlet.ServletException;
 4 import javax.servlet.http.HttpServlet;
 5 import javax.servlet.http.HttpServletRequest;
 6 import javax.servlet.http.HttpServletResponse;
 7 
 8 import bea.jolt.pool.SessionPoolManager;
 9 import bea.jolt.pool.servlet.ServletSessionPool;
10 import bea.jolt.pool.servlet.ServletSessionPoolManager;
11 
12 /**
13  * Servlet implementation class TestJolt
14  */
15 public class TestJolt extends HttpServlet {
16     private static final long serialVersionUID = 1L;
17 
18     /**
19      * Default constructor.
20      */
21     public TestJolt() {
22         // TODO Auto-generated constructor stub
23     }
24 
25     /**
26      * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
27      *      response)
28      */
29     protected void doGet(HttpServletRequest request,
30             HttpServletResponse response) throws ServletException, IOException {
31 
32         bea.jolt.pool.servlet.ServletResult result;
33 
34         response.setContentType("text/html;charset=UTF-8");
35 
36         java.io.PrintWriter out = response.getWriter();
37         out.println("<br>begin");
38 
39         ServletSessionPoolManager bool_mgr = (ServletSessionPoolManager) SessionPoolManager.poolmgr;
40         ServletSessionPool pool_session = (ServletSessionPool) bool_mgr
41                 .getSessionPool("joltConnectionPool");  //set your weblogic's joltpool name
42 
43         if (pool_session == null) {
44             out.println("<br>fail");
45             out.close();
46             return;
47         }
48         System.out.println(pool_session);
49 
50         String sendvalue;
51         sendvalue = request.getParameter("STRING");  //this is your input parameter to the TOUPPER service.
52         System.out.println(sendvalue);
53 
54         try {
55             System.out.println("OK!");
56 
57             result = pool_session.call("TOUPPER", request);
58             out.println("<br>return val:" + result.getValue("STRING"""));
59         } catch (bea.jolt.pool.SessionPoolException e) {
60 
61             out.println("<br>busy");
62         } catch (bea.jolt.pool.ServiceException e) {
63 
64             e.printStackTrace();
65         } catch (bea.jolt.pool.ApplicationException e) {
66 
67             result = (bea.jolt.pool.servlet.ServletResult) e.getResult();
68             e.printStackTrace();
69 
70         } catch (Exception e) {
71             e.printStackTrace();
72         }
73 
74         out.println("\n");
75         out.close();
76 
77     }
78 
79     /**
80      * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
81      *      response)
82      */
83     protected void doPost(HttpServletRequest request,
84             HttpServletResponse response) throws ServletException, IOException {
85         doGet(request, response);
86     }
87 
88 }
89 


5) deploy your web war to weblogic , and browser to access your servlet:
     URL :  http://192.168.226.129:7001/TestJolt/TestJolt?STRING=aaaaaaaaaa

jinfeng_wang 2009-05-26 18:09 發表評論
]]>
install weblogic on Linuxhttp://www.aygfsteel.com/jinfeng_wang/archive/2009/05/26/278038.htmljinfeng_wangjinfeng_wangTue, 26 May 2009 08:39:00 GMThttp://www.aygfsteel.com/jinfeng_wang/archive/2009/05/26/278038.htmlhttp://www.aygfsteel.com/jinfeng_wang/comments/278038.htmlhttp://www.aygfsteel.com/jinfeng_wang/archive/2009/05/26/278038.html#Feedback0http://www.aygfsteel.com/jinfeng_wang/comments/commentRss/278038.htmlhttp://www.aygfsteel.com/jinfeng_wang/services/trackbacks/278038.html1 創建用戶組weblogic
# groupadd weblogic

2 創建用戶weblogic, 它屬于用戶組weblogic, 密碼為weblogic
# adduser -g weblogic -p weblogic weblogic

3 安裝WebLogic
# ./server816_ja_linux32.bin
3.1 介紹, 下一步
3.2 同意協議, 下一步
3.3 選擇BEA Home安裝路徑, 下一步
3.4 選擇完全安裝, 下一步
3.5 安裝中
3.6 選擇WebLogic安裝路徑, 下一步
3.7 安裝完成, Done

4 配置WebLogic
# cd /opt/weblogic/bea/weblogic81/common/bin
# sh config.sh
4.1 創建一個WebLogic配置文件, 下一步
4.2 選擇配置文件的模板Base WebLogic Server Domain, 下一步
4.3 選用默認配置, 下一步
4.4 創將管理用戶, 用戶名:weblogic, 密碼:weblogic, 下一步
4.5 選擇JDK, 選中Sun SDK, 下一步
4.6 創建WebLogic配置文件, 創建
4.7 創建成功, Done

5 啟動WebLogic服務
# cd /opt/weblogic/bea/user_projects/domains/mydomain/
# sh startWebLogic.sh


COMMENT: you must wait and wait and wait SOME MINUTES, for the console is initialized .


jinfeng_wang 2009-05-26 16:39 發表評論
]]>
主站蜘蛛池模板: 辽源市| 康保县| 福鼎市| 奈曼旗| 武夷山市| 香港 | 玛纳斯县| 海南省| 靖西县| 宽甸| 东至县| 湛江市| 黄梅县| 山丹县| 达日县| 广安市| 贵南县| 云南省| 上思县| 庆云县| 承德市| 丰顺县| 分宜县| 沙田区| 民县| 思茅市| 陈巴尔虎旗| 黄骅市| 日照市| 洱源县| 共和县| 遵化市| 将乐县| 丁青县| 宕昌县| 山西省| 南开区| 新巴尔虎右旗| 增城市| 岳阳县| 涪陵区|