随笔 - 34, 文章 - 1, 评论 - 2, 引用 - 0
数据加载中……

birt ----- report tool

1、 http://www.eclipse.org/birt/  大概了解个网站导航
        内容包括:introduction(简介) , download(下载),install(安装指南) , tutorial(教程),faq等
2、下载,到http://download.eclipse.org/birt/downloads/  可以一一下载

该工具做中国式报表很不错

posted @ 2009-12-30 09:59 河马虎 阅读(183) | 评论 (0)编辑 收藏

如何做需求?

需求要做的事情:
    1).要明确谁或者那个岗位(或者角色)要使用这个系统
    2).该岗位的业务流程
    3) 该岗位能为系统提供哪些数据
    4 )该岗位系统从系统得到哪些数据或者功能

比如客户提出我要做一张桌子。
 那么需求人员就要获取一下信息:
1 ) 这张桌子给谁用,(给小孩还是大人?)
2) 这张桌子做什么用,(书桌还是饭桌?)
3) 客户希望这张桌子是一个什么样子的(材质、颜色 、高低、形状等属性)
有了以上这些信息才能进入分析设计阶段。
如何跟用户达成一致的需求和理解:
       当然,桌子是大家经常见到的东西,需求人员和客户沟通起来都比较好达成一致,计算机系统往往是从无到有的一个过程?那么如何准确的获取到用户的需求呢?通过做界面原型也许是一个很好的方式,界面原型特点是直观,界面原型是的客户和需求人员有了沟通的基础和桥梁,能帮助很快达成一致。

如何做以及维护界面原型:
1) 界面原型技术实现尽量简单,但功能上要丰富一些,因为要面对客户,而且界面原型甚至确定了后来的整个系统概貌
2) 界面原型最好要专人来维护,根据客户的要求不同进行修改和维护
3)界面原型的设计尽量让 需求和分析人员、美工人员共同完成。





posted @ 2009-12-30 09:41 河马虎 阅读(170) | 评论 (0)编辑 收藏

一个美国老工程师的心理话: 给年轻工程师的十大忠告

一个美国老工程师的心理话: 给年轻工程师的十大忠告

[1]好好规划自己的路,不要跟着感觉走!根据个人的理想决策安排,绝大部分人并不指望成为什么院
士或教授,而是希望活得滋润一些,爽一些。那么,就需要慎重安排自己的轨迹。从哪个行业入手,逐
渐对该行业深入了解,不要频繁跳槽,特别是不要为了一点工资而转移阵地,从长远看,这点钱根本不
算什么,当你对一个行业有那么几年的体会,以后钱根本不是问题。频繁地动荡不是上策,最后你对哪
个行业都没有摸透,永远是新手!   

[2]可以做技术,切不可沉湎于技术。千万不可一门心思钻研技术!给自己很大压力,如果你的心思全
部放在这上面,那么注定你将成为孔乙己一类的人物!适可而止为之,因为技术只不过是你今后前途的
支柱之一,而且还不是最大的支柱,除非你只愿意到老还是个工程师!   

[3]不要去做技术高手,只去做综合素质高手!在企业里混,我们时常瞧不起某人,说他“什么都不
懂,凭啥拿那么多钱,凭啥升官!”这是普遍的典型的工程师的迂腐之言。8051很牛吗?人家能上去必
然有他的本事,而且是你没有的本事。你想想,老板搞经营那么多年,难道见识不如你这个新兵?人家
或许善于管理,善于领会老板意图,善于部门协调等等。因此务必培养自己多方面的能力,包括管理,
亲和力,察言观色能力,攻关能力等,要成为综合素质的高手,则前途无量,否则只能躲在角落看示波
器!技术以外的技能才是更重要的本事!!从古到今,美国日本,一律如此!   

