<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>聚沙成塔-小哈的记事薄 &#187; 架构</title>
	<atom:link href="http://www.hashei.me/tag/%e6%9e%b6%e6%9e%84/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hashei.me</link>
	<description>一个系统工程师的絮叨</description>
	<lastBuildDate>Tue, 10 Jan 2012 18:03:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://hashei.me/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery.ajax({type:'GET',url:'http://hashei.me/wp-content/plugins/wp-postviews-plus/postviews_plus.php',data:'todowppvp=add&type=tag&id=110_1',cache:false,dataType:'script'});
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>（转）Websphere Application Server 6.0配置与管理</title>
		<link>http://www.hashei.me/2009/11/%ef%bc%88%e8%bd%ac%ef%bc%89websphere-application-server-6-0%e9%85%8d%e7%bd%ae%e4%b8%8e%e7%ae%a1%e7%90%86.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=%25ef%25bc%2588%25e8%25bd%25ac%25ef%25bc%2589websphere-application-server-6-0%25e9%2585%258d%25e7%25bd%25ae%25e4%25b8%258e%25e7%25ae%25a1%25e7%2590%2586</link>
		<comments>http://www.hashei.me/2009/11/%ef%bc%88%e8%bd%ac%ef%bc%89websphere-application-server-6-0%e9%85%8d%e7%bd%ae%e4%b8%8e%e7%ae%a1%e7%90%86.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 14:56:00 +0000</pubDate>
		<dc:creator>hashei</dc:creator>
				<category><![CDATA[Websphere系列]]></category>
		<category><![CDATA[初级入门]]></category>
		<category><![CDATA[was]]></category>
		<category><![CDATA[架构]]></category>

		<guid isPermaLink="false">http://www.hashei.me/2009/11/%ef%bc%88%e8%bd%ac%ef%bc%89websphere-application-server-6-0%e9%85%8d%e7%bd%ae%e4%b8%8e%e7%ae%a1%e7%90%86.html</guid>
		<description><![CDATA[温故而知新：这篇文章应该是半年前在webspherechina.net上下载的，今天查找如何在webshpere下对应用程序采用key认证时候偶然发现，应该说是从开发人员的角度理解了was这个产品，贴出来大家分享。]]></description>
			<content:encoded><![CDATA[<p>温故而知新：这篇文章应该是半年前在webspherechina.net上下载的，今天查找如何在webshpere下对应用程序采用key认证时候偶然发现，应该说是从开发人员的角度理解了was这个产品，贴出来大家分享。</p>
<p><b>Websphere Application Server 6.0</b><b>配置与管理</b><b></b></p>
<p><b>一、 </b><b>WebSphere Application Server 6.0</b><b>家族概述</b><b></b></p>
<p>WebSphere Application Server6.0（以下简称“<b>AppServer</b>”）在安装IBM Rational Application Developer6.0的时候已经为我们自动安装了，完全可以做为一个独立服务器运行。具体情况请参考“IBM Rational Application Developer 6.0安装、配置与开发”一文。所以本文只是为了在用IBM Rational Application Developer 6.0（以下简称“<b>RAD</b>”）开发时，我们可以更好地配合AppServer在测试、运行、部署等过程中一起工作，减少因为对AppServer不甚了解而遇到问题时无从下手的麻烦。</p>
<p>IBM公司的软件产品有五大系列：<b>DB2</b><b>、Lotus</b><b>、Rational</b><b>、Tivoli</b><b>、Websphere</b>（其中大部分都是收购别的公司的）。其中的Websphere系列，主要是为了电子商务而建立的一个基础平台。它可以使公司开发、部署和整合电子商务应用。<br />
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="270">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<p><b>基础平台与工具（Foundation&amp;Tools</b><b>）</b></p>
<p>WebSphere Application Server </p>
<p>WebSphere Application Server &#8211; Express </p>
<p>WebSphere Studio </p>
<p><b>商业门户（Business Portals</b><b>）</b></p>
<p>WebSphere Portal </p>
<p>WebSphere Portal &#8211; Express </p>
<p>WebSphere Commerce </p>
<p>WebSphere Everyplace </p>
<p>WebSphere Voice </p>
<p><b>商业整合（Business Integration</b><b>）</b></p>
<p>WebSphere MQ </p>
<p>WebSphere Business Integration </p>
<p>Adapters and Connectors</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>   <a href="http://hashei.me/wp-content/uploads/2009/11/clip_image001.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="209" alt="clip_image001" src="http://hashei.me/wp-content/uploads/2009/11/clip_image001_thumb.gif" width="240" border="0" /></a></p>
<p><b>（IBM Websphere</b><b>家族）</b></p>
<p><b></b></p>
<p><b></b></p>
<p><b></b></p>
<p><b></b></p>
<p><b></b></p>
<p><b>下图为概要说明：</b></p>
<p><b><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image003.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="146" alt="clip_image003" src="http://hashei.me/wp-content/uploads/2009/11/clip_image003_thumb.gif" width="244" border="0" /></a></b></p>
<p><b></b></p>
<p>IBM的AppServer是Webshpere的软件平台的基础（Foundation）。而WebSphere Studio（在6.0中已经转移到Rational系列中）是其开发测试工具（Tools）。</p>
<p>而对于AppServer，又有几个不同的版本，主要是应对不同规模需求的应用，<i>我们项目组提供的是</i><i>Network Deployment</i><i>版本</i>，它们大致描述如下：</p>
<p><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image005.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="138" alt="clip_image005" src="http://hashei.me/wp-content/uploads/2009/11/clip_image005_thumb.gif" width="244" border="0" /></a></p>
<p><b>Websphere AppServer 6.0</b><b>系列（<i>从上到下为包含关系</i>）</b></p>
<p><b></b></p>
<p>下面是WebSphere Application 5.1的几个版本的关系，比较上下两个图，我们会发现在版本升级后，它们的变化（如6.0版本中，去掉了Base这个称呼，不过表达时一般还是附带）</p>
<p><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image007.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="116" alt="clip_image007" src="http://hashei.me/wp-content/uploads/2009/11/clip_image007_thumb.gif" width="244" border="0" /></a></p>
<p><b>Websphere AppServer 5.1</b><b>系列</b></p>
<p>对于6.0各版本AppServer，它们的差别和需要注意的地方：</p>
<p>1、 Express版本主要是支持Web系统开发的易用性，不支持EJB和JCA。</p>
<p>2、 Base版本（缺省版本）提供EJB和JCA、内置JMS等支持，但不支持负载和中央集中式管理。</p>
<p>3、 Network Deployment版本除了Base版本的所有功能外，还支持集群、高可用性（High Availability）等。</p>
<p><b>二、 </b><b>WebSphere Application Server 6.0</b><b>系统结构</b><b></b></p>
<p>说明：</p>
<p>IBM WebSphere Application Server &#8211; Express V6, 指<b><i>Express</i></b></p>
<p>IBM WebSphere Application Server V6, 指 <b><i>Base</i></b></p>
<p>IBM WebSphere Application Server Network Deployment V6, 指<b><i>Network Deployment</i></b></p>
<p><b>2.1 AppServer</b><b>的运行和管理方式</b></p>
<p>从AppServer运行和管理的角度考虑，我们可以将它分成standalone和distribution模式。Express和Base只能运行在standalone模式下，而Network Deployment在两种方式下均可，它可以提供在standalone模式下没有的功能，如workload（负载）和failover（失效转移）。</p>
<p>对于这两种模式和运行，Websphere 有其专用术语，如Profile，Cell－Node－Server等等，下面我们会分别介绍，</p>
<p>不管服务器运行在何种模式下，AppServer均以cell、node、server等概念组织。除非你在Network Deployment环境下运行，否则cell、node等概念并没有多大参考价值，也就是说，在standalone模式下只有一个cell和node（从服务器<b>Profile</b>的目录结构就可以看出, profile的概念下面会具体谈到）。</p>
<p><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image009.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="214" alt="clip_image009" src="http://hashei.me/wp-content/uploads/2009/11/clip_image009_thumb.gif" width="244" border="0" /></a></p>
<p><b>Standalone</b><b>模式下的架构总览</b></p>
<p><b>Server</b><b>：</b>Application Server是首要的runtime组件，它是applications的执行点。多个standalone的server能够存在于一台物理机器上，它们的配置文件被独立维护和存储。有两种方式可以做到：通过全新安装新的AppServer代码，或者通过一次AppServer的安装，然后配置多个profile。每个AppServer运行在它们各自的Java虚拟机上。</p>
<p><b>Node</b><b>：</b>node（节点）是一组Server进程的逻辑组合。它们通过websphere管理，共享通用的配置和操作控制。一个node和一个webSphere的物理安装对应。</p>
<p>在standalone的配置下，仅有一个node。在Network Deployment下，你能从一个总的管理服务器来配置和管理多个nodes。在中央集中式管理的配置下，每个node有一个node agent，它和deployment manager一起工作，来管理受管进程。</p>
<p>NodeGroup 是一个被V6.0引入的新概念，node group是在cell内的一组节点，它们有相似的capability。</p>
<p><b>Cell</b><b>：</b>cell是一组集成到一个管理domain的nodes（Distribution 环境下）。在该cell下的所有nodes的配置文件和application被集中到一个cell master的中央配置存储容器（repository）。deployment Manager 进程管理这个存储器并且和它管理下的每个node上的备份相同步（synchronize）。</p>
<p><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image011.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="208" alt="clip_image011" src="http://hashei.me/wp-content/uploads/2009/11/clip_image011_thumb.gif" width="244" border="0" /></a></p>
<p><b>2.2 AppServer</b><b>静态结构――Server</b><b>和Container</b><b>的概念</b></p>
<p>WebSphere AppServer 本身提供一些功能给application，并且它还能将外部server集成到管理进程中来。下图说明了你能集成什么server到websphere Application 管理工具中。</p>
<p><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image013.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="83" alt="clip_image013" src="http://hashei.me/wp-content/uploads/2009/11/clip_image013_thumb.gif" width="244" border="0" /></a></p>
<p><b>Web Server</b>能够作为Ｗeb Server 节点（nodes）集成到管理进程中，它允许应用程序关联到一个或多个web Server。</p>
<p>Web Server Nodes能够在管理和非管理状态。在管理状态下，被管理的node有一个node agent在web Server的机器上，它允许deployment manager来管理这个web Server。在非管理状态下，该web Server 并不被websphere管理，你能够发现这些web Server在防火墙外面，或在非军事化区（demilitarized zone）。你必须手动地拷贝Web Server 的plug-in文件到web Server的。然而，如果你定义该web Server作为一个node，你就可以为它定制的plug-in文件。</p>
<p><b>Generic Server</b>是指该server在websphere domain下接受管理，但是并不是由 WebSphere Application Server提供的第三方Server，如OpenJMS server，tomcat等。</p>
<p>J2EE规范提出了容器（container）的概念，它提供application的运行时支持。在application Server实现中有两类容器：</p>
<p><b>Web Containe</b><b>：</b>它处理HTTP Request，Servlet和JSP。</p>
<p><b>EJB Container</b><b>：</b>它处理Enterprise JavaBean（Session Bean，Entity Bean和Message-Driven Bean）。</p>
<p><b>Application Client Container</b><b>（ACC</b><b>）：</b>它允许J2EE application 客户端软件访问服务器资源。ACC需要单独安装在客户端机器上，然后我们就可以通过命令行方式在ACC里运行客户端程序（lauchClient）。具体specification，请参考sun J2EE specification 1.4。</p>
<p><b><i>注意：</i></b><i>websphere AppServer</i><i>客户端并不支持单独的J2EE</i><i>客户端jar</i><i>执行。</i></p>
<p><i><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image015.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="205" alt="clip_image015" src="http://hashei.me/wp-content/uploads/2009/11/clip_image015_thumb.gif" width="244" border="0" /></a></i></p>
<p><b>利用J2EE</b><b>容器资源的J2EE</b><b>客户端程序</b></p>
<p><b></b></p>
<p>下表说明了几种AppServer对它们的支持：</p>
<p><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image017.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="57" alt="clip_image017" src="http://hashei.me/wp-content/uploads/2009/11/clip_image017_thumb.gif" width="244" border="0" /></a></p>
<p><b>2.3 AppServer</b><b>的动态结构――Profile</b><b>概念</b></p>
<p>AppServer profile的概念是V6.0提出的。在V5.0中，AppServer就允许在一台机器的一个Server上允许多个实例。在V6.0中，IBM对AppServer该功能有了进一步增强，提出了Profile的概念：</p>
<p>AppServer由两部分组成：</p>
<p>第一， 一组共享的只读产品静态文件或二进制文件。它们被AppServer的实例共享。</p>
<p>第二， 一组用户自定义的配置文件，这些文件就称为Profile。它是一些用户数据，包括服务器配置，application，属性文件等。</p>
<p>在我们安装V6.0的应用服务器时，我们应该先安装AppServer，然后再安装Profile，这样才能建立一个逻辑上并且是物理上的AppServer。</p>
<p>结合前面的cell，node，server和现在的profile概念，我们看看我们的application在服务器Profile下的目录结构：</p>
<p><a href="http://hashei.me/wp-content/uploads/2009/11/clip_image019.gif"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="239" alt="clip_image019" src="http://hashei.me/wp-content/uploads/2009/11/clip_image019_thumb.gif" width="244" border="0" /></a></p>
<p>在standalone模式和distribution下，profile的目录结构区别并不大，它们的区别，以及各目录下的具体文件含义，请参考IBM的红皮书：《WebSphere Application Server V6 System Management &amp; Configuration》。</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://www.hashei.me/2010/02/tunning-websphere-application-server-was.html" rel="bookmark" title="Permanent Link: 软硬兼施 优化 WebSphere Application Server">软硬兼施 优化 WebSphere Application Server</a></li><li><a href="http://www.hashei.me/2009/05/websphere-topology-terminology.html" rel="bookmark" title="Permanent Link: Server Node Cell Cluster&mdash;Websphere拓扑结构及术语介绍上">Server Node Cell Cluster&mdash;Websphere拓扑结构及术语介绍上</a></li><li><a href="http://www.hashei.me/2009/09/ibm_websphere_support_tips1.html" rel="bookmark" title="Permanent Link: IBM WebSphere Recent Supports">IBM WebSphere Recent Supports</a></li><li><a href="http://www.hashei.me/2009/05/introduce-was-community-edition.html" rel="bookmark" title="Permanent Link: 应用服务器WAS CE21介绍">应用服务器WAS CE21介绍</a></li><li><a href="http://www.hashei.me/2009/04/introduce-myself.html" rel="bookmark" title="Permanent Link: 写在前面">写在前面</a></li></ul><hr /><small>  Copyright &copy; 2008 This feed is for personal, non-commercial use only<br />
<a href=www.hashei.com >聚沙成塔-小哈的记事薄</a> by hashei 
如果喜欢，欢迎订阅<a href=feed.hashei.com >feed.hashei.com</a><br />
Digital Fingerprint:
 10f920a9f2bae51c3c73c4f5fb50a949</small>]]></content:encoded>
			<wfw:commentRss>http://www.hashei.me/2009/11/%ef%bc%88%e8%bd%ac%ef%bc%89websphere-application-server-6-0%e9%85%8d%e7%bd%ae%e4%b8%8e%e7%ae%a1%e7%90%86.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【每周精华】第一期（6月21日-28日）</title>
		<link>http://www.hashei.me/2009/06/weekly-summary-1.html?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=weekly-summary-1</link>
		<comments>http://www.hashei.me/2009/06/weekly-summary-1.html#comments</comments>
		<pubDate>Mon, 29 Jun 2009 14:12:50 +0000</pubDate>
		<dc:creator>hashei</dc:creator>
				<category><![CDATA[每周精华]]></category>
		<category><![CDATA[性能优化]]></category>
		<category><![CDATA[架构]]></category>
		<category><![CDATA[虚拟化]]></category>
		<category><![CDATA[豆瓣]]></category>

		<guid isPermaLink="false">http://www.hashei.me/2009/06/weekly-summary-1.html</guid>
		<description><![CDATA[技术是需要钻研的，但是IT的发展一日千里，闭门造车难免会固步自封；作为公司的初级员工，老板让干啥就干啥又容易成为井底之蛙。我会把自己觉得好的内容以每周一期的形式写在博客上，“问泉哪得清如许，为有源头活水来”。]]></description>
			<content:encoded><![CDATA[<p>技术是需要钻研的，但是IT的发展一日千里，闭门造车难免会固步自封；作为公司的初级员工，老板让干啥就干啥又容易成为井底之蛙。所以欢迎添加jaintkiller at gmail dot com为好友，通过Google Reader一起分享优秀文章。当然我也会把自己觉得好的内容以每周一期的形式写在博客上，“问泉哪得清如许，为有源头活水来”。（其实我是偷懒不想更新）</p>
<p>[1]《豆瓣网技术架构变迁》</p>
<p style="text-indent: 24pt">豆瓣网从2005年到现在的架构发展历程，PPT很早推出了，这次演讲视频总算是千呼万唤始出来。关注架构、关注大型web站点技术内幕的同学可以看看。</p>
<p style="text-indent: 24pt">地址：<a href="http://www.infoq.com/cn/presentations/hongqn-douban">http://www.infoq.com/cn/presentations/hongqn-douban</a></p>
<p><a href="http://www.douban.com/group/topic/6020244/" target="_blank">豆瓣的架构—专访豆瓣网站的技术总监洪强宁</a></p>
<p>[2]虚拟化扑面而来</p>
<p style="text-indent: 24pt">虚拟化真是越来越近了，以前还只是听到个概念，去年Vmware来公司介绍VMware Infrastructure时还在考虑“一般的企业用不起，用得起的企业看不上”的问题。但现在虚拟化后对服务器利用率的提高、对电力消耗的降低、物理服务器管理的简化等好处已经深入人心，虽然还面对着几大厂商各自为政的窘境和把所有鸡蛋都放一个篮子里的担忧，但是已经有客户主动提出要把现有的非关键应用转移到虚拟机上去了。上次Red Hat来公司介绍的也是他们的RHEL5.0 Advanced Server中的虚拟化技术，所以趁早熟悉一下虚拟机的安装、管理、故障转移是正道——对于系统管理员来说。</p>
<p style="text-indent: 24pt"><a title="服务器市场成本压倒一切" href="http://news.ccw.com.cn/it/htm2009/20090612_638252.shtml" target="_blank">服务器市场成本压倒一切</a></p>
<p style="text-indent: 24pt"><a title="虚拟化整合之势凸显" href="http://www2.ccw.com.cn/weekly/news/htm2009/20090607_635968.shtml" target="_blank">虚拟化整合之势凸显</a></p>
<p>[3]Java性能分析和监控</p>
<p style="text-indent: 24pt">现在的主业不能丢：</p>
<p style="text-indent: 24pt"><a title="使用Perf4J进行性能分析和监控" href="http://www.infoq.com/cn/articles/perf4j" target="_blank">使用Perf4J进行性能分析和监控</a></p>
<p style="text-indent: 24pt"><a title="应用服务器内存泄露问题诊断一例" href="http://www.ibm.com/developerworks/cn/java/j-performance/" target="_blank">使用Jprofile解决应用服务器内存泄露问题诊断一例</a></p>
<p style="text-indent: 24pt"><a title="WebSphere2009展望" href="http://www.infoq.com/cn/articles/cuomo-websphere-trends-2009" target="_blank">WebSphere 2009年发展方向</a></p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://www.hashei.me/2009/07/weekly-summary-0706.html" rel="bookmark" title="Permanent Link: 【每周精华】第三期（7月6日-12日）">【每周精华】第三期（7月6日-12日）</a></li><li><a href="http://www.hashei.me/2009/07/weekly-summary-0629.html" rel="bookmark" title="Permanent Link: 【每周精华】第二期（6月29日-7月5日）">【每周精华】第二期（6月29日-7月5日）</a></li><li><a href="http://www.hashei.me/2009/07/weekly-summary-0713.html" rel="bookmark" title="Permanent Link: 【每周精华】第四期（7月13日-19日）">【每周精华】第四期（7月13日-19日）</a></li><li><a href="http://www.hashei.me/2009/08/weekly-summary-0720.html" rel="bookmark" title="Permanent Link: 【每周精华】第五期（7月20日-8月10日）">【每周精华】第五期（7月20日-8月10日）</a></li><li><a href="http://www.hashei.me/2009/07/use-hpjtune-to-analysis-gc-log.html" rel="bookmark" title="Permanent Link: 用HPjtune分析GC日志（一个实际案例的诊断过程）">用HPjtune分析GC日志（一个实际案例的诊断过程）</a></li></ul><hr /><small>  Copyright &copy; 2008 This feed is for personal, non-commercial use only<br />
<a href=www.hashei.com >聚沙成塔-小哈的记事薄</a> by hashei 
如果喜欢，欢迎订阅<a href=feed.hashei.com >feed.hashei.com</a><br />
Digital Fingerprint:
 10f920a9f2bae51c3c73c4f5fb50a949</small>]]></content:encoded>
			<wfw:commentRss>http://www.hashei.me/2009/06/weekly-summary-1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

