`
aijuans8
  • 浏览: 178602 次
社区版块
存档分类
最新评论
文章列表
Linux下配置JBoss自动启动 (JBoss V4.0) #为root用户的命令提示符 $为jboss用户的命令提示符<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Ø 安装J2SDK到/usr/local/j2sdk<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><chsdate w:st=&q ...
在Web开发中,有时我们希望页面提交但又不刷新当前页,此时可以使用XML HTTP Request object来做处理,例如如下代码: <HTML><HEAD><TITLE></TITLE><script language="javascript">function func_submit() {var xmlhttp;try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e1) {try {xmlhttp = new Act ...
目前已有开源的AOP框架都不太好用,要不就是需要在代码中嵌入特殊语法(AspectJ),要不就不是动态运行时自动识别(如JBoss-aop ,AspectWerkz等都需要写完以后运行自己的编译器编译然后才能使用),要是能有框架可以在运行是自动识别AOP的部分自动编译就好了,关注中...
Oracle10g设置字符集以sysdba身份登陆,修改props$表中NLS_CHARACTERSET=ZHS16GBK或自己需要的字符集,然后重新启动Oracle。
最近在5460的校友录上看到了好多中学同学,也又让我想起了那时的许多往事。
使用Mock Object进行测试 作者:kongxx MockObject概述 使用Mock Object进行测试,主要是用来模拟那些在应用中不容易构造(如HttpServletRequest必须在Servlet容器中才能构造出来)或者比较复杂的对象(如JDBC中的ResultSet对象)从而使测试顺利进行的工具。 目前,在Java阵营中主要的Mock测试工具有JMock,MockCreator,Mockrunner,EasyMock,MockMaker等,在微软的.Net阵营中主要是Nmock,.NetMock等。 以下就对在Java中使用的Mock
使用C#在应用程序间发送消息 作者:kongxx 首先建立两个C#应用程序项目。 第一个项目包含一个Windows Form(Form1),在Form1上有一个Button和一个TextBox。 第二个项目包含一个Windows Form(Form1),在Form1上有两个Button,分别用来测试第一个应用程序中Button的Click事件和修改第一个应用程序中TextBox的值。 第一个应用程序中Form的代码如下: using System;using System.Drawing;using System.Collections;using System.Compo ...
代码如下: using System;using System.Reflection;using System.Reflection.Emit ; public class TestReflection {private String file = @"TestReflection.exe"; static void Main(String[] args) {TestReflection test = new TestReflection();test.DisplayModules();test.DisplayTypes();test.DisplayMethods();tes ...
使用NUnit进行DotNet程序测试 作者:kongxx 介绍 NUnit是目前比较流行的.Net平台的测试工具,以下就简单介绍一下他的开发。 准备 要使用NUnit,首先要确保您的机器上有NUnit的开发包,您可以从http://www.nunit.org/ 地方获取并安装(目前版本是NUnit v2.1.91)。正确安装后会在开始菜单下添加一个NUnit 2.2项目。 属性说明 在开始写例子之前,先把NUnit的属性说明一下: TestFixture (NUnit2.0) 标识当前类是一个包含测试方法的类。
JBoss开发Web Service 作者:kongxx 配置 使用JBoss版本<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on"><s ...
http://www.theserverside.com/news/thread.tss?thread_id=26955
千呼万唤始出来,Eclipse总算出3.0版了
//The Server using System;using System.IO;using System.Net;using System.Net.Sockets;using System.Text; namespace SocketTest{public class Server3{public Server3(){}public void run() {string data;IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 9050);Socket newsock = new Socket(AddressFamily.InterNetwor ...
//使用dbutils1.0版本 import java.util.*;import java.util.logging.*;import java.sql.*;import org.apache.commons.dbutils.*;import org.apache.commons.dbutils.handlers.*; public class TestDBUnits {public static void main(String[]args) throws Exception {TestDBUnits test = new TestDBUnits();for(int i = 0 ; i & ...
using System;using System.Text;using System.Runtime.InteropServices;namespace DevInfo{??? class DeviceInfo??? {??????? public const int DIGCF_PRESENT??? = (0x00000002);??????? public const int MAX_DEV_LEN = 1000;??????? public const int SPDRP_FRIENDLYNAME = (0x0000000C);? ????????? // FriendlyName ( ...
Global site tag (gtag.js) - Google Analytics