[4]多交社会三教九流的朋友!不要只和工程师交往,认为有共同语言,其实更重要的是和其他类人物
交往,如果你希望有朝一日当老板或高层管理,那么你整日面对的就是这些人。了解他们的经历,思维
习惯,爱好,学习他们处理问题的模式,了解社会各个角落的现象和问题,这是以后发展的巨大的本
钱,没有这些以后就会笨手笨脚,跌跌撞撞,遇到重重困难,交不少学费,成功的概率大大降低!

 [5]知识涉猎不一定专,但一定要广!多看看其他方面的书,金融,财会,进出口,税务,法律等
等,为以后做一些积累,以后的用处会更大!会少交许多学费!!   

[6]抓住时机向技术管理或市场销售方面的转变!要想有前途就不能一直搞开发,适当时候要转变为管
理或销售,前途会更大,以前搞技术也没有白搞,以后还用得着。搞管理可以培养自己的领导能力,搞
销售可以培养自己的市场概念和思维,同时为自己以后发展积累庞大的人脉!应该说这才是前途的真正
支柱!!!   

[7]逐渐克服自己的心里弱点和性格缺陷!多疑,敏感,天真(贬义,并不可爱),犹豫不决,胆怯,
多虑,脸皮太薄,心不够黑,教条式思维。。。这些工程师普遍存在的性格弱点必须改变!很难吗?只
在床上想一想当然不可能,去帮朋友守一个月地摊,包准有效果,去实践,而不要只想!不克服这些缺
点,一切不可能,甚至连项目经理都当不好--尽管你可能技术不错!   

[8]工作的同时要为以后做准备!建立自己的工作环境!及早为自己配置一个工作环境,装备电脑,示
波器(可以买个二手的),仿真器,编程器等,业余可以接点活,一方面接触市场,培养市场感觉,同
时也积累资金,更重要的是准备自己的产品,咱搞技术的没有钱,只有技术,技术的代表不是学历和证
书,而是产品,拿出象样的产品,就可技术转让或与人合作搞企业!先把东西准备好,等待机会,否
则,有了机会也抓不住!   

[9]要学会善于推销自己!不仅要能干,还要能说,能写,善于利用一切机会推销自己,树立自己的品
牌形象,很必要!要创造条件让别人了解自己,不然老板怎么知道你能干?外面的投资人怎么相信你?
提早把自己推销出去,机会自然会来找你!搞个个人主页是个好注意!!特别是培养自己在行业的名
气,有了名气,高薪机会自不在话下,更重要的是有合作的机会...   

[10]该出手时便出手!永远不可能有100%把握!!!条件差不多就要大胆去干,去闯出自己的事业,不
要犹豫,不要彷徨,干了不一定成功,但至少为下一次冲击积累了经验,不干永远没出息,而且要干成
必然要经历失败。不经历风雨,怎么见彩虹,没有人能随随便便成功!

posted @ 2009-12-24 11:27 河马虎 阅读(199) | 评论 (0)编辑 收藏

hibernate use Websphere datasource

reference  url:
    http://www.ibm.com/developerworks/websphere/techjournal/0609_alcott/0609_alcott.html

when  webSphere  application server  startup,  hibernate uses  WebSphere datasource.
step by  step:

     1  coding  statup  constom service

       import javax.management.Notification;
      import javax.management.NotificationFilterSupport;
      import javax.management.NotificationListener;
      import javax.management.ObjectName;
      
      public class WebsphereStartup implements CustomService,NotificationListener {
        public void initialize(Properties arg0) throws Exception {    
           NotificationFilterSupport filter = new NotificationFilterSupport();   
           filter.enableType(NotificationConstants.TYPE_J2EE_STATE_RUNNING);
           ObjectName target = new ObjectName("WebSphere:*,type=Server");   
           AdminServiceFactory.getAdminService().addNotificationListenerExtended(
            target,
            this,
            filter,
            null);
       } 
       public void shutdown() throws Exception {
         // When  was  shutdown,  this  method  is  executed
        
       } 
       public void handleNotification(Notification notification, Object handback) {
         //  write  init  code  here
         init();
       }
      }

     2  modify    hibernate config file  hibernate.cfg.xml

                     <property name="hibernate.connection.datasource">data  source  jndi</property>
                    <property name="hibernate.connection.username">name</property>
                     <property name="hibernate.connection.password">password</property>
                     <property name="hibernate.session_factory_name">HibernateSessionFactory</property>  
                      <property name="connection.autocommit">false</property>
                    <property name="net.sf.hibernate.transaction.JTATransactionFactory">net.sf.hibernate.transaction.WebSphereTransactionManagerLookup</property>
                      <property name="show_sql">false</property>
                     <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>

              注意:如果是非事务性数据源  那么在hibernate.cfg.xml  必须设置 <property name="connection.autocommit">false</property>
                      为false
                           
     3   create  datasource   jndi  on  was
             如果是非事务性数据源,在建立数据源时,也要设置为非事务性数据源。
      4    config  custom service  bean  on Websphere
             was console >servers> application server > server1>manage>custom service >new
       5 start Server

posted @ 2009-12-18 09:19 河马虎 阅读(545) | 评论 (0)编辑 收藏

WebSphere访问操作系统中文件 权限问题

参考:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rsec_serverpolicy.html

错误信息(在Systemout.Log文件中)
        java.security.AccessControlException: Access denied (java.io.FilePermission  
 解决方法
修改 server.policy 文件,在 install_root/properties/server.policy 中找到此文件。此文件包含这些缺省许可权:
// Allow to use ibm jdk extensions
grant codeBase "file:${was.install.root}/java/ext/-" {
permission java.security.AllPermission;
};
// Allow to use ibm tools
grant codeBase "file:${was.install.root}/java/tools/ibmtools.jar" {
permission java.security.AllPermission;
};
// Allow to use sun tools
grant codeBase "file:/QIBM/ProdData/Java400/jdk14/lib/tools.jar" {
permission java.security.AllPermission;
};
// Allow to use sun tools (V5R2M0 codebase)
grant codeBase "file:/QIBM/ProdData/OS400/Java400/jdk/lib/tools.jar" {
permission java.security.AllPermission;
};
// WebSphere system classes
grant codeBase "file:${was.install.root}/plugins/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${was.install.root}/lib/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${was.install.root}/classes/-" {
permission java.security.AllPermission;
};
// Allow the WebSphere deploy tool all permissions
grant codeBase "file:${was.install.root}/deploytool/-" {
permission java.security.AllPermission;
};
// Allow the WebSphere deploy tool all permissions
grant codeBase "file:${was.install.root}/optionalLibraries/-" {
permission java.security.AllPermission;
};
// Allow Channel Framework classes all permission
grant codeBase "file:${was.install.root}/installedChannels/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${user.install.root}/lib/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${user.install.root}/classes/-" {
permission java.security.AllPermission;
};

如果节点上有一些服务器程序需要许可权,而这些许可权在 server.policy 文件和 server.policy 文件中未定义为缺省值,那么更新 server.policy 文件。缺少许可权将创建 java.security.AccessControlException 异常。缺少的许可权在异常数据中列示。


然后重新启动服务器

posted @ 2009-12-09 17:04 河马虎 阅读(1425) | 评论 (0)编辑 收藏

startup class interface of tomcat \jboss \ webSphere

1   startup     class      on  jboss
    MBeanRegistration
        or
    ServiceMBeanSupport     和ServiceMBean
2   startup  class  on Websphere
    customService    interface  (need  com.ibm.ws.runtime.jar )

3   startup  class  on tomcat 
   ServletContextListener  interface

posted @ 2009-12-02 16:23 河马虎 阅读(233) | 评论 (0)编辑 收藏

Does WAS6.1 needs stubs for EJB3

trace: http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14023850

The need to use statically-defined stubs depends only on what kind of client you have; it doesn't depend at all on where the EJB is that you're looking up or invoking. If your client is a WebSphere container that's been upgraded via the EJB 3.0 feature pack, then we have technology in the container itself that will dynamically generate the client-side stub for you in-memory when it's needed, assuming that you at least have the EJB remote interface packaged where the client can access it. So if your client is the WAS web container, EJB container, or application client container and the client environment has had the EJB 3.0 feature pack applied, you should not need to generate or package any client-side stubs with your client. If your client environment is something other than the above, then you will need to generate the client-side stubs with the createEJBStubs tool that comes with the EJB 3.0 feature pack, and package the resulting stubs in your client package. Here's a snippet of the documentation that covers this in more detail:

Just-In-Time Deployment

The EJB 3.0 Feature Pack adds a new feature to WebSphere application server called Just-In-Time Deployment. With Just-In-Time Deployment, the EJB container dynamically generates the wrapper, stub, and tie classes in-memory as needed when the application is running. Additionally, the web container and application client containers dynamically generate the stub class required for remote EJB invocations. Effectively, this means that you do not need to process EJB 3.0 modules, web modules that invoke EJB 3.0 beans, or client modules that invoke EJB 3.0 beans, through the EJBDeploy tool prior to running them in WebSphere.

The createEJBStubs tool

Even though the Just-In-Time deployment feature will, in many cases, dynamically generate the RMI-IIOP stub classes that are required for invocation of remote EJB interfaces, there remain some cases where these stub classes are not dynamically generated. For EJB 3.0 clients not running inside a WebSphere feature-pack-upgraded web container, EJB container, or client container, it is necessary for you to generate the stub classes with the createEJBStubs tool, then make the generated stubs available in the client environment's classpath. Typically you would accomplish this by copying the generated stubs to the location where the client's business interface class resides.

To summarize, the createEJBStubs tool must be used to generate client-side stubs for the following environments:

* "Bare" Java SE clients, where a Java SE JVM is the client environment
* WebSphere Application Server container environments without the EJB 3.0 feature pack applied
* Non-WebSphere application server environments

 

posted @ 2009-11-24 15:46 河马虎 阅读(322) | 评论 (0)编辑 收藏

JDK配置

1   因为是默认安装,所以JDK1.5是安装在C:\Program Files\Java\jdk1.5.0里了。现在为三个变量设值; 
       
         新建 JAVA_HOME      设值     C:\Program Files\Java\jdk1.5.0 
        新建 CLASSPATH    设值     .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar 
        编辑   PATH 设值 ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin 

      注意事项: 

        配置JAVA_HOME变量的作用:JAVA_HOME路径下包括lib,bin,jre等文件夹,以后配tomcat,eclipse等java开发软件可能需要依赖此变量。 
       在设置系统变量Path(系统已经有),要注意前面的分号“;”,配置Path的作用:Path使系统可以在任何路径下识别java命令。 
        在设置系统变量CLASSPATH时,要注意前面的注意前面的“.;”,配置CLASSPATH变量的作用: 为系统指明java加载类(class or lib)的路径,只有类在classpath中,java命令才能识别,其中,%JAVA_HOME%就是引用前面指定的JAVA_HOME。
       用户变量的设置必须注销重登录后才起作用,但是当本次配置中所有环境变量都是系统变量,而设置系统变量的则不用。

2.    测试JDK1.5的环境变量是否配置成功。
   “开始”->“运行”,键入“cmd”进入命令提示符下,键入命令“java -version”,出现如下信息,说明环境变量配置成功:
java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

3. 用一个小程序测试JDK1.5是否能成功运行JAVA程序。
   现在我们编辑一个java小程序,然后进行测试。现在我们就直接在C盘建一个“Hello.java”的文件吧,并记事本打开它,在它里面输入如下代码: 
    

posted @ 2009-11-02 11:48 河马虎 阅读(129) | 评论 (0)编辑 收藏

英语口语100句

 Any day will do? 哪一天都可以?
 
Are you by yourself? 你一个人来吗?
   Any messages for me? 有我的留言吗?
  All right with you? 你没有问题吧?
  Are you free tomorrow? 明天有空吗?
  Are you kidding me? 你在跟我开玩笑吧?
  As soon as possible! 尽可能快!
  Back in a moment! 马上回来!
  Believe it or not! 信不信由你!
  Better luck next time! 下次会更好!
  Boy will be boys 本性难移!
  Come to the point! 有话直说!
  Do you accept plastic? 收不收行用卡?
  Does it keep long? 可以保存吗?
  Dont be so fussy! 别挑剔了!
  Dont count to me! 别指望我!
  Dont fall for it! 不要上当!
  Dont get me wrong! 你搞错了!
  Dont give me that! 少来这套!
  Dont let me down! 别让我失望!
Dont lose your head! 别乐昏了头! 
 Dont over do it! 别做过头了!
  Dont sit there daydreaming! 别闲着做白日梦!
  Dont stand on ceremony! 别太拘束!
  Drop me a line! 要写信给我!
  Easy come easy go! 来得容易去得也快!
  First come first served! 先到先得!
  Get a move on! 快点吧!
  Get off my back! 不要嘲笑我!
  Give him the works! 给他点教训!
  Give me a break! 饶了我吧!
  Give me a hand! 帮我一个忙!
  Great minds think alike! 英雄所见略同!
  Ill treat you to lunch. 午餐我请你!
  In one ear, out the other ear. 一耳进,一耳出!
  Im spaced-out! 我开小差了!
  I beg your pardon! 请你再说一遍!
  I cant afford that! 我付不起!
  I cant follow you! 我不懂你说的!
  I cant help it! 我情不自禁!
  I couldnt reach him! 我联络不上他!
  I cross my heart! 我发誓是真的!
  I dont mean it! 我不是故意的!
 I feel very miserable! 我好沮丧!  I have no choice! 我别无选择了!
  I watch my money! 视财如命!
  Ill be in touch! 保持联络!
  Ill check it out! 我去看看!
  Ill show you around! 我带你四处逛逛!
  Ill see to it! 我会留意的!
  Im crazy for you! 我为你疯狂!
  You make me jump! 你吓了我一跳!
  Make up your mind. 作个决定吧!
  Make yourself at home! 就当在家一样!
  My mouth is watering! 我要流口水了!
  Never heard of it! 没听说过!
  Nice talking to you! 很高兴和你聊天!
  No doubt about it! 勿庸置疑!
  No pain no gain! 不经一事,不长一智!
  None of your business! 要你管?
  There is nothing on your business! 这没你的事!
  Now you are really talking! 说得对!
  Please dont rush me! 请不要吹促我!
  Please keep me informed! 请一定要通知我
She looks blue today. 她今天很忧郁!  She is under the weather. 她心情不好!
  So far, so good. 过得去。
  Speaking of the devil! 一说曹操,曹操就到!
  Stay away from me! 离我远一点!
  Stay on the ball! 集中注意力!
  That makes no difference. 不都一样吗?
  Thats a touchy issue! 这是个辣手得问题!
  Thats always the case! 习以为常!
  Thats going too far! 这太离谱了!
  Thats more like that! 这才象话嘛!
  The answer is zero! 白忙了!
  The dice is cast! 已成定局了!
  The same as usual! 一如既往!
  The walls have ears! 隔墙有耳!
  There you go again! 你又来了!
  Time is running out! 没有时间了!
  We better get going! 最好马上就走!
  Well discuss it later! 回头再说吧!
  Well find out shortly! 我们很快就知道了!
  We are all for it! 我们全都赞成!
  Weve been expecting you! 我们正等着你呢!
  What a good deal! 真便宜!
  What a let down! 真令人失望!
  What do you figure? 你有什么想法?
  What happened to you? 你怎么了?
  What should I do? 我应该怎样做?
  Whats would you recommend? 你有何意见?

posted @ 2009-10-30 15:55 河马虎 阅读(150) | 评论 (0)编辑 收藏

JDIC-JDesktop Integration Components (JDIC)

JDIC-JDesktop Integration Components (JDIC)

JDIC主页:
http://javadesktop.org/articles/jdic/index.html
JDIC作用:
  • Embedding HTML content
  • Starting desktop file viewers on content unknown to the browser
  • Sending e-mail using the desktop mailer via mailto: URLs
  • Dispatching URLs into new browser instances
  • posted @ 2009-10-27 08:40 河马虎 阅读(134) | 评论 (0)编辑 收藏

    仅列出标题
    共4页: 上一页 1 2 3 4 下一页