<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 7, comments - 1, trackbacks - 0, articles - 0

    2006年7月11日

    1. mysql driver -> server\default\lib
    2. jdbc connection datasource server/default/deploy/mysql-xa-ds.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <datasources>
    ?<xa-datasource>
    ??<jndi-name>MySqlXADS</jndi-name>
    ??<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
    ??<xa-datasource-property name="Url">jdbc:mysql://127.0.0.1:3306/temp</xa-datasource-property>
    ??<xa-datasource-property name="User">root</xa-datasource-property>
    ??<xa-datasource-property name="Password">....</xa-datasource-property>
    ??<user-name>root</user-name>
    ??<password>.....</password>
    ??<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
    ??<metadata>
    ???<type-mapping>mySQL</type-mapping>
    ??</metadata>
    ?</xa-datasource>
    </datasources>

    3. server/default/conf/standardjbosscmp-jdbc.xml
    <defaults>
    ????? <datasource>java:/MySqlXADS</datasource>
    ????? <datasource-mapping>mySQL</datasource-mapping>
    ....
    ....??
    </defaults>

    4. server/default/conf/jboss-service.xml
    <mbean code="org.jboss.tm.XidFactory"
    ????? name="jboss:service=XidFactory">
    ?//uncommented the line below...
    ????? <attribute name="Pad">true</attribute>
    ?? </mbean>

    posted @ 2006-09-01 08:55 Jedi 閱讀(1117) | 評(píng)論 (0)編輯 收藏

    1. 某個(gè)service的參數(shù)有復(fù)雜對(duì)象時(shí),如果要用默認(rèn)的beanmapping,記得這個(gè)對(duì)象要有的默認(rèn)構(gòu)造器(空參數(shù)構(gòu)造器),不然Axis在處理的時(shí)候會(huì)所有的字段都是同一個(gè)值..至于原因我沒搞清楚-,-~~
    2. 不要用List,盡量用數(shù)組!
    ValueBean[]?getValues()?
    ????
    {?
    ????????ArrayList?result?
    =?new?ArrayList();?
    ????????
    return?(ValueBean[])?result.toArray();?
    ????}
    上面的代碼還是會(huì)出問題,要用iterator一個(gè)一個(gè)map過去
    public?class?ValueHelper?
    ????
    {?
    ????????
    public?static?ValueBean[]?toArray(List?values)?
    ????????
    {
    ????????????ValueBean[]?result?
    =?new?ValueBean[values.size()];?
    ????????????Iterator?i?
    =?values.iterator();?
    ????????????
    int?i?=?0;?
    ????????????
    while?(i.hasNext())?
    ????????????
    {?
    ????????????????ValueBean?value?
    =?(ValueBean)?i.next();?
    ????????????????result[i
    ++]?=?value;?
    ????????????}
    ?
    ????????????
    return?result;?
    ????????}
    ?
    ????}
    ?
    ????ValueBean[]?getValues()?
    {?
    ????????ArrayList?result?
    =?new?ArrayList();??
    ????????
    return?ValueHelper.toArray(result);?
    ????}
    3. 要生成符合ws-i的web service最好用document/literal
    <service name="MyWebRes" provider="java:RPC" style="document "use="literal">

    posted @ 2006-08-15 09:22 Jedi 閱讀(274) | 評(píng)論 (0)編輯 收藏

    http://www.fiddlertool.com/fiddler/?
    .net framework 1.1 needed

    for firefox need some added configurat

    menu->tools->preference/option->connection settings->bottom->

    C:\Documents and Settings\jedikings\My Documents\Fiddler\Scripts\BrowserPAC.js -> reload

    posted @ 2006-08-15 09:15 Jedi 閱讀(244) | 評(píng)論 (0)編輯 收藏

    var ?proxy = ? null ;
    ? function??getTest()??//?test?by?the?way?amazon?uses
    {
    ????
    if?(!proxy)?{
    ????????
    var?listener?=?{?
    ????????
    //?gets?called?once?the?proxy?has?been?instantiated
    ????????????onLoad:?function?(aProxy)?
    ????????????
    {
    ????????????????proxy?
    =?aProxy;
    ????????????????proxy.setListener(listener);
    ????????????????requestTest();
    ????????????}
    ,
    ????????
    //?gets?called?if?an?error?occurs
    ????????????onError:?function?(aError)?
    ????????????
    {
    ????????????????alert(aError);
    ????????????}
    ,
    ????????
    //?callback?function?is?hardcoded?to?{methodname}Callback?in?1.4beta
    ????????????getInstanceByIDCallback?:?function?(aresult)?
    ????????????
    {
    ????????????????alert(
    "enter?callback");??????????????
    ????????????????
    //alert("a="+aresult.a+",?b="+aresult.b);
    ????????????}

    ????????}
    ;
    ????????createProxy(listener);
    ????}

    ????
    else?{
    ????????requestTest(
    );
    ????}

    }

    function?createProxy(aCreationListener)?
    {
    ????
    try?{
    ????????
    var?factory?=?new?WebServiceProxyFactory();
    ????????factory.createProxyAsync("...wsdl location...."
    ,?"binding name",?"",?true,?aCreationListener);
    ????}

    ????
    catch?(ex)?{
    ????????alert(
    "test?"+?ex);
    ????}

    }


    function??requestTest()?
    {
    ????
    if?(proxy)?{
    ????????netscape.security.PrivilegeManager.enablePrivilege(
    "UniversalBrowserRead");
    ????????
    ????????
    /*
    ????????//?if?complex?object?is?the?parameter
    ????????var?KeywordSearchRequest?=?new?Object();????????
    ????????KeywordSearchRequest.page="1";
    ????????KeywordSearchRequest.mode="books";
    ????????KeywordSearchRequest.tag="webservices-20";
    ????????KeywordSearchRequest.type="lite";
    ????????KeywordSearchRequest.devtag="D2Z2KU2NWTOHI";
    ????????KeywordSearchRequest.format="xml";
    ????????KeywordSearchRequest.version="1.0";
    ????????
    */

    ????????proxy.getInstanceByID(
    "id.....");
    ????????alert(
    "call?complete!");
    ????}

    ????
    else?{
    ????????alert(
    "Error:?Proxy?set?up?not?complete!");
    ????}

    }

    用起來(lái)還是很簡(jiǎn)單,唯一要注意的是用Axis生成Web Service的時(shí)候記得在global configuration里面改一下
    <parameter name="sendMultiRefs" value="false"/>

    ie下的話也有一個(gè)webservice.htc,沒仔細(xì)研究過..

    posted @ 2006-07-11 12:13 Jedi 閱讀(841) | 評(píng)論 (0)編輯 收藏

    主站蜘蛛池模板: 国产精品国产亚洲区艳妇糸列短篇 | 亚洲成AV人片久久| 免费污视频在线观看| 色噜噜AV亚洲色一区二区| 一级毛片a免费播放王色| 亚洲精品国产综合久久一线| 免费看黄网站在线看| 国产精品亚洲玖玖玖在线观看| 一级毛片试看60分钟免费播放| 亚洲精品无码专区久久同性男| 美女网站在线观看视频免费的| 激情综合色五月丁香六月亚洲| 国产免费播放一区二区| 亚洲国产精品一区二区第一页 | 最近中文字幕高清免费中文字幕mv | 免费无码黄网站在线观看| 久久精品国产亚洲av瑜伽| 无码不卡亚洲成?人片| xxxxx做受大片在线观看免费| 亚洲乱码精品久久久久..| 鲁大师在线影院免费观看 | 成在人线AV无码免费| 免费视频成人国产精品网站| 亚洲欧洲日产国码无码网站| 免费国产黄网站在线观看| 亚洲人成电影网站色| 亚洲五月综合缴情在线观看| 久久久久久毛片免费播放| 亚洲人成网站在线播放2019| 亚洲国产精品嫩草影院久久 | 日本三级在线观看免费| 亚洲制服丝袜在线播放| 免费a级毛片在线观看| 黄色免费在线网站| 亚洲高清有码中文字| 亚洲婷婷五月综合狠狠爱| 久久综合AV免费观看| 久久一区二区三区免费| 亚洲中文字幕AV在天堂| 亚洲中文字幕无码爆乳AV| 永久免费AV无码国产网站 |