SEAM IN ACTION--appendix A
appendix A:Seam starter set This appendix explores the set of libraries and tools you need to develop withSeam. Seam consists of just a handful of JAR files, listed in section A.2.1. Once theselibraries are added to your application’s classpath, they open the door to a wealthof integrations and a consistent programming model. To get started with Seam, youcan create a new project using seam-gen (see chapter 2), adopt an example applicationfrom the Seam distribution, or add the Seam libraries
SEAM IN ACTION 第13章
13、File, rich rendering,and email support文件、富生成和email支持 This chapter covers■ Handling file uploads■ Creating PDF documents and charts■ Sending emails with attachments■ Customizing the UI with resource bundles 本章包括:处理文件上传建立PDF及图表发送带有附件的emails用资源包定制UI Many people playing their first round of golf question why anyone would want totorture themselves with such a maddening game, concluding that those who play itare simply masochistic. But anyone who has exp
SEAM IN ACTION 第11章
Part 4 Sinking thebusiness requirements Sinking 业务需求 Seam goes well beyond being simply a web application framework. It givesyou support to cover all the business requirements, which you’ll learn to appreciatein this part of the book. SEAM所做的不只是简化WEB应用框架。它的支持可满足所有的业务需要,在这个部分你就可以了解到。 Chapter 11 shows how quickly you can weave security into a Seam application.A single method on a POJO gives you both authentication and role-basedauthorization. You use
SEAM IN ACTION 第10章
10、Rapid Seam development This chapter covers■ The Seam Application Framework■ Building CRUD screens for an entity■ Paginating and sorting a query result set■ Assigning restrictions to queries 快速SEAM开发本章涉及SEAM应用框架为实体建立CRUD页面传播和排序一个查询结果集对查询指定限制 If you think back to when you first learned golf—perhaps you are still learning—you were probably overwhelmed with all of the things you have to concentrateon at once. To start, you have to judge the distance
SEAM IN ACTION 第9章
9、Seam-managed persistence and transactionsThis chapter covers■ Handling the persistence context properly■ Bootstrapping Java persistence in Seam■ Applying a multifaceted transaction strategy■ Implementing an application transactionSEAM管理的存储和事务本章包括恰当处理存储上下文在SEAM中启动JAVA存储应用多层面的事务策略实现一个应用事务Most web frameworks remain agnostic of persistence rather than recognize it asvital to the overall state of the application. Stateless architectures, especially,
SEAM IN ACTION 第8章
8、Understanding Java persistenceThis chapter covers■ Managing entities■ Using transactions■ Choosing between JPA and Hibernate理解JAVA存储管理实例使用事务在JPA或Hibernate间选择Java persistence is the mechanism by which object-based entities are translatedbetween the Java runtime environment and a relational database. It’s undoubtedlythe most popular feature of the Java EE platform, perhaps even the Java language.This popularity can be attributed to the fact that persisting data is central t
SEAM IN ACTION 第7章
Part 3 Seam’s state managementPart 1 presented the motivation for why Seam was created and demonstratedways it simplifies development of web applications. You used seam-gen to quicklyput together a Seam-based application and agile development environment.Part 2 got into the guts of Seam by teaching you to define and configure componentsand getting them to communicate. What sets Seam apart from other weborientedframeworks is its focus on state management. This term may not meanmuch to you right
SEAM IN ACTION 第6章
6、Absolute inversion of controlThis chapter covers■ Wiring components together dynamically■ Applying method interceptors■ Raising and observing component events■ Resolving context variables on demand本章包括:将部件“动态绑定”应用方法拦截器部件事件应招式解析上下文变量 Inversion of control (IoC) is a pattern in aspect-oriented programming (AOP) thatespouses loose coupling, allowing the application to focus on consuming servicesrather than locating them. Seam embraces the use of IoC not only
SEAM IN ACTION 第5章
5、The Seam component descriptorThis chapter covers■ Creating component definitions in XML■ Defining component XML namespaces■ Configuring a component’s properties■ Using the Seam resource bundle部件描述在XML中建立部件描述定义定义部件XML名字空间配置部件属性使用SEAM源簇Seam embraces annotations to keep you out of the XML weeds. You are a Java (orGroovy) developer, darn it, and that’s the language in which you should be allowedto program your application! Despite this pragmatic statement, it
SEAM IN ACTION 第4章
4、Components and contextsThis chapter covers■ Defining Seam components using annotations■ Hooking into component life-cycle events■ Using EJB session beans as Seam components■ Accessing instances of Seam componentsThis chapter introduces the components and contexts that Seam manages. If you’veworked with the Spring Framework, the idea of declaring managed objects should befamiliar to you. In Seam, however, you replace all uses of the word bean with the wordcomponent. Like Spring, Seam boas
SEAM IN ACTION 第3章
Part 2 Seam fundamentalsGolf is challenging to players of all skill levels, but it’s especially unforgivingto beginners. If you expect to stop by the sporting goods store to pick up aset of clubs, a bag, and a collared shirt, then ride up to the first tee in your golfcart to begin your golfing career, you are in for a big surprise. So are the wormswhose heads you try to take off on your first shot, which in golf lingo we call a“worm burner.” After barely breaching the boundaries of the tee b
SEAM IN ACTION 第二章
2、Putting seam-gen to workThis chapter covers■ Setting up a project with seam-gen■ Reverse engineering a database schema■ Hot-deploying incremental changes■ Choosing an IDE for development用seam-gen建立项目对数据库反向工程热部署选择一个IDELearning a new framework can be challenging, risky, and time consuming. Youmust leave the comfort of your current tool set and venture into unknown territory.To justify your research, you seek out early victories in the form of trivial “HelloWorld” examp
SEAM IN ACTION 第一章
Part 1 Teeing off with Seam开球Many excellent frameworks exist to support the development of webbasedJava applications. Chapter 1 presents Seam and explains how it manages tostand above this crowd by incorporating all of your existing Java Enterpriseexperience into an innovative and modernized rendition of the Java EE platform.You learn how Seam uncovers the platform’s tremendous capabilities, buriedunderneath layers of complexity for more than a decade, through the use ofannotations, intercept
SAP完蛋了?
前篇提到有幸这个时代。这里再摆一摆时代的问题。不过这回不是技术面的,应该说是泛管理面的。历史是个很有意思的东西。这几千年间,中华民族曾在这个星球上灿烂过。后来因为工业革命我们没跟进,在近代被人一顿擂。当今世界,几个强国在玩儿金融时演砸了,给了中国进一步崛起的机会。这个世界变化真是太快了,生活在这个时代的确有幸。国内视角,国人人口如此众多,竞争如此激烈,有急功近利的特点,又没有多少信仰,向富、仇富心态都很重。不管世间多少暗流涌动,在整体上都寻求着内在的平衡。呵呵,这个规律只提一下,因为这不关我们的
SEAM IN ACTION有空就翻翻
说实话,关于SEAM的书不多。在网上搜seam in action中文版,有,在csdn,花3分下下来,假的。是中文的参考文档(Seam reference)。找骂。自己也真想细致地了解一下SEAM的前世今生,所以试着自己翻一下。目地只是为了学习和分享,请尊重英文原作者的版权。======== ForewordThe most challenging part of being a developer on the Seam project isn’t writing thecode—it’s trying to explain Seam to new users. There’s a large gap that a Seam neophytemust cross to really “get” what Seam is about. The problem isn’t that
Do you know SEAM?
因为工作中的一个项目用的是SEAM,所以对SEAM有了一些了解。个人感觉SEAM是一个很不错的东东。但一直没有搞懂为什么一直没有火起来。在逐步熟悉这一框架的过程,也曾因此而对其产生过怀疑。因为绝大多数人都是在跟着技术在跑。一个新技术推出后,大家都跟着作者一阵附和,说这一技术终结某一前辈技术的某个弊端。而这一技术本身肯定有自己的问题。不过这一问是什么,需要时间来检验。对SEAM的信任,也是因为相信其作者,也就是Hibernate的作者Gavin。SEAM本身可以说是EJB3+JSF。EJB3我上一篇日记已说过了,简单好用。JSF是JSP的终结者,是
平民电脑时代的到来
真有幸生活在这电脑科技诞生并快速发展的时代。最开始,计算机及网络是科学及国防的事儿。随着PC的出现,电脑开始平民化。但时至今日,我才更深切地感到了平民化的到来。为什么这么说呢?这完全是从我个人作为一介平民的角度来看的。我的第一台电脑是个1996年的“多媒体”。我当时心目中的多媒体,很简单,就是能放VCD了。从文字,图形,到声音,再到影像,这具有“里程碑”意义的电脑,我认为能满足生活中的绝大多数需求了。但电脑的发展一刻没有停歇。可以说是日新月异,并且是越来越快。人们用摩尔定律来说明这一规律。并且又有人要用新