<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[im110的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/im110</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; im110]]></copyright><item><title><![CDATA[OSGI学习总结]]></title><link>https://blog.csdn.net/im110/article/details/27109751</link><guid>https://blog.csdn.net/im110/article/details/27109751</guid><author>im110</author><pubDate>Mon, 26 May 2014 20:48:46 +0800</pubDate><description><![CDATA[最近学习了解了一下OSGI技术，感觉OSGI虽然有一定的学习难度，但是最终掌握和推广之后将是一项对系统开发比较有用的技术。在此和大家分享一下自己的感悟。
 
1、什么是OSGI
    OSGI直译为“开放服务网关”，是一个由OSGI联盟发起的以Java为技术平台的动态模块化规范。目前主要的实现有：apache的Felix、Eclipse的Equinox等
 
2、使用OSGI的好处
]]></description><category></category></item><item><title><![CDATA[关于java.net.URLConnection]]></title><link>https://blog.csdn.net/im110/article/details/7398729</link><guid>https://blog.csdn.net/im110/article/details/7398729</guid><author>im110</author><pubDate>Tue, 27 Mar 2012 14:22:49 +0800</pubDate><description><![CDATA[应用场景：人力资源系统在添加人员或修改人员信息时，向其他系统发送信息。其他系统将读取这条发送过来的人员ID，然后从人力资源的数据库中读取人员信息，并将信息添加或修改写到本系统的数据库中。
代码：
         URL itsmUrl = new URL(Constants.Send_Post_ITSM);
         URLConnection itsmConn = itsmUrl]]></description><category></category></item><item><title><![CDATA[项目运维问题总结]]></title><link>https://blog.csdn.net/im110/article/details/6977970</link><guid>https://blog.csdn.net/im110/article/details/6977970</guid><author>im110</author><pubDate>Wed, 16 Nov 2011 18:03:19 +0800</pubDate><description><![CDATA[1、项目更新文件的时候一定要删除服务器对jsp预编译生成的文件目录。（例如在resin下就是：webapps/项目目录/WEB-INF/work）否则可能产生一些很隐蔽的问题，例如，你的JSP页面引用了一个其他类的静态常量，而你修改了这个静态常量的值，项目更新的时候，你更新了常量文件的class文件，没有更新JSP文件。这时候你访问这个JSP页面，得到的常量还是原先的值。因为resin服务器认为这]]></description><category></category></item><item><title><![CDATA[使用Ajax提交表单的注意事项]]></title><link>https://blog.csdn.net/im110/article/details/6974973</link><guid>https://blog.csdn.net/im110/article/details/6974973</guid><author>im110</author><pubDate>Tue, 15 Nov 2011 22:02:24 +0800</pubDate><description><![CDATA[当页面表单中有些数据需要使用AJAX方式与后台进行交互验证时，不能在表单的onsubmit事件中进行处理。如果写在了onsubmit中，则不管你的AJAX返回结果是什么，表单都会提交。正确的做法是：将提交按钮替换为button，在button中如果验证数据合法，则提交表单，否则返回。]]></description><category></category></item><item><title><![CDATA[关于Java的原始类型自动包装与解包机制]]></title><link>https://blog.csdn.net/im110/article/details/6951209</link><guid>https://blog.csdn.net/im110/article/details/6951209</guid><author>im110</author><pubDate>Wed, 09 Nov 2011 10:23:09 +0800</pubDate><description><![CDATA[众所周知java对原始数据类型如int、char、long等基本数据类型有自动打包成相应的复合类型Integer、Character、Long等的机制；也可以将复合类型自动转换为原始类型。
这取决于程序要进行怎样的处理。如：
int i = 0;
Integer obj = i;
-----
Integer obj = new Integer(0);
int i = obj;
但是并]]></description><category></category></item><item><title><![CDATA[关于Arrays.asList()]]></title><link>https://blog.csdn.net/im110/article/details/6951130</link><guid>https://blog.csdn.net/im110/article/details/6951130</guid><author>im110</author><pubDate>Wed, 09 Nov 2011 10:09:05 +0800</pubDate><description><![CDATA[java.util包中的Arrays类的asList方法可以接收可变参数（这意味着也可以接受一个数组），并使用这些参数，组建并返回一个固定大小的List。
这里需要注意的一个问题是：如果你传递的是一个原始类型的数组的话，他会将整个数组作为一个List元素；而如果你传递的是包装后的类型或其他复合类型，那么List中的元素就是数组中的各个元素，示例如下：
char[] primateArr = {]]></description><category></category></item><item><title><![CDATA[从键盘接收N个数字，按从小到大进行排列——C语言]]></title><link>https://blog.csdn.net/im110/article/details/6892235</link><guid>https://blog.csdn.net/im110/article/details/6892235</guid><author>im110</author><pubDate>Thu, 20 Oct 2011 21:57:31 +0800</pubDate><description><![CDATA[#include 

void swap(int arr[], int n)
{
  int i;
  int j;
  int temp;
  int *p, *q;
  for(i = 0; i < n - 1; i++) {
    for(j = i + 1; j < n; j++) {
      if(arr[i] > arr[j]) {
          p]]></description><category></category></item><item><title><![CDATA[用Java图形窗口显示网页内容]]></title><link>https://blog.csdn.net/im110/article/details/6572833</link><guid>https://blog.csdn.net/im110/article/details/6572833</guid><author>im110</author><pubDate>Tue, 28 Jun 2011 15:38:00 +0800</pubDate><description><![CDATA[     其实非常简单，懒得多做说明了，直接上代码： import java.awt.Desktop;import java.net.URL;import javax.swing.JEditorPane;import javax.swing.JFrame;import javax.swing.SwingUtilities;import javax.swing.eve]]></description><category></category></item><item><title><![CDATA[js实现图片的延迟加载]]></title><link>https://blog.csdn.net/im110/article/details/6450322</link><guid>https://blog.csdn.net/im110/article/details/6450322</guid><author>im110</author><pubDate>Fri, 27 May 2011 15:51:00 +0800</pubDate><description><![CDATA[      项目进展得差不多了，闲得蛋疼。开始关注各种高性能WEB技术。看到一篇博客说土豆网的图片是延迟加载的。原理是这样：页面可见区域以下的图片先不加载，等到用户向下滚动到图片位置时，再进行加载。这样做的好处在哪里？——当页面有好几屏内容时，有可能用户只看前几屏的内容，这样我们就可以只加载用户需要看的图片，减少服务器向用户浏览器发送图片文件所产生的负荷。于是我打开了土豆网，没发现它的这种功能。但是一想，这确实是挺有意思的。这跟人人网的分批加载新鲜事的有异曲同工之妙，于是想自己coding实现一下。以下是偶]]></description><category></category></item><item><title><![CDATA[Android笔记——无代码，有真相]]></title><link>https://blog.csdn.net/im110/article/details/6400101</link><guid>https://blog.csdn.net/im110/article/details/6400101</guid><author>im110</author><pubDate>Fri, 06 May 2011 15:59:00 +0800</pubDate><description><![CDATA[1、千万不要在自定义线程里操作UI的东西，会出现各种意想不到的问题。2、如果想要异步加载UI，可以启动一个自定义线程，在线程里向一个自定义Handler里发送消息，在Handler操作UI。3、在Adapter的getView()方法中为ListView加载数据时，它是按照ListView的高度进行加载的，比如，它觉得 你这个高度可以容纳两行数据，那么会此基础上预先再多加载几条数据。如果你没有为ListView设置固定高度，那么它会调用getView方法N多次——即使你只有一条数据。因此使用ListView]]></description><category></category></item><item><title><![CDATA[A fatal error has been detected by the Java Runtime Environment]]></title><link>https://blog.csdn.net/im110/article/details/6309587</link><guid>https://blog.csdn.net/im110/article/details/6309587</guid><author>im110</author><pubDate>Fri, 08 Apr 2011 14:41:00 +0800</pubDate><description><![CDATA[<br />在Android项目中写了一个包含main方法的Java程序，在Run as/Java application时出现如下错误：<br /> <br />#<br /># A fatal error has been detected by the Java Runtime Environment:<br />#<br />#  Internal Error (classFileParser.cpp:3375), pid=6184, tid=6300<br />#  Error: ShouldNo]]></description><category></category></item><item><title><![CDATA[ActiveMQ简单应用]]></title><link>https://blog.csdn.net/im110/article/details/6278103</link><guid>https://blog.csdn.net/im110/article/details/6278103</guid><author>im110</author><pubDate>Fri, 25 Mar 2011 16:06:00 +0800</pubDate><description><![CDATA[闲来无事，想学习下JMS，从众多实现中发现了ActiveMQ——主要是因为ActiveMQ的相关资料很丰富。一开始自己用一个Stuts2的Action来发送消息，用MessageListener来监听消息，一切无碍。想要将监听到的文本消息发送到页面时，发现从MessageListener中无法得到HttpServletResponse之类的对象，最终没有想出可行的解决方法。于是想到第二种方案：在一个Action中手工去接收消息，并将消息写到响应流中。前台页面使用Ajax来不断请求这个Action。差一点就成]]></description><category></category></item><item><title><![CDATA[页面中使用flash播放器]]></title><link>https://blog.csdn.net/im110/article/details/6265458</link><guid>https://blog.csdn.net/im110/article/details/6265458</guid><author>im110</author><pubDate>Mon, 21 Mar 2011 17:22:00 +0800</pubDate><description><![CDATA[<br /><embed<br />  flashvars="file=<%=basePath %>images/video/babybel.flv"<br />  allowfullscreen="true"<br />  allowscripaccess="always"<br />  id="player1"<br />  name="player1"<br />  src="images/video/mediaplayer.swf"<br />  width="480"<br />  height=]]></description><category></category></item><item><title><![CDATA[从Oracle官网上下载java EE API]]></title><link>https://blog.csdn.net/im110/article/details/6250056</link><guid>https://blog.csdn.net/im110/article/details/6250056</guid><author>im110</author><pubDate>Tue, 15 Mar 2011 10:27:00 +0800</pubDate><description><![CDATA[<br />地址:<br /> <br />https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=java_ee_6u1_docs-JPR@CDS-CDS_SMI]]></description><category></category></item><item><title><![CDATA[关于hibernate查询时出现： 只进 ResultSet 不支持请求的操作]]></title><link>https://blog.csdn.net/im110/article/details/6229888</link><guid>https://blog.csdn.net/im110/article/details/6229888</guid><author>im110</author><pubDate>Mon, 07 Mar 2011 18:07:00 +0800</pubDate><description><![CDATA[<br />出现如题所示的异常，多半是因为在为query设置开始索引和最大记录数时，出现了负数导致的。<br />如：<br />query = this.getQuery(hql)<br />  .setFirstResult(pager.getFirstIndex())<br />  .setMaxResults(pager.getPageSize());<br />如果pager.getFirstIndex())或者pager.getPageSize()出现了负数，就会出现这种异常。<br /> <b]]></description><category></category></item><item><title><![CDATA[Java实现跨域文件下载（下载远程文件）]]></title><link>https://blog.csdn.net/im110/article/details/6207000</link><guid>https://blog.csdn.net/im110/article/details/6207000</guid><author>im110</author><pubDate>Fri, 25 Feb 2011 10:55:00 +0800</pubDate><description><![CDATA[<br />啥也不说，光贴代码，你懂的。<br /> <br /> public static void main(String[] args) throws Exception{<br />  String url = "http://www.baidu.com/img/baidu_jgylogo1.gif";<br />  URL u = new URL(url);<br />  InputStream is = u.openStream();<br />  OutputStream os = new ]]></description><category></category></item><item><title><![CDATA[一个页面响应不能结束的问题]]></title><link>https://blog.csdn.net/im110/article/details/6203218</link><guid>https://blog.csdn.net/im110/article/details/6203218</guid><author>im110</author><pubDate>Wed, 23 Feb 2011 18:17:00 +0800</pubDate><description><![CDATA[整理老系统访问某一页面时，页面跳转成功，但是进度条一直在闪烁——貌似还有东西未加载完成，但是页面一直在等待，过了N久IE崩溃。在访问此页面时，resin控制台上有如下警告信息:[org.apache.struts2.util.SubsetIteratorFilter]-[WARN] Source is null returning empty set.最后发现页面有一个flash无法显示，页面好像一直在等待下载此flash，而这个FLASH文件却不存在。下载了一个flash文件更改文件名，存放到项目相应位置]]></description><category></category></item><item><title><![CDATA[sitemesh异常及解决]]></title><link>https://blog.csdn.net/im110/article/details/6202491</link><guid>https://blog.csdn.net/im110/article/details/6202491</guid><author>im110</author><pubDate>Wed, 23 Feb 2011 14:48:00 +0800</pubDate><description><![CDATA[<br />整合以前的老系统，当访问某一Action并跳转到某一页面时，sitemesh报异常如下：<br /> <br />java.lang.ArrayIndexOutOfBoundsException: -1<br /> 	at com.opensymphony.module.sitemesh.html.HTMLProcessor$1.currentBuffer(HTMLProcessor.java:74)<br /> 	at com.opensymphony.module.sitemesh.html]]></description><category></category></item><item><title><![CDATA[在Spring里定义多个同名bean产生的错误]]></title><link>https://blog.csdn.net/im110/article/details/6193768</link><guid>https://blog.csdn.net/im110/article/details/6193768</guid><author>im110</author><pubDate>Fri, 18 Feb 2011 17:00:00 +0800</pubDate><description><![CDATA[<br />在Spring里不能定义两个或以上的同名bean。用MyEclipse编写Spring的Bean定义文件时，如果有同名的Bean，MyEclipse会给出错误提示。<br />但是如果你定义了两个同名的Bean，但是写在了不同的文件里，那么MyEclipse是发现不了这种错误的。如果你在其他bean定义中引用了这个重复定义的bean，那么，在你启动服务器的时候会报错，大致是:Can't creat bean 'XXX' ... ... Can't convert from $proxy21 to]]></description><category></category></item><item><title><![CDATA[一个双色球模拟程序引发的思考]]></title><link>https://blog.csdn.net/im110/article/details/6193726</link><guid>https://blog.csdn.net/im110/article/details/6193726</guid><author>im110</author><pubDate>Fri, 18 Feb 2011 16:50:00 +0800</pubDate><description><![CDATA[<br />本人偶尔会去买注双色球，使自己不致于失去最后一丝发财的梦想。~~<br />选择号码是个麻烦的事情。于是乎用JAVA写了一个双色球随机号程序。代码如下：<br /> <br />package com.mainone.util;<br />import java.util.ArrayList;<br />import java.util.List;<br />import java.util.Random;<br />/**<br /> * @author 武广阔<br /> * @date:2]]></description><category></category></item></channel></rss>