当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 前边的程序好用吧,我觉得比书上写的麻烦的程序强多了,所以还是得用工具的。
 

 

    摘要:argouml是一个运行在java1.2虚拟机之上,且是free和opensource的(遵循bsd协议)uml制作工具,其项目主页为http://www.argouml.tigris.org/。 我们最熟悉的商业uml建模工具恐怕就是rational rose了,当然除了它比较昂贵的价格外,伴随着它强大且烦杂的功能其安装下来也要有400m之多;那么argouml有什么独到之处呢,除了安装简便(安......
    摘要:对于如何使用 webrequest 和 webresponse 类在 uri 上生成 post 请求,在微软的 .net 快速入门教程中有详细的描述(http://chs.gotdotnet.com/quickstart/howto/doc/webrequests/clientpost.aspx),简要引用如下: webresponse 类是抽象(在 visual basic 中为 mustinh......


我的EJB学习历程(四)
上一页   ...  *  view-type="remote"

public double add(double b,double a){ 【程序编程相关:在.Net1.2中对Xquery的支持

**/ 【推荐阅读:第九章 方法[《.net框架程序设计》读

 return b; 【扩展信息:DNS与BIND学习笔记 5 (实例操练

    b=b+a;

}

/**

 * @ejb.interface-method

 *  view-type="remote"

**/

public double withdraw(double b,double a){

    b=b-a;

 return b;

}

}

 

 

要记得这里边的add与withdraw方法不是手动加上的啊,是用wizard的啊.要是不会的话,看我的(三)去!!!!

 

然后按照(三)里边的方法部署到jboss上边去!

 

一切成功的话,还是按照(三)的方法写一个实现类!我的是这样写的,与书上有点不一样,不过实现方法是完全一样的!

 

 

 

package com.testing.client;

 

import java.rmi.remoteexception;

import java.util.hashtable;

 

import javax.ejb.createexception;

import javax.naming.initialcontext;

import javax.naming.namingexception;

import javax.swing.*;

import java.awt.*;

import java.awt.event.*;

import java.text.*;

import com.testing.fund.fundmanger;

 

public class fundtest extends jframe implements actionlistener{

   

    public fundtest(){

       super("fund manger");

    }

 

    private com.testing.fund.fundmangerhome gethome() throws namingexception {

       return (com.testing.fund.fundmangerhome) getcontext().lookup(

           com.testing.fund.fundmangerhome.jndi_name);

    }

   


...   下一页
    摘要: 通过system.configuration中的configurationsettings类的appsettings属性,可以很方便访问web.config配置文件中appsettings节点的数据。对于web程序利用这个配置文件存放一些只读的程序信息,比如程序名称,作者信息,数据库连接字符串等将是十分方便有用。如:<!--sample.aspx-->private void pag......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE