??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩在线二区,午夜电影一区,av亚洲精华国产精华精华http://www.aygfsteel.com/devin/zh-cnMon, 16 Jun 2025 06:02:31 GMTMon, 16 Jun 2025 06:02:31 GMT60配置q接池(Tomcat+SpringQ?/title><link>http://www.aygfsteel.com/devin/archive/2010/08/17/329129.html</link><dc:creator>delvin</dc:creator><author>delvin</author><pubDate>Tue, 17 Aug 2010 09:45:00 GMT</pubDate><guid>http://www.aygfsteel.com/devin/archive/2010/08/17/329129.html</guid><wfw:comment>http://www.aygfsteel.com/devin/comments/329129.html</wfw:comment><comments>http://www.aygfsteel.com/devin/archive/2010/08/17/329129.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/devin/comments/commentRss/329129.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/devin/services/trackbacks/329129.html</trackback:ping><description><![CDATA[<p>q几天刚参加一个新目Q项目是使用Spring+Tomcat。在开发时Q页面速度很慢Q今天研I了一下,发现时因为没有用连接池?br /> d如下q接池,速度明显提高很多?br /> <br /> <bean id="dataSource" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource" destroy-method="close"><br />   <property name="driverClassName"> <br />     <value>${jdbc.driver}</value><br />   </property><br />   <property name="url"><br />     <value>${jdbc.url}</value><br />   </property><br />   <property name="username"><br />     <value>${jdbc.username}</value><br />   </property><br />   <property name="password"><br />     <value>${jdbc.password}</value><br />   </property><br />   <property name="initialSize"><br />     <value>2</value><br />   </property><br />   <property name="maxActive"><br />     <value>5</value><br />   </property><br />   <property name="maxIdle"><br />     <value>2</value><br />   </property><br /> </bean></p> <img src ="http://www.aygfsteel.com/devin/aggbug/329129.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/devin/" target="_blank">delvin</a> 2010-08-17 17:45 <a href="http://www.aygfsteel.com/devin/archive/2010/08/17/329129.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何分割内容中含有分割符的CSVhttp://www.aygfsteel.com/devin/archive/2010/08/06/328106.htmldelvindelvinFri, 06 Aug 2010 02:46:00 GMThttp://www.aygfsteel.com/devin/archive/2010/08/06/328106.htmlhttp://www.aygfsteel.com/devin/comments/328106.htmlhttp://www.aygfsteel.com/devin/archive/2010/08/06/328106.html#Feedback0http://www.aygfsteel.com/devin/comments/commentRss/328106.htmlhttp://www.aygfsteel.com/devin/services/trackbacks/328106.html 因以前的代码是用C++ Tr1 的regex

 vector<string>   Parser::parse(string& line)
 {
   vector<string> fields;
   std::tr1::regex  re(",");
  if( &line !=  NULL)
  {
            sregex_token_iterator i(line.begin(), line.end(), re, -1);
      sregex_token_iterator j;
   while (i != j)
   {
    fields.push_back(*i++);
   }

  }

  return fields;

 }

查了资料Q修Ҏ(gu)如下代码可?br />

 vector<string>   Parser::parse(string& line)
 {
   vector<string> fields;
   std::tr1::regex  re("(?!\".*),(?!.*\")"); 
  if( &line !=  NULL)
  {
            sregex_token_iterator i(line.begin(), line.end(), re, -1);
      sregex_token_iterator j;
   while (i != j)
   {
    fields.push_back(*i++);
   }

  }

  return fields;

 }



delvin 2010-08-06 10:46 发表评论
]]>
JPA cache(转蝲)http://www.aygfsteel.com/devin/archive/2010/07/22/326837.htmldelvindelvinThu, 22 Jul 2010 06:38:00 GMThttp://www.aygfsteel.com/devin/archive/2010/07/22/326837.htmlhttp://www.aygfsteel.com/devin/comments/326837.htmlhttp://www.aygfsteel.com/devin/archive/2010/07/22/326837.html#Feedback0http://www.aygfsteel.com/devin/comments/commentRss/326837.htmlhttp://www.aygfsteel.com/devin/services/trackbacks/326837.htmlJPA Caching
Posted by caroljmcdonald on August 21, 2009 at 12:58 PM PDT

JPA Caching

JPA Level 1 caching

JPA has 2 levels of caching. The first level of caching is the persistence context.

The JPA Entity Manager maintains a set of Managed Entities in the Persistence Context.

The Entity Manager guarantees that within a single Persistence Context, for any particular database row, there will be only one object instance. However the same entity could be managed in another User's transaction, so you should use either optimistic or pessimistic locking  as explained in JPA 2.0 Concurrency and locking

The code below shows that a find on a managed entity with the same id and class as another in the same persistence context , will return the same instance.

@Stateless public ShoppingCartBean implements ShoppingCart {

 @PersistenceContext EntityManager entityManager;

 public OrderLine createOrderLine(Product product,Order order) {
        OrderLine orderLine = new OrderLine(order, product);
        entityManager.persist(orderLine);   //Managed
        OrderLine orderLine2 =entityManager.find(OrderLine,
                    orderLine.getId()));
        (orderLine == orderLine2  // TRUE
        return (orderLine);
    }

}

The diagram below shows the life cycle of an Entity in relation to the Persistent Context.

The code below illustrates the life cycle of an Entity. A reference to a container managed EntityManager is injected using the persistence context annotation. A new order entity is created and the entity has the state of new. Persist is called, making this a managed entity. because it is a stateless session bean it is by default using container managed transactions , when this transaction commits , the order is made persistent in the database. When the orderline entity is returned at the end of the transaction it is a detached entity.

The Persistence Context can be either Transaction Scoped-- the Persistence Context 'lives' for the length of the transaction, or Extended-- the Persistence Context spans multiple transactions. With a Transaction scoped Persistence Context, Entities are "Detached" at the end of a transaction.

As shown below, to persist the changes on a detached entity, you call the EntityManager's merge() operation, which returns an updated managed entity, the entity updates will be persisted to the database at the end of the transaction.

An Extended Persistence Context spans multiple transactions, and the set of Entities in the Persistence Context stay Managed. This can be useful in a work flow scenario where a "conversation" with a user spans multiple requests.

The code below shows an example of a Stateful Session EJB with an Extended Persistence Context in a use case scenario to add line Items to an Order. After the Order is persisted in the createOrder method, it remains managed until the EJB remove method is called. In the addLineItem method , the Order Entity can be updated because it is managed, and the updates will be persisted at the end of the transaction.


The example below contrasts updating the Order using a transaction scoped Persistence Context verses an extended Persistence context. With the transaction scoped persistence context, an Entity Manager find must be done to look up the Order, this returns a Managed Entity which can be updated. With the Extended Persistence Context the find is not necessary. The performance advantage of not doing a database read to look up the Entity, must be weighed against the disadvantages of memory consumption for caching, and the risk of cached entities being updated by another transaction.  Depending on the application and the risk of contention among concurrent transactions this may or may not give better performance / scalability.

JPA second level (L2) caching

JPA second level (L2) caching shares entity state across various persistence contexts.


JPA 1.0 did not specify support of a second level cache, however, most of the persistence providers provided support for second level cache(s). JPA 2.0 specifies support for basic cache operations with the new Cache API, which is accessible from the EntityManagerFactory, shown below:


If L2 caching is enabled, entities not found in persistence context, will be loaded from L2 cache, if found.

The advantages of L2 caching are:
  • avoids database access for already loaded entities
  • faster for reading frequently accessed  unmodified entities
The disadvantages of L2 caching are:
  • memory consumption for large amount of objects
  • Stale data for updated objects
  • Concurrency for write (optimistic lock exception, or pessimistic lock)
  • Bad scalability for frequent or concurrently updated entities

You should configure L2 caching for entities that are:
  • read often
  • modified infrequently
  • Not critical if stale
You should protect any data that can be concurrently modified with a locking strategy:
  • Must handle optimistic lock failures on flush/commit
  • configure expiration, refresh policy to minimize lock failures
The Query cache is useful for queries that are run frequently with the same parameters, for not modified tables.

The EclipseLink JPA persistence provider caching Architecture

The  EclipseLink caching Architecture is shown below.


Support for second level cache in EclipseLink is turned on by default, entities read are L2 cached. You can disable the L2 cache. EclipseLink caches entities in L2, Hibernate caches entity id and state in L2. You can configure caching by Entity type or Persistence Unit with the following configuration parameters:
  • Cache isolation, type, size, expiration, coordination, invalidation,refreshing
  • Coordination (cluster-messaging)
  • Messaging: JMS, RMI, RMI-IIOP, …
  • Mode: SYNC, SYNC+NEW, INVALIDATE, NONE
The example below shows configuring the L2 cache for an entity using the @Cache annotation

The Hibernate JPA persistence provider caching Architecture

The Hibernate JPA persistence provider caching architecture is different than EclipseLink: it is not configured by default, it does not cache enities just id and state, and you can plug in different L2 caches. The diagram below shows the different L2 cache types that you can plug into Hibernate.

The configuration of the cache depends on the type of caching plugged in. The example below shows configuring the hibernate L2 cache for an entity using the @Cache annotation

For More Information:

Introducing EclipseLink
EclipseLink JPA User Guide
Hibernate Second Level Cache
Speed Up Your Hibernate Applications with Second-Level Caching
Hibernate caching
Java Persistence API 2.0: What's New ?
Beginning Java™ EE 6 Platform with GlassFish™ 3
Pro EJB 3: Java Persistence API (JPA 1.0)





Related Topics >> Blogs      
Comments
Comments are listed in date ascending order (oldest first)

Why gettting null EntityManager

eclep.jpa.DataSource org.wadsworth.check.dto.FacDto public abstract class BaseDao { @PersistenceContext(unitName = "eclepJTA") private EntityManager entityContext; @PersistenceUnit(unitName = "eclepJTA") private EntityManagerFactory emf; public void check(){ System.out.println("<


delvin 2010-07-22 14:38 发表评论
]]>
rebel.allow_bytecode_proxy作用http://www.aygfsteel.com/devin/archive/2010/07/21/326735.htmldelvindelvinWed, 21 Jul 2010 06:18:00 GMThttp://www.aygfsteel.com/devin/archive/2010/07/21/326735.htmlhttp://www.aygfsteel.com/devin/comments/326735.htmlhttp://www.aygfsteel.com/devin/archive/2010/07/21/326735.html#Feedback0http://www.aygfsteel.com/devin/comments/commentRss/326735.htmlhttp://www.aygfsteel.com/devin/services/trackbacks/326735.html 源码对应Q无法调试,q且自己写的代码也很难调试,在启动javaq程中只要设|?Drebel.allow_bytecode_proxy=true可以不进入那些代理的代码?

delvin 2010-07-21 14:18 发表评论
]]>
Java中noverify选项的作?/title><link>http://www.aygfsteel.com/devin/archive/2010/07/20/326618.html</link><dc:creator>delvin</dc:creator><author>delvin</author><pubDate>Tue, 20 Jul 2010 03:35:00 GMT</pubDate><guid>http://www.aygfsteel.com/devin/archive/2010/07/20/326618.html</guid><wfw:comment>http://www.aygfsteel.com/devin/comments/326618.html</wfw:comment><comments>http://www.aygfsteel.com/devin/archive/2010/07/20/326618.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/devin/comments/commentRss/326618.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/devin/services/trackbacks/326618.html</trackback:ping><description><![CDATA[今天在用JRebelӞ发现启动Java虚拟机时Q很多JRebel参考资料说都要加上-noverify选项。记得以前没有看到过q个选项Q就Z学习了一下?br /> <br /> noverify是关闭验bytecodeQ就是ؓ了提高性能。在使用javaagentӞ用这个选项Q就可以关闭修改后的bytecode不用校验Q提高了速度? <img src ="http://www.aygfsteel.com/devin/aggbug/326618.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/devin/" target="_blank">delvin</a> 2010-07-20 11:35 <a href="http://www.aygfsteel.com/devin/archive/2010/07/20/326618.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>EJBQEJB1和EJB2Q到底有什么问?/title><link>http://www.aygfsteel.com/devin/archive/2010/07/16/326325.html</link><dc:creator>delvin</dc:creator><author>delvin</author><pubDate>Fri, 16 Jul 2010 08:35:00 GMT</pubDate><guid>http://www.aygfsteel.com/devin/archive/2010/07/16/326325.html</guid><wfw:comment>http://www.aygfsteel.com/devin/comments/326325.html</wfw:comment><comments>http://www.aygfsteel.com/devin/archive/2010/07/16/326325.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/devin/comments/commentRss/326325.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/devin/services/trackbacks/326325.html</trackback:ping><description><![CDATA[<p><br /> EJB俨然成ؓ了一个Q人打扮的姑娘。现在你只要和一个国内Java开发h员交,基本都能听到他们说EJB的缺点,即他没有用过?br /> 为此我花了点旉Q试囑ֈ析下EJB的优点和~点Q以及EJB对Java技术社区的贡献?br /> <br /> 我用了EJB?q时_从接触Java开始学习EJB,使用qEJB1QEJB2和EJB3?br /> <br /> 我ȝ的EJB(EJB1和EJB2)存在的问题有Q?/p> <strong>目标定位不清<br /> ~成模型复杂<br /> 开发和UL困难<br /> 部v描述W陷?br /> cd载陷?br /> 试困难<br /> 破坏面向对象设计<br /> 部v?br /> q行旉要EJB容器Q代价高<br /> l护困难<br /> 学习曲线?br /> </strong><br /> 下面我们逐一分析<br /> <strong>一 目标定位不清<br /> </strong>假如你看qEJB早期规范Q你会发玎ͼ规范中队EJB的目标定位有11之多。ؓ了分析方便,我引用了EJB2.1版本中有关EJB目标定义的内容(注:序号是我加上的)?br /> The Enterprise JavaBeans (EJB) architecture has the following goals:<br />  1QThe Enterprise JavaBeans architecture will be the standard component architecture for build-<br /> ing distributed object-oriented business applications in the Java programming language.<br />  2QThe Enterprise JavaBeans architecture will support the development, deployment, and use of<br /> web services.<br /> 3QThe Enterprise JavaBeans architecture will make it easy to write applications: Application<br /> developers will not have to understand low-level transaction and state management details,<br /> multi-threading, connection pooling, or other complex low-level APIs.<br /> 4Q?nbsp;Enterprise JavaBeans applications will follow the Write Once, Run Anywhere? philosophy of<br /> the Java programming language. An enterprise bean can be developed once, and then<br /> deployed on multiple platforms without recompilation or source code modi?cation.<br /> 5Q?nbsp;The Enterprise JavaBeans architecture will address the development, deployment, and runtime<br /> aspects of an enterprise application’s life cycle.<br /> 6Q?nbsp;The Enterprise JavaBeans architecture will define the contracts that enable tools from multiple<br /> vendors to develop and deploy components that can interoperate at runtime.<br /> 7QThe Enterprise JavaBeans architecture will make it possible to build applications by combin-<br /> ing components developed using tools from different vendors.<br /> 8Q?nbsp;The Enterprise JavaBeans architecture will provide interoperability between enterprise beans<br /> and Java 2 Platform, Enterprise Edition (J2EE) components as well as non-Java programming<br /> language applications.<br /> 9Q?nbsp;The Enterprise JavaBeans architecture will be compatible with existing server platforms. Ven-<br /> dors will be able to extend their existing products to support Enterprise JavaBeans.<br /> 10Q?nbsp;The Enterprise JavaBeans architecture will be compatible with other Java programming lan-<br /> guage APIs.<br /> 11QThe Enterprise JavaBeans architecture will be compatible with the CORBA protocols<br /> <br /> 从这些目标中我们可以发现Q几乎没有目标是针对开发h员效率的。从q次目标中我们就可以隐约的感到EJB不是对开发者友好的技术?br /> 从这些目标中Q我们可以发现EJB的雄心过于庞大,而EJB出现的时代,q不以在一个规范中解决q些问题。从EJB后来被h诟病最多的实体BeanQ只是EJB的一部分,但恰恰就q点p了EJB的命?br /> <br /> EJB目标中把本不应该攑֜一L东西l放在了一P比如分布式和实体映射。而且错误的假定了使用分布式的场合。按照Spring创始人的说法<br /> Q分布式只有20%的应用要用,?0%是不需要的?br /> 我们现在知道EJB目标不清楚,那我们免不了要问Q当初SunZ么要q样定位EJBQ?br /> 也许除了EJB早期规范l的人,没有人真正清楚ؓ什么,我们此处只能留到以后事后诸葛亮下Q注Q此处我以后会用一片文章来分析产生的原因)?br /> <br /> ?<strong>~成模型复杂</strong><br /> <p>EJBl成复杂Q?br />  一个EJB有好几个东西l成Q具体有L?Q远E?本地接口QBeanc,部v描述W?br /> 虽然开发社区发展了Xdoclet技术,但也只是解决了一部分问题。用XdocletQ编译时需要生代码,当EJB多时Q这是很耗时的?br /> <br /> 有过开发经验的人都知道要是修改一个小东西需要修改几个文件的话,那工作效率是上不ȝQ另外在考虑到EJB的需要部|Ԍ启动服务器的旉Q修改EJB直是痛苦啊。这样必然导致开发周期长?br />   ~写Q定义接口,  实现BeanQ?nbsp;~写部v描述W)-》打包部|??nbsp;    启动服务?》测试?/p> <p>早期开发中Q我们还遵守规范中按角色~程的要求,D角色多,沟通成本高Q比如Bean开发者开发B(ti)eanQ部|员打包部vQ系l管理者管理服务器?br /> <br /> <br /> <br /> </p> ?<strong>UL困难Q特别是Entity BeanQ?/strong><br /> 规范中说的编写一ơ,到处部v的承诺,基本是一句空话。结果变成了~写一ơ,到处重写。特别是实体BeanQ基本上q移一个服务器Q就相当于用HIbernate重新的工作量Q还不考虑试的困难性。规范中对实体映定义的太过于宽泛,D每个厂商都需要自qORM实现Q引?nbsp;特定厂商的部|描q符Q又因ؓJ2EE中除web外,cd载的定义没有明确Q导致生特定厂商的cd载机制和打包方式Q还有就是特定厂商的服务查找方式?br /> <br /> ?<strong>部v描述W陷?br /> </strong> 1QEJB采用了当时流行的使用Xml作ؓ_合剂,q且实现厂商都引入了自己的配|文件。结果导致编写过多的配置文g。以JBossZ要写要写三个配置文g。XML配置文g复杂Q手工编写比较困难,早期IDE中可视化~写XML效率有不高,D开发h员开发效率大大降低。更痛苦的是修改后,不能及时生效。大家想象一下,如果你有多个EJBQ修改一个需要重新部|和启动服务器,那是怎样的浪Ҏ(gu)间。以我曾l的一个项目ؓ例,U有100个EJBQ部|和重启JBoss需要几分钟Q重要不是浪Ҏ(gu)_而是那种挫折感?br />  2Q标准的ejb-jar.xml部v描述W把一些重要的信息Q比如指定EJB的JNDI名字和配|实例池Q都留给容器提供商,<br /> 我们一般都需要一个额外,特定于容器的的部|描q符Q比如weblogic-ejb-jar.xml。这样导致编写和UL的困难?br /> <br /> ?<strong>cd载陷阱(cd载器复杂Qƈ且不清晰Q?br /> </strong><br /> J2EE规范QJava EEQ对EAR中web和ejb的加载没有明定义。比如一个EAR有多个EJBQ每个EJB都依赖一些其他类库,那么对这些被依赖的类库到底是怎么被加载的Q类的可见性怎么P规范没有规定。这h个厂商都有自q一套东西,D不同服务上,要用不同的打包方式?br /> <strong><br /> </strong>?nbsp;  <strong>试困难<br /> </strong>J2EE试难是有目q的,其中EJB试困难时出了名的。测试困隄原因ӞEJBq行需要容器插入什么服务,而启动服务器是很高昂的代仗?br /> 后来虽然开发社区采用Mock{技术试图解册个问题,但从开发实跉|_q是有难度的?br /> <br /> <span style="color: red">?/span>: 以下几点问题Q还需要详l分析,׃旉问题Q暂时只是列出来?br /> ?nbsp;  <strong>破坏面向对象设计<br /> </strong>? <strong>开发周期长Q部|慢<br /> </strong>? <strong>q行旉要EJB容器Q代价高<br /> </strong>?<strong> l护困难<br /> </strong><br /> 但说实话EJB也是有A献,当然它的贡献更多是理念层ơ,在实现层面很p|。另外,也正是他的失误,在批判EJB的基上发展vSpringQ给开发h员带来一股新风?br /> <img src ="http://www.aygfsteel.com/devin/aggbug/326325.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/devin/" target="_blank">delvin</a> 2010-07-16 16:35 <a href="http://www.aygfsteel.com/devin/archive/2010/07/16/326325.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>从EJB得到的启C?/title><link>http://www.aygfsteel.com/devin/archive/2010/07/16/325862.html</link><dc:creator>delvin</dc:creator><author>delvin</author><pubDate>Fri, 16 Jul 2010 07:36:00 GMT</pubDate><guid>http://www.aygfsteel.com/devin/archive/2010/07/16/325862.html</guid><wfw:comment>http://www.aygfsteel.com/devin/comments/325862.html</wfw:comment><comments>http://www.aygfsteel.com/devin/archive/2010/07/16/325862.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/devin/comments/commentRss/325862.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/devin/services/trackbacks/325862.html</trackback:ping><description><![CDATA[ 当我们回EJB从红火场面,到最后被很多开发h员抛弃的历程Q我们可以获得很多启C?br /> <br /> 一 大厂商提倡的技术,q不都是好的Q要敢于怀疑规范本w和大厂?br /> 当年QEJB凭借SunQIBM{大厂家的支持,在市Z呼风唤雨Q可以说是集三千宠信于一w?br /> 但慢慢的开发h员发玎ͼEJB的很隄Q开发效率低下。但׃EJB是大厂商支持Q大多数开发h员刚开始都q没有对EJBq行怀疑,而是只是怀疑自q技术水q뀂但随着旉的推U,开发社Z慢慢有怀疑的声音出现Q但那些技术厂Ӟq在鼓吹什么EJB的大规模集群{特性,而对开发h员提出的问题视而不见。这Ӟ有些优秀的开发h员已l行动v来,他们寚w些规范厂商已l不׃么惻I随着Spring和Hibernate的不断发展,规范l发现自q的错了,他们最l不得不向这些开源框枉q?br /> <br /> ?技术的使用者才是判定技术好坏的最l标?br /> <br /> 在其他行业,我们都明白一个浅昄道理。那是Q客h上帝Q客户具有最l发a权。顺着q个思\Q我们这些普通开发h员不正是SunQIBMQMicrosoft的客户吗Qؓ什么我们一直以来都是听他们l我们布道呢Q?通过EJB的惨痛教训,在我使用某项技术之前,不再M那些大厂的承诺?br /> <br /> 兄弟姐妹们,大胆怀疑那些大厂的技术吧! 不要对只要是那些厂家提供的技术就盲目MQ?使用新技术,请从怀疑开始,要不然你会失望的Q?br /> <br /> ?开源社区已l成长ؓ一个可以和技术大厂抗衡的力量<br /> <br /> EJB的发展充分表明了Q那些大厂唬人的东西是不可靠的。开源社区已l是一个不可小视的力量?br /> <br /> ?当你感觉某项技术不好时Q请L变他? <img src ="http://www.aygfsteel.com/devin/aggbug/325862.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/devin/" target="_blank">delvin</a> 2010-07-16 15:36 <a href="http://www.aygfsteel.com/devin/archive/2010/07/16/325862.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在团队工作应该具有的习惯QYӞ-团队工作之三http://www.aygfsteel.com/devin/articles/326308.htmldelvindelvinFri, 16 Jul 2010 06:54:00 GMThttp://www.aygfsteel.com/devin/articles/326308.htmlhttp://www.aygfsteel.com/devin/comments/326308.htmlhttp://www.aygfsteel.com/devin/articles/326308.html#Feedback0http://www.aygfsteel.com/devin/comments/commentRss/326308.htmlhttp://www.aygfsteel.com/devin/services/trackbacks/326308.html团队和小l的区别-团队工作之二 中我们简单阐明了团队的特征。那么在q么我们想问一个顺理成章的问题Q若我在一个团队中工作Q应该需要养成哪些习惯来提升团队工作Q?br />
下面我简单谈一下个人感受,׃我本人ƈ不是团队工作研究的专Ӟ也不是什么伟大团队的成员Q因此我的话可能没有什么过q道理Q也因ؓq一点,可能更易于实c?br />
1.了解团队的目标和使命

