Webshphere Server: vertical clustering, multi-server in SMP(symmetric multi-processor) horizontal clustering, multi physical server
WPF trial: http://www.ibm.com/developerworks/downloads/ws/wpf/index.html?S_TACT=105AGX28&S_CMP=DLMAIN http://www-10.lotus.com/ldd/pfwiki.nsf RAD + web service WPF + web service WPF + LOG WPF + tomcat + debug http://www-10.lotus.com/ldd/pfwiki.nsf/dx/-debugging-information http://www.ibm.com/developerworks/forums/thread.jspa?threadID=120264 generate schema: http://www-10.lotus.com/ldd/pfwiki.nsf/dx/08122008084644PMWEB2X9.htm web service: http://www-10.lotus.com/ldd/pfwiki.nsf/dx/06182008070049PMWEBUZ3.htm
from https://www6.software.ibm.com/developerworks/cn/education/webservices/ws-eclipse-javase1/section2.html 1. new Java Project make sure JRE is JAVA SE 6 2. create POJO package com.myfirst.wsServer; import Javax.jws.WebService; @WebService public class SayHello { private static final String SALUTATION = "Hello"; public String getGreeting( String name ) { return SALUTATION + " " + name; } } 3. 用 wsgen 生成中间文件 wsgen -cp ./bin -keep -s ./src -d ./bin com.myfirst.wsServer.SayHello 4. web service publish package com.myfirst.wsServer; import Javax.xml.ws.Endpoint; public class RunService { /** @param args */ public static void main(String[] args) { System.out.println("SayHello Web Service started."); Endpoint.publish("http://localhost:8080/wsServerExample", new SayHello()); } } 5. run as java applicaiton 启动服务 6. 通过 http://localhost:8080/wsServerExample?wsdl 查看wsdl文件内容 7. Eclipse 提供了 Run > Launch the Web Services Explorer 来测试web service. 根据WSDL文件就可以了。
JAX-RPC AXIS 1实现了这种RPC的方式,基于SOAP,WSDL. AXIS 1是web service的一种实现方式? AXIS 2采用了JAX-WS 2. websphere SOA的三个概念有: WPS(Websphere Process Server,这个我开始老是搞错,以为是portal server); ESB; WSRR(Websphere Service Registry Repository) WID(WebSphere Integration Developer)用来开发SCA,ESB的平台。因为SOA的这些东东RAD(Rational Applicaiton Developer)是搞不定的。 同样这些SOA的组件需要在WebSphere Process Server下跑。WAS下是跑不动的。不过止今还没见过WPS,WID这些神兵利器。也就玩玩WAS,RAD了,还是在公司。:<
get/load区别 如果记录存在,get返回对象(或代理对象);否则返回null。 如果记录存在,load返回对象;否则返回 NotObjectFoundException 2.hibernate Cache 2.1 一级缓存,在当前session内 2.2 Query Cache Cache queries and results. 方法: 1. 在hiberante Configuration 文件中: true 2. 查询时 Query query = session.createQuery("from Person p where p.id=1"); query.setCacheable(true); 2.3 二级缓存, 跨session . 如EHCache 3. load 与 CreateQuery 在处理Cache的区别 首先,load时在一个session中,一级缓存总是有效的。比如下面的只issue sql操作一次 Session session = getSessionFactory().openSession(); Transaction tx = session.beginTransaction(); Person person1 = (Person) session.load(Person.class, 1L); System.out.println(person1.getFirstName()); Person person2 = (Person) session.load(Person.class, 1L); System.out.println(person2.getFirstName()); tx.commit(); session.close(); 其次,如果用CreateQuery有点不同,比若下面的需要issue sql操作两次 Session session = getSessionFactory().openSession(); Transaction tx = session.beginTransaction(); Query query = session.createQuery("from Person p where p.id=1"); Iterator it = query.list().iterator(); while (it.hasNext ()){ Person p = (Person) it.next(); System.out.println(p.getFirstName()); } query = session.createQuery("from Person p where p.id=1"); it = query.list().iterator(); while (it.hasNext ()){ Person p = (Person) it.next(); System.out.println(p.getFirstName()); } tx.commit(); session.close(); 原因是session cache时是根据key(load方法中传入的ID)来缓存的。解决的方法是: 1. 用load,如上面的代码 2. 用查询缓存,如上面的介绍 Session session = getSessionFactory().openSession(); Transaction tx = session.beginTransaction(); Query query = session.createQuery("from Person p where p.id=1"); query.setCacheable(true); Iterator it = query.list().iterator(); while (it.hasNext ()){ Person p = (Person) it.next(); System.out.println(p.getFirstName()); } query = session.createQuery("from Person p where p.id=1"); query.setCacheable(true); it = query.list().iterator(); while (it.hasNext ()){ Person p = (Person) it.next(); System.out.println(p.getFirstName()); } tx.commit(); session.close();
dirname 与 pwd pwd返回的是执行时当前路径 dirname 后面跟一个script文件参数,返回的是执行的script文件所在的路径 差别在于有时在一个目录路径下执行另一个路径下的script,这时这两个路径不同
Precurement Management(采购) 1. Plan Purchases and Acquisitions process Input: Work Breakdown Structure WBS Dictionary Project Scope Statement Project Management Plan Enterprise Environmental Factors Organizational Process Assets Tools: Make or buy analysis Expert Judgment Contract types Output: Procurement Management Plan Contract Statement of Work Make or Buy Decisions Requested Changes 2. Plan Contracting process Input: Procurement Management Plan Contract Statement of Work Make or Buy Decisions Organizational Process Assets Tools: Standard Forms(RFP,Request for Proposals) Expert Judgement Output: Procurement Documents Evaluation Criteria Contract Statement of Work Updates 3. Request Seller Responses process Input: Procurement Documents Procurement Management Plan Organizational Process Assets Tools: Bidder Conferences Advertising Develop Qualified Sellers List Output: Procurement Document Package Qualified Sellers List Proposals 4. Select Sellers process Input: Procurement Document Package Qualified Sellers List Evaluation Criteria Proposals Organizational Process Assets Procurement Management Plan Tools: Weighting System Screening System Independent Estimates Seller Rating System Expert Judgment Contract Negotiation Proposal Evaluation Techniques Output: Selected Sellers Contract Contract Management Plan Resource Availability Requested Changes Procurement Management Plan Updates 5. Contract Administration Process Input: Approved Change Requests Work Performance Information Performance Reports Contract Management Plan ContractSelected Sellers Tools: Payment System Records Management System Information Technology Claims Administration Performance Reporting Buyer-Conducted Performance Review Inspections and Audits Contract Change Control System Output: Contract documentation Requested changes Updates to Organizational process assets Recommended corrective actions Project management plan 6. Contract Closure Input:Contract Management Plan Procurement Management Plan Contract Documentation Contract Closure Procedure Tools: Procurement audits Records Management system Outputs: Closed Contracts Organizational Process Assets
Risk Management 1. Risk Management Planning Input: Organizational Process Assets Enterprise Enviromental Factors Project Management Plan Project Scope Statement Tools:Planning Meetings and Analysis Output: Risk Management Plan(who, how, how often), in Risk Management Plan, come up with RBS(Risk Breakdown Structure), then Avoided/Mitigated/Transferred/Accepted the risk 2. Risk Identification Input: Risk Management Plan Project Management Plan Project Scope Statement Organizational Process Assets Enterprise Environmental Factors Tools: Information Gathering Techniques(Gathering information from people and making sure it's right)which includes: Brainstorming, Interviews, The Delphi technique,get opinions and ideas from experts anonymously SWOT analysis(strengths,weaknesses,opportunities,and threats) Root cause identification Documentation reviews Assumptions analysis Checklist analysis Diagramming techniques Output: Risk Register 3. Qualitative Risk Analysis(ranking risk based on probability and impact) Input: Organizational Process Assets Risk Register Risk Management Plan Project Scope Statement Tools: Risk data quality assessment Risk categorization Risk urgency assessment Risk probability and impact assessment Probability and impact matrix Output: updated risk register(add columns Category,Priority,Urgency) 4. Quantitative Risk Analysis(ranking risk based on probability and impact) Input: Organizational Process Assets Risk Register(after qualitative analysis) Project Management Plan Risk Management Plan Project Scope Statement Tools: EMV(Expected Monetary Value) Decision Tree Analysis Output: updated Risk Register 5. Risk Response planning Input: Risk Register Risk Management Plan Tools: strategies for handling negative risk,avoid&mitigate&transfer&acceptstrategies for handling positive risk,Exploit&share&enhance&accept Output: add risk response to the register(risk owner,response) project management plan update scontract updates 6. Risk Monitoring and Conrol process Input: Risk Register Project Management Plan Approved Change Requests Work Performance Information Performance Reports Tools: Risk reassessment Variance and trend analysis Reserve analysis Risk audits Technical performance measurement Status meetings Output: Risk Register Updates Project Management Plan Updates Requested Changes Organizational Process Assets Recommended Corrective Actions Recommended Preventative Actions