`
smartvessel
  • 浏览: 80743 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
tomcat在启动的时候使用了三个类加载器 private void initClassLoaders() { try { commonLoader = createClassLoader("common", null); if( commonLoader == null ) { // no config file, default to this loader - we might be in a 'single' env. ...
Tomact的启动开始于Bootstrap.java,在其init()中,首先要做的就是 setCatalinaHome(); setCatalinaBase(); initClassLoaders();  目的就是将tomcat启动的环境设置好,在进行classloader。 private void setCatalinaHome() { if (System.getProperty("catalina.home") != null) return; ...
//smartvessel@gmail.com class Table{ Name * p; size_t sz; publish: Table(size_t s = 15){p = new Name[sz=s];} ~Table(){delete[]p ;} ...... } void h() { Table t1; Table t2 = t1; Table t3; t3 = t2; }   在h()结束时,默认构造函数调用了2次,而析构函数被调用了3次,为何? Table t1; 调用1次默认构造函数 Table t2 = t1;默 ...
Boost asio Tutorial 例子Timer.5 - Synchronising handlers in multithreaded programs编译错误 作者:smartvessel@gmail.com 环境:cygwin+boost1.41.0   报错信息: make all Building file: ../src/boosthello.cpp Invoking: Cygwin C++ Compiler g++ -D__USE_W32_SOCKETS -D_WIN32_WINNT -I"D:\cygwin\usr\local\include ...
Eclipse+Cygwin+GCC+Boost 使用Asio的环境配置 作者:smartvessel@gmail.com   例子取自Boost的文档   #include <boost/asio.hpp> #include
Thanks for Stefan Fischerländer’s work(Stefan Fischerländer’s Blog) Install Cygwin. Make sure that you also install gcc, g++, boost, make and gdb – you should find all of them within the Devel section of the Cywin installer. Put your Cygwin home and Cygwin bin directory in your PATH variable. ...
作者:smartvessel@gmail.com 1.       安装cygwin, 搭建在windows环境下的gcc, g++开发环境 下载cygwin(http://www.cygwin.com/), 双击setup.exe,开始安装 Step1: Step2:选择将cygwin安装到本地
首先安装Oracle,以Oracle 817为例,作为ODBC开发者的客户端,此版本是偶的最爱,只需要一张光碟,缺省安装就可以了,不像9i和10g,要么要2、3张碟,要么定制安装,才能使用Oracle ODBC driver。 一、建立服务名 1、选择“Net8 Configuration Assistant” ,选择“本地网络服务名配置”。 2、选择“添加”。 3、选择“Oracle 8i数据库或服务”。 4、输入服务名。此为远程数据库已经定制好的数据库服务名字,比如“ORCL”。 5、选择网络协议“TCP”。 6、输入主机名和端口名。比如“DB”和“1521”。 7、选择是否测试。 8、输入 ...
can bind a long value only for insert into long column Oracle这个错误在网络上讨论比较多,在insert数据到Oracle数据库的时候,会引发这个错误。 大体上可以分为两类,一是由于字符集引起,二是由jdbc的驱动引发,当然也不排除你的insert的数据是在太大。 我在安装siebel的时候,发现在导入数据的时候,出现这个错误,费了很长时间,最终解决。 使用jdbc驱动时候,不要使用Oracle的驱动,而是使用siebel自带的驱动才可以。 在ODBC数据源新建一个jdbc驱动,使用siebel自带的驱动 siebel Ora ...
转自http://hi.baidu.com/zxq211103/blog/item/f00a7a63ad47fc620c33fa0d.htmlOracle 10G重建EM DB Control.1.drop configuration files and repository run :emca -deconfig dbcontrol db -repos drop  2. Logon SQLPLUS as user SYS or SYSTEM, and drop the sysman account and mangement objects:a. drop user sysman casc ...
致敬原作者—这篇文章我转贴出来收藏了。在Java语言中, abstract class 和interface 是支持抽象类定义的两种机制。正是由于这两种机制的存在,才赋予了Java强大的 面向对象能力。abstract class和interface之间在对于抽象类定义的支持方 ...
Global site tag (gtag.js) - Google Analytics