malaikuangren

What is the purpose or drive to build thing like (xxx),How can it achieve the original goal of design?
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页

2012年7月19日

What are Navigation Properties in Entity Framework for?

摘要: A navigation property allows you to navigate (duh!) from one entity to a "connected" entity.E.g. if your users is connected to a role, you can use the "Role" navigation to read and inspect the role associated with the user.EDIT:if you want to load the user with LINQ-to-Entities, 阅读全文

posted @ 2012-07-19 16:51 malaikuangren 阅读(293) 评论(0) 推荐(0) 编辑

2012年7月17日

ClassLoader In Java How And Why

摘要: MotivationApplications written in statically compiled programming languages, such as C and C++, are compiled into native, machine-specific instructions and saved as an executable file. The process of combining the code into an executable native code is called linking - the merging of separately comp 阅读全文

posted @ 2012-07-17 14:29 malaikuangren 阅读(359) 评论(0) 推荐(0) 编辑

2012年7月16日

Variable OR State Visiblity:Stale Data, Locking and Visiblity and Volatile(So many Unnoticed aspect in MultiThread)

摘要: Actually There are really something we may be miscoception . and so easilygo wrong . and the phenomenonare so counterintuitiveVisibility is subtle because the things that can go wrong are so counterintuitive. In a single-threaded environment, if you write a value to a variable and later read that va 阅读全文

posted @ 2012-07-16 22:08 malaikuangren 阅读(312) 评论(0) 推荐(0) 编辑
Servlet Only One Instance In Container?

摘要: the answer is depend on.You can let the servlet implementSingleThreadModelto get the container to create a pool of multiple instances of the same servlet class. The maximum pool size depends on the container used, on Tomcat for example, this is 20. But, a bigbut, this interface is deprecated since S 阅读全文

posted @ 2012-07-16 17:27 malaikuangren 阅读(320) 评论(0) 推荐(0) 编辑
Lock and Reentrant

摘要: Java provides a built-in locking mechanism for enforcing atomicity: the synchronizedblock.There is no inherent relationship between an object's intrinsic lock and its state; an object's fields need not be guarded by its intrinsic lock, though this is a perfectly valid locking convention that 阅读全文

posted @ 2012-07-16 15:34 malaikuangren 阅读(318) 评论(0) 推荐(0) 编辑

2012年7月15日

The Atomic classes in Java 5: AtomicInteger and AtomicLong,AtomicReference etc.

摘要: TheAtomicIntegerclass has a number of uses, but one is a drop-in replacement for an atomic counter. Before Java 5, we had to write classes with access to the counter variable insynchronizedblocks or methods, or else use avolatilevariable which is a lighter form of synchronization but with the risk t 阅读全文

posted @ 2012-07-15 17:23 malaikuangren 阅读(508) 评论(0) 推荐(0) 编辑

2012年7月14日

JAVA Final KeyWord And Thread Safety

摘要: The JavafinalkeywordThe Javafinalkeyword is very loosely used to indicate that something "cannot change". Specifically— and perhaps confusingly from a language design point of view— it has a number of uses:it is used to indicate that aclass cannot be extended;it is used to indicate that am 阅读全文

posted @ 2012-07-14 18:16 malaikuangren 阅读(283) 评论(0) 推荐(0) 编辑
JAVA and .Net Complier Rearrange code lines feature.

摘要: In myprevious post. I have been talking about the .Net JIT re-order instructions feature. Actually . In java world .Thejavaccompiler has performs next to no optimisations.The JIT native compiler could re-order instructions where there is a memory ordering problem. However, the CPU also can re-order 阅读全文

posted @ 2012-07-14 14:25 malaikuangren 阅读(207) 评论(0) 推荐(0) 编辑

2012年7月10日

WCF Transaction Propagation or Transaction Flow

摘要: Transactions are the key to building robust, high-quality service-oriented applications. Windows®Communication Foundation provides simple, declarative transaction support for service developers, enabling you to configure parameters such as transaction flow and voting, all outside the scope of y 阅读全文

posted @ 2012-07-10 22:47 malaikuangren 阅读(867) 评论(0) 推荐(0) 编辑
WCF 4 Behavior

摘要: http://blogs.msdn.com/b/kaevans/archive/2006/10/01/simple-wcf-service-behavior-inspect-messages-through-debug-output.aspx(WCF Service Behavior: Inspect Messages)http://blogs.msdn.com/b/stcheng/archive/2009/02/18/wcf-secure-a-dynamically-added-message-header-via-behavior-extension-part-1.aspx(WCF Con 阅读全文

posted @ 2012-07-10 15:01 malaikuangren 阅读(147) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页