导航

07 2012 档案

摘要:http://www.cnblogs.com/islands/archive/2008/06/27/1231288.htmlhttp://itextsharp.sourceforge.net/index.htmlhttp://www.koders.com/csharp/fid9CD533EF4F80FA1F37332A8D9570B4D9BD4A2129.aspx?s=fileusing System;using iTextSharp;using iTextSharp.text;using iTextSharp.text.pdf;using System.IO;using System.Co. 阅读全文

posted @ 2012-07-20 10:56 kingwangzhen 阅读(733) 评论(0) 推荐(0)

摘要:http://www.cnblogs.com/cbcye/archive/2009/03/10/1407672.html在企业开发过程中经常会遇到文件的压缩与解压,虽然网上很多流行的压缩文件格式都是RAR的,但是由于RAR不是一个开放的标准,因此ZIP成了更多人的选择。如果你不想自己开发的话可以选择开源的项目,比如SharpZipLib就是一个不错的选择。组件的使用比较简单,请参照下面的代码。点击下载项目源码http://www.icsharpcode.net/OpenSource/SharpZipLib/Code highlighting produced by Actipro CodeH. 阅读全文

posted @ 2012-07-20 10:47 kingwangzhen 阅读(164) 评论(0) 推荐(0)

摘要:过在CTP4中Code-First的功能,这篇文章会就Code-First的自定义数据库映射、相关的Api进行一些说明。回顾在上篇文章中我们看到了Code-Firts带来的强大的功能。其中我们来看看前面定义的一个实体:?1234567public class Department{ public int DepartmentID { get; set; } public string DepartName { get; set; } public virtual ICollection<Employee> Employees { get; set; }}而之后我们需要添加一个属性, 阅读全文

posted @ 2012-07-04 09:26 kingwangzhen 阅读(477) 评论(0) 推荐(0)

摘要:http://lavasoft.blog.51cto.com/62575/1908111、环境:Windows XPapache-activemq-5.2.0-bin.zip 2、安装解压缩到apache-activemq-5.2.0-bin.zip到一个目录,比如C:\apache-activemq-5.2.0 3、配置配置就在C:\apache-activemq-5.2.0\conf目录下三个文件activemq.xmlcredentials.propertieslog4j.properties 4、启动ActiveMQ运行C:\apache-activemq-5.2.0\bin\act. 阅读全文

posted @ 2012-07-02 11:29 kingwangzhen 阅读(583) 评论(0) 推荐(1)

摘要:http://www.cnblogs.com/tommyli/archive/2010/09/13/1825205.html1:前言 这一段给公司开发消息总线有机会研究ActiveMQ,今天撰文给大家介绍一下他的持久化消息。本文只介绍三种方式,分别是持久化为文件,MYSql,Oracle。下面逐一介绍。A:持久化为文件 这个你装ActiveMQ时默认就是这种,只要你设置消息为持久化就可以了。涉及到的配置和代码有 <persistenceAdapter> <kahaDB directory="${activemq.base}/data/kahadb"/> 阅读全文

posted @ 2012-07-02 10:53 kingwangzhen 阅读(2761) 评论(0) 推荐(1)

摘要:http://activemq.apache.org/nms/activemq-enumerate-destination-using-advisory-messages.htmlThis example shows you how to consume Advisory Messages from the Broker to enumerate various destination types./* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agre. 阅读全文

posted @ 2012-07-02 09:21 kingwangzhen 阅读(948) 评论(0) 推荐(0)