自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(44)
  • 资源 (9)
  • 收藏
  • 关注

原创 angular 学习笔记

1. 多个module,需要调用angular.bootstrap(document.documentElement, ['myApp','myApp1']);??-->{{parsedValue}}{{parsedValue}}angular.module('myApp', []).controller('MyController',f

2016-08-21 08:59:36 120

原创 Semaphone

class SemaphoreTest {      private int signals = 0;      private int bound = 0;      public SemaphoreTest(int upperBound) {          this.bound = upperBound;      }      public synchronized void

2016-08-10 04:41:57 190

原创 Enterprise Project by Command

1、 创建EJB project,打包成Hello.jarbin   --- classes(EJBObject ,EJBHome,EJBLocalObject,EJBLocalHome,Session Bean)   --- META-INFO        --- ejb-jar.xml        --- weblogic-jar.xml       1)Bui

2009-10-29 17:35:00 137

原创 jar Command

 用法:jar {ctxu}[vfm0Mi] [jar-文件] [manifest-文件] [-C 目录] 文件名 ...      选项:      -c 创建新的存档   -t 列出存档内容的列表   -x 展开存档中的命名的(或所有的〕文件   -u 更新已存在的存档   -v 生成详细输出到标准输出上   -f 指定存档文件名   -m 包含来自标明文件的标

2009-10-29 15:58:00 213

原创 SCJP---Chap01

Q1:What will happen when you try to compile and run the following program?  Select the right answer:   A. THe code compiles and displays "mpg:50" if the command-line argument is "Highway".If the

2009-10-25 11:24:00 126 1

原创 面试

1 每个请求都会被filter处理吗?都会被listener处理吗。2 listener有几种?3 如何优化数据库?4 hibernate session在页面上保留,如果一个bean是lazy load,到页面时,session 已经关掉了。没办法再取到字段的值了。5 prepare statement 和statement的差异6 index建多了,也不好,会为什么?7

2009-10-22 23:56:00 317

原创 Java Links

 http://java.boot.by/wcd-guide/ch06s02.html http://docstore.mik.ua/orelly/java-ent/servlet/index/idx_b.htm http://www.orionserver.com/docs/specifications/jsp-1_2-fcs-spec.pdf http://www.webspher

2009-10-08 18:04:00 99

原创 Include directive and Include action

http://rainmanjin.javaeye.com/blog/476838 http://www.orionserver.com/docs/specifications/jsp-1_2-fcs-spec.pdf 1 语法不同       --- include directive          -------- include action静态include是在

2009-10-07 18:21:00 807

原创 SSL

(1) service call---client provide   logger.log(Level.INFO,"DM######connect documentum service...");  CB_ServiceProxy p = new CB_ServiceProxy();  //p.setEndpoint("http://localhost:5555/Documentum_CB_

2009-09-21 09:56:00 486

原创 常用命令行

 1、java -Djava.ext.dirs="C:/axis2141/lib" org.apache.axis2.wsdl.WSDL2Java -uri http://localhost:8080/axis2/services/AddressBookService?wsdl -o C:/TibcoBusinessStudio/workspace/samples/pojo/stub

2009-09-14 11:11:00 71

原创 Insertion Sort

 package com.citibank.aimy.example.sort;                                  import  java.util.

2009-09-11 21:38:00 316

原创 SSL

 /* * Created on Jul 30, 2009 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */package com.citigroup.ci.common.util;import

2009-09-11 21:29:00 445

原创 数据库优化

 这个是我以前写给我部门的一个技术心得,鄙人只是搞java开发的,不是专业的DBA,只是喜欢钻研数据库方面的的东西。 知道javaeye高人很多,如果我写的不对的地方,欢迎友好讨论,谢绝漫骂攻击。 1:前言       数据库优化是一个很广的范围,涉及到的东西比较多,并且每个特定的数据库,其具体的优化过程也是不一样的.因为优化的很大一部分最终都要跟具体的数据库系统细节打交道,在此不

2009-09-02 09:55:00 358

原创 Hibernate Transaction

 事务(Transaction)是工作中的基本逻辑单位,可以用于确保数据库能够被正确修改,避免数据只修改了一部分而导致数据不完整,或者在修改时受到用户干扰。作为一名软件设计师,必须了解事务并合理利用,以确保数据库保存正确、完整的数据。数据库向用户提供保存当前程序状态的方法,叫事务提交(commit);当事务执行过程中,使数据库忽略当前的状态并回到前面保存的状态的方法叫事务回滚(rollback

2009-09-01 12:52:00 836

原创 Hibernate Cache

 Cache就是缓存,它往往是提高系统性能的最重要手段,对数据起到一个蓄水池和缓冲的作用。Cache对于大量依赖数据读取操作的系统而言尤其重要。在大并发量的情况下,如果每次程序都需要向数据库直接做查询操作,它们所带来的性能开销显而易见,频繁的网络传输、数据库磁盘的读写操作都会大大降低系统的整体性能。此时,如果能把数据在本地内存中保留一个镜像,下次访问时只需从内存中直接获取,那么显然可以带来显著

2009-09-01 12:50:00 374

原创 如何在struts+spring+hibernate的框架下构建低耦合高内聚的软件

 1. 编写DAO的时候不要直接去使用hibernate或spring对hibernate的支持。现在我们在编写DAO的时候普遍都是直接继承spring对hibernate的封装类HibernateDaoSupport,然后使用该类提供的诸如等等。另外,在使用方法实现一些更复杂的hibernate功能的时候还会使用hibernate的类,诸如Query, Session, Type等。这样直接

2009-09-01 12:43:00 412

原创 WAS MDBSample

1、Install       cd $serverRoot/profiles/AppSrvSG01/bin(C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrvSG01/bin)     startServer -server1     cd  $serverRoot/samples/bin(C:/Program Fil

2009-08-27 19:56:00 978

原创 Primitive Type

 1、primitive object is immutable.如果你改变了一个primitive object的值,你等于新建了一个primitive type对象,并将引用指向新的对象,已经不是原来的对象。     public class PrimitiveArguments { public void addInt(int a){ a++; } publi

2009-08-23 00:34:00 341

原创 http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp

 http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp

2009-08-19 11:57:00 488

原创 ResourceBundle

 ResourceBundle使用ResourceBundle访问本地资源        在设计时,我们往往需要访问一些适合本地修改的配置信息,如果作为静态变量,那么每次修改都需要重新编译一个class,.config保存此类信息并不适合,这时我们需要ResourceBundle。   通过ResourceBundle,我们需要访问位于/WEB-INF/classes目录下的一个后缀名为prope

2009-08-11 09:38:00 423

原创 ClassLoader Load Resource

(一) ClassLoader file 平时写程序的时候,很多时候提示文件找不到,而抛出了异常,现在整理如下 一 相对路径的获得    说明:相对路径(即不写明时候到底相对谁)均可通过以下方式获得(不论是一般的java项目还是web项目)         String relativelyPath=System.getProperty("user.dir");          

2009-08-10 20:28:00 652

原创 WAS 缓存

 在项目中经常遇见这样的问题:修改应用的配置文件web.xml后,无论重启应用还是重启WebSphere服务器,都不能重新加载web.xml,导致修改的内容无效。 这个问题困扰了我好久,即使删除了${was安装目录}/IBM/WebSphere/AppServer/profiles/AppSrv01/下的temp和wstemp两个缓存文件夹下的临时文件,重启后还是无效。几经折腾,后来终

2009-08-10 20:13:00 694

原创 doc

 http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp

2009-08-07 09:52:00 237

原创 Collections

一、Collection Hierarchy      List:An ordered data items.     Set:Unique data itme.There is no duplicate element     Map:maps the keys to values.二、Fetures of collections       Performance

2009-08-03 16:23:00 329

原创 Proxy

Provide a placeholder or proxy for another project to access it.Here are several situations in which the proxy pattern is applicable. 一、A virtual proxy which creates an expensive object on deman

2009-07-27 09:30:00 313

原创 Thread Lock

一、 Create a thread   A thread can be created in two forms:extend thread or complement runnable interface.   (1) Extend Thread in 3 step:        1 Define a thread by extending a thread class,over

2009-07-21 18:04:00 1863

原创 RMI

1、RMI概念     Distributed Computing is known as exchange message among many machines on the network.Except RMI ,there are other distributed computing techenologies ,such as CORBO(Common Object Request

2009-07-21 17:58:00 428

原创 Input & Output in Java

Questions(basic knowledge):1  How to read or write data in binary format(bytes or characters)2  How to read or write data in text format3  How to read or write data in Objects Main Samples:

2009-07-14 09:42:00 571

原创 File separator

 1  System-dependent separator(/ for windows,/ for linux&unix).  2  Root path name  File root = new File("/");//System root path System.out.println(root.getAbsolutePath()); File usedir =

2009-07-14 09:28:00 273

原创 String Doubts

一、"HEllo Richar"是在编译时期保存到常量池里面的,而new String("HEllo Emmy")是在运行期间实例化出来的对象,两者比较一定是不一样的。     String str1 = new String("HEllo Emmy");System.out.println(str1.hashCode());str1 = "HEllo Richar";System

2009-07-07 12:30:00 256

原创 Variables & Functions Override

 1 instance variables & instance function  public class TestThis { public class Father{ public String name ="Father public name";

2009-07-07 12:28:00 310

原创 Variables & Functions Call

1 instance variables & instance function  public class TestThis { public class Father{ public String name ="Father public name";

2009-07-07 12:09:00 305

原创 Father & Son

1、instance varialbe & instance functionpublic class TestThis { public class Father{ public String name ="Father public name"; public void print(){ System.out.println("Father func

2009-07-06 16:23:00 298

原创 OutputStream&InputStream

1、Reader和IutputStream的区别:     Reader读取的是16-bit character数据,InputStream 读取出来的是8-bit的binary 数据。2、Reader的实例     BufferedReader的参数是Reader,BufferedInputStream的参数时InputStream.     BufferedReader的用途:

2009-07-06 14:09:00 350

原创 Hashset

List 和 Set 的区别:Java中有两类集合(Collection),一类是List,一类是Set,前者是有序的,元素可以重复,后者是无序的,元素不可以重复 HashCode的用途:那么在set类型的集合中,如何判断元素是否重复呢,这就需要使用Object.equals方法,但如果元素很多了,添加一个新元素时,比较的次数 就很多,例如已经有100个元素了,添加第101个元素时

2009-07-06 09:58:00 497

原创 AXis2 Client pattern

1 RPC clientpublic class StockQuoteADBClient { public static void main(String[] args) throws AxisFault {  // TODO Auto-generated method stub  EndpointReference endpoint = new EndpointReference("http

2009-06-23 07:20:00 65

原创 SOAPMonitor Configuration

SOAPMonitor Configuration1>Enable SOAPMonitor module,add below text into axis2.xml  2>Config SOAPMonitorService,add below text into web.xml SOAPMonitorServiceSOAPMonitorService

2009-06-22 19:09:00 87

原创 Axis常见命令

(1)wsdl2java Axis2是常用的一种SOAP engine,但是它提供的wsdl2java的命令行工具的说明比较简单,没有具体的例子。下面举出几个例子:从最简单的开始 ,-uri 指定wsdl文件> WSDL2Java -uri currencyConvert.wsdl-d 使用不同的data binding方法> WSDL2Java -uri currencyConvert.

2009-06-16 23:24:00 657

原创 XML配置文件集合

Tomcat的外关联配置文件                   maxActive            120                maxIdle            20                maxWait            10000                removeAbandoned            true                r

2009-06-16 07:04:00 136

原创 WSDL Sample

 http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://gcgi.citigroup.net/v1/ci/processing/wsdl/Applicant" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap1="http://schemas.xmlsoap.org/wsdl

2009-06-12 15:42:00 129

Test Java Sample

One Samples about class initial and puzzels about java

2009-10-14

project aimy

some project reference

2009-09-24

EMS DOC(PDF)

EMS DOC(user guide\integration guide)

2009-08-26

JD Example

Java Developer Example

2009-08-06

Wrox.Professional.Java.JDK.6.Edition.Jan.2007.pdf

Wrox.Professional.Java.JDK.6.Edition.Jan.2007.pdf

2009-07-28

Appress.SCJD.Exam

Appress.SCJD.Exam.with.J2SE

2009-07-28

Refactor your Patter

Refactor your Patter Replace Multiple Constructors with creation method

2009-07-22

Design Pattern for Dummies

Design Pattern Adapter Patter Factory & Stratege Pattern

2009-07-22

Axis2 sample

axis2 basic structure

2009-06-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除