q一点之所以重要,是因为团队目标和使命是团队得以成立或存在的根本原因。有些新人对自己的个人目标比较清楚,但对自己所处的团队目标不清楚,D其看不到很多事和Z。一个最聪明的hQ若不清楚团队目标的话,在团队中被淘汰的可能性比较大?br /> 假若你不是成心要被团队淘汎ͼ那就请了解你的团队目标吧?br />
2.定位自己的角?br />
团队工作讲究技能互补,优势互补Qؓ此你需要清楚自q优势是什么,团队中差什么技能?若你h其他人没有的技能和优势Q那么就不会被ƈ集给q掉。一个成熟了团队都有一个相对规定的角色Q你要分析清楚团队中需要什么角Ԍ你适合什么角Ԍ早日定好自己的角Ԍq按此角色去行事?br />
3.学会帮助别h
在团队中Q没有严格的谁应该做什么。因理要求Q需要有d划分Q指z具体人,你也应该明白Q若别h的Q务完成不好,对你也是有媄响的。ؓ此,寚w要时d注团队中其他人在做什么,能不能提供帮l。大家明白,球比赛中没有个利者,只有球队胜利者。最好的球员Q若球队不赢球,那都没有什么h(hun)|M能说我打的好Q我们球队不行。在开发工作中Q有时也是这L?br />
4.设法通过自己的努力提升团?br /> 我们l常说有木桶短板效应。但我想_反过来也有长板效应。有些工作,可以通过团队中最优秀的h来做Q提高这斚w的水准,q也是团队的目的之一。ؓ此,我们需要设法提升自己,来提升团队?br />
5.U极dd响团?br /> 有些ChQ因为担心别不听话(q是中国教育的严重失误啊Q先痛心下!Q,报着别h说什么我做什么。在会上征求意见Ӟ也是说我听领导的。慢慢的Q别Z在关注他的意见,自己也越来越没有意见。我们说影响团队Q不要仅仅理解ؓ影响什么大方向Q也可以是媄响一件具体事和做法?br />
6.减少对他Z必要的干?br /> 我经常对新加入项目的Q我们开发工作,有时cM于治病工作。需要注意治好之前,先要保不是d。不要因q加入Q不但没有工作量Q还影响其他人的工作Q比如提交不能编译的代码Q撰写不合格的文档?br />


delvin 2010-07-16 14:54 发表评论
]]>
团队和小l的区别-团队工作之二http://www.aygfsteel.com/devin/articles/326303.htmldelvindelvinFri, 16 Jul 2010 06:18:00 GMThttp://www.aygfsteel.com/devin/articles/326303.htmlhttp://www.aygfsteel.com/devin/comments/326303.htmlhttp://www.aygfsteel.com/devin/articles/326303.html#Feedback0http://www.aygfsteel.com/devin/comments/commentRss/326303.htmlhttp://www.aygfsteel.com/devin/services/trackbacks/326303.html我们现在在日常生zd工作中,l常听到我们的团队这P那样的情c但Ҏ(gu)我的观察Q能UCؓ团队的不多,只不q又一ơ显CZ中国人喜Ƣ用时髦名词的习惯Q关于这一点,有很多可_在此不展开Q,也是不喜Ƣ思考,喜欢随大,怕别人嘲W跟不上潮流的一个反应?br />
很多人口中的团队Q不q是组的别UŞ了,有时候连组都不是,只不q是一帮乌黑之众Ş了?br />
各位看官Qؓ了不被那些满嘴跑名词的h忽?zhn)Q我们有必要思考下团队是什么,团队和小l的区别Q优U团队的特质?br />
团队特征Q具有一致的目标Q角色和技能互补,互相发扬长处和避免短处?br />
团队有一lhl成Q但仅有一lhq不能称为团队,成ؓ团队q需要有共同目标Q具有某些共同的价DQ知道互相要取长补短Q在一h加法效应Q互相帮助,Ȁ发潜能?br />
正因为有q些特征Q我才敢说很多h所谓的团队Q不q是一lh|了。我们太喜欢内斗了,而团队最不要的就是内斗,而这些民族特性是不会L改变的,是民族的基因Q也许表面上80后或90后和以前的年代h不同Q但实际上在q些民族性上没有多大改变?br />
我们见过了太多的单打独斗的故事,所谓的团队故事也只是某人成功后的一U说辞?br />
请问Q你现在是在团队的状态中工作Q还是停留在组的阶D呢Q?你真的相信你的领导口中的团队吗? 各位需要我们去思考啊Q不能让那些忽?zhn)人的人经常忽?zhn)我们啊Q虽然由于历史问题,中国Z怎么会思考,但好歹也要思考下Q不能让那些满嘴跑火车的Z台啊?/p>

delvin 2010-07-16 14:18 发表评论
]]>
d概念模型-工作之?Q未完)http://www.aygfsteel.com/devin/articles/326284.htmldelvindelvinFri, 16 Jul 2010 03:47:00 GMThttp://www.aygfsteel.com/devin/articles/326284.htmlhttp://www.aygfsteel.com/devin/comments/326284.htmlhttp://www.aygfsteel.com/devin/articles/326284.html#Feedback0http://www.aygfsteel.com/devin/comments/commentRss/326284.htmlhttp://www.aygfsteel.com/devin/services/trackbacks/326284.html 1.目的和意?br />
在实现工作流pȝq程中,我们发现工作系l中如何自动产生dQ如何分z,如何完成Q如何和其他d集成是一个复杂的问题?br />
要想能解册些复杂的问题Q没有一个完整的概念模型Q在开发过E中׃出现需要的功能彼此冲突Q顾得了q个顾不了那个Q程序员׃处于此失彼的状态。而这些问题的解决需要在逻辑层面Q也是概念层面Q而不能gq到实现层面Q及~码层面?br />
有了d概念模型Q我们从模型可以判断它的处理能力和功能?br />
2.d模型需要考虑的层?br />
?a title="现实d分析" href="http://www.aygfsteel.com/devin/articles/306405.html" target="_blank">现实d分析-工作系l之一 q篇文章中,我们可以发现Q即使一个简单的程涉及的Q务也是很复杂的,需要考虑的方面非常多。我们只有对q些层面q行深入的分析才能设计出一个较好的d概念模型?br /> 下面我们具体分析d涉及的各个方面,q提出在模型中如何表达。大体分为:
 
 d产生
 d传?br />  d状?br /> d关系 
2.1 d产生
在现实中d的生非常复杂。自己可以给自己创徏dQ比如,我想ȝ刚上映的?sh)媄Q我q自己周么讑֮一个Q务,M?sh)媄。还有些d是从其他人那儿分z来的,有些d是有其他d分拆来的。若在Y件系l中Q有些Q务是本Y件系l生(自动或手工)Q有些Q务是有其他系l生的。在工作系l中Q经常就遇到工作系l本w生的d和从其他pȝ创徏的Q务问题,而客户希望在他的d列表都一L昄出来Qƈ能处理?br />  通过上面单的描述Q我们应该能感觉CQ务生的复杂性。ؓ了对d产生q行抽象Q我们引入两个概念,d来源和Q务生方式?br /> d来源用来表达d是从哪里来的Q比如来自工作流pȝQ来自张三,来自行政部。Q务来源不限于是人。在现实中,我们l常遇到某个部门的hl你下达dQ这个Q务虽然是那个具体的hl你下达的,但实际上应该属于那个部门下达的,即没有他,其他人在那个岗位也会下达Q那个h只是一个代理hQ毕竟部门不能说话?br /> d产生方式表达d是怎么产生的,q个已经有点考虑到Y件系l了。在现实中,没有什么手工和自动产生d的区分。这U区分是把Q务处理引入Y件系l以后的事?

delvin 2010-07-16 11:47 发表评论
]]>
վ֩ģ壺 Դ| | ƽ| | ͨ| | | | | | | | ʡ| | | ŷ| | | | | | º| ̩| | ʳ| | | ̫| | | ¸| | | ¡| ï| ľ| ؼ| ƽ| ³ľ| Ϫ| |