SlideShare a Scribd company logo
JBoss Seam Introduction Xiaogang Cao, RedSaga http://www.ucosoft.com 2007-4-19
MVC Pros pull the page logic out of mud A clean structure of request process Cons It’s only focus on request/response Modal and View are linked static Very hard to abstract ‘widgets’ in web pages I dreamed : XML,DB,entity, web based data window been unified
The Seam way Consider the whole web app in a human understandable way Servlet Context is not enough, people have to write codes to manage state everywhere Seam unified all state management to ‘ Declared State Management’ The core cool feature of Seam is ‘Conversation Context’
Conversations Samples Create Order:  Select a customer  Check balance Add a product to detail list Add more products Confirm and assign a Order Number
Conversations Samples(cont.) Online Digital Photo Print Wizard Browse for photos, add them to print cart Review and update print qty Print them User profile update wizard  View and begin edit of user profile Add a photo Edit details Review changes Confirm change
Seam’s Contexts Stateless context Event (or request) context  Page context Conversation context Session context / Http Session Business process context  / JBPM Application context Contexts.lookupInStatefulContexts()
Conversation context Conversation spans more than one page Conversation is a whole interaction of a certain task Conversation may means a ‘User Story’ or a ‘Use Case’ Nothing magic it’s implemented by url param(ServerConversationContext) or a client param(ClientConversationContext) Contexts Class use ThreadLocal to store all contexts.
Conversation Lifecycle @Begin @End Conversation have timeout Conversation doesn’t result to a transaction Conversations can be nested Conversation can be merged by same id Conversation can be managed by ‘workspace’
Business Process Context BusinessProcessContext can span more than 1 user jBPM backend Sample
The meaning of 2 additional context Make program much more clear and easy to understand Use conversations and Business Process (jBPM) directly in JSF Eliminate the chance of silly mistakes and memory leaks Reduce the debug time You never want to convert back
Events Events JSF events <h:commandButton value=&quot;Click me!&quot; action=&quot;#{helloWorld.sayHello}&quot;/>  jBPM transition events <start-page name=&quot;hello&quot; view-id=&quot;/hello.jsp&quot;> <transition to=&quot;hello&quot;> <action expression=&quot;#{helloWorld.sayHello}&quot;/> </transition> </start-page>  Seam page actions <pages> <page view-id=&quot;/hello/*&quot; action=&quot;#{helloWorld.sayHello}&quot;/> </pages>  Seam component-driven events <components> <event type=&quot;hello&quot;> <action expression=&quot;#{helloListener.sayHelloBack}&quot;/> <action expression=&quot;#{logger.logHello}&quot;/> </event> </components>  @Name(&quot;helloWorld&quot;) public class HelloWorld { @RaiseEvent(&quot;hello&quot;) public void sayHello() { FacesMessages.instance().add(&quot;Hello World!&quot;); } }  Seam contextual events Lots of build-in events , such as  org.jboss.seam.validationFailed  No Event object exists  in seam. You can pass params if needed
Seam Component Seam component is a mix of jsf backingbean(managed bean),service class(normally named as ***Manager or **Service. )  It can maintain the states for your objects It can be  Stateless session beans Stateful session beans Entity beans JavaBeans Message-driven beans
Seam Component (cont.) The key of lightweight container is Dependency Injection (DI).  DI uses the lightweight framework container to inject services or other objects into a POJO.  The major differences between lightweight frameworks are how they wire container services together and implement Dependency Injection. The service architecture and metadata expression are the key issues here. ‘ Components’ are the ‘Spring beans’ in Seam world Components have the ability to be wired in Web tier ---- Michael  Juntao  Yuan
Seam Component (cont.2) @Entity @Name(&quot;greeter&quot;) public class Greeter implements Serializable {      private long id;      private String name;      @Id(generate=AUTO)      public long getId() { return id;}      public void setId(long id) { this.id = id; }      public String getName() { return name; }      public void setName(String name) { this.name = name; } }  <h:form> Please enter your name:<br/> <h:inputText value=&quot;#{greeter.name}&quot; size=&quot;15&quot;/><br/> <h:commandButton type=&quot;submit&quot; value=&quot;Say Hello&quot; action=&quot;#{manager.sayHello}&quot;/> </h:form>
Seam Component (cont.3) @Stateless @Interceptors(SeamInterceptor.class) @Name(&quot;manager&quot;) public class ManagerAction implements Manager {     @In    private Greeter greeter;     @Out    private List <Greeter> allGreeters;    @PersistenceContext    private EntityManager em;    public String sayHello () {      em.persist (greeter);      allGreeters = em.createQuery(&quot;from Greeter g&quot;).getResultList();      return null;    } }  <p>The following persons have said &quot;hello&quot; to JBoss Seam:</p> <h:dataTable value=&quot;#{ allGreeters }&quot; var=&quot;person&quot;>    <h:column>      <h:outputText value=&quot;#{person.name}&quot;/>    </h:column> </h:dataTable>  ---------------above codes from Michael Yuan , http://java.sys-con.com/read/180347.htm
Seam bijection In other containers DI happens only when the POJO is created Injection is the action between container and beans the reference does not subsequently change for the lifetime of the component instance  This is good for stateless beans For a stateful component, we need to change the reference within different context In Seam injection and outjection are the action between context and components DI happens when the context switches
Seam bijection(cont.) Bijection is Contextual Reference can change in difference context  bidirectional   Values are ‘Injected’ from context, and also ‘Outjected’ to the context dynamic   Bijection and contextual components are the soul of Seam!
Other cool stuffs JSF with EJB 3.0 (Ajax4jsf,icefaces,..) Enhance to JSF EL Validation Conversation written with JPA considered Build-in Testable Build-in BPM Build-in Security Build-in mail, webmail as a option
Develop simplified Rails style seam-gen Template based generation EL support in HQL/EJB-QL  simplified annotation based configuration
Highly integrated JSF EJB3/JPA JAAS authentication JSP Unified EL JavaMail Portlet buni-meldware mail/web mail Facelets jBPM Hibernate iText Drools JCaptcha Ajax4JSF ICEFaces Spring MyFaces Jboss microcontainer
EJB 3.0 or Java Beans? Both EJB 3.0 session beans and entity beans are supported as a component Java Beans also supported EJB 3.0 have declared transactions and state replicate capability Use Java Beans instead of EJB 3.0 allow you use Seam directly in Tomcat, not a EJB 3.0 container Java Beans support hot deploy
EJB 3.0 and JavaBeans(Cont.) booking example have several versions /examples/booking is a EJB 3.0 version /examples/hibernate is a Hibernate 3.0 version /examples/icefaces is using icefaces instead of Ajax4JSF /examples/glassfish is a version runs on Java EE 5 reference implementation Tips: Seam has a lot of well written completed examples comparing to hibernate
Seam and JSF EJB 3 beans are JSF managed Beans Actually every Component are JSF managed Beans Currently JSF is the only view supported Seam will be a main strength to promote JSF However, JSF is not very popular in China now
Seam and iText Pros: Seam use facelets document to generate PDF Cons: Still like a toy, comparing to Crystal Reports or JReport Report is one of very important feature in real world Suggest to use JasperReports as a solid report  tool Tips: Foxit Reader ActiveX can render PDF in lighting speed within the IE browser.
Seam and AJAX Interface.js  <script type=&quot;text/javascript&quot; src=&quot;seam/resource/remoting/interface.js?customerAction&accountAction&quot;></script>  Remote.js <script type=&quot;text/javascript&quot; src=&quot;seam/resource/remoting/resource/remote.js&quot;></script>  Make the AJAX call Seam.Component.getInstance(&quot;helloAction&quot;).sayHello(name, sayHelloCallback);  Return fields is been controlled at server side @WebRemote(exclude = {&quot;widgetList.secret&quot;, &quot;widgetMap[value].secret&quot;})  public Widget getWidget();  Return Data is typed Primitives / Basic Types ,String, Date,Number, Boolean,Enum, Bag, Map Support subscribe to JMS topic
Seam and AJAX(Cont.) Pros: Seam remoting allow seam been used with other  client JS library Currently two open source JSF-based AJAX solutions: ICEfaces and Ajax4JSF  Cons: Actually, RichFaces also like a toy comparing to dojo or Ext AJAX design pattern is still evolving. Especially in a portal page. Current Seam remote.js is tied too tight with JSF.  It’s possible to write a customized Ext dataset to communicate with Seam Remoting, but require many codes. Hope it can support JSON/Burlap in the future and support a dataSet model
Seam PageFlow Pros:jPDL visiable XML define Cons: you must use jBPM
Seam Security Simple mode and Advanced mode Advanced mode use Drools, provide rule based security checks  Authenticate built upon JAAS  offers a much more simplified method of authentication  Authorization Security API for securing access to components, component methods, and pages  Role based security check Security is a major advantage comparing to other frameworks like ROR.
Seam and persistence Tight integration with EJB 3.0 entity bean ,JPA and Hibernate No need to say more!  
Conclusion Seam is the most advanced J2EE stack now State Management is the most important feature But Seam is also heavy and complex Still lack of advanced Report ability AJAX support is behind era You must use JSF to gain max benefit But JSF is not popular enough Seam can simplify your code Remove glue codes between layers Some of Seam function is not standard yet No, but maybe that isn’t a problem, just like the success of hibernate in EJB 2.0 era.
Conclusion(cont.) Ruby improve productivity by using dynamic language and provide a ready to use Rails framework ROR is lack of wide range of libraries support comparing to Java Seam introduce Contextual Components , which will dramatically improve java programmer’s productivity But Seam’s inner complex will cost more time for developers to go in deep
Hope resolve the problem of EJB 3 beans hot deploy, that’s really a handy feature Add more views besides JSF. How about Eclipse RAP or Ext? Current client conversation can be used in a full AJAX solution. Exadel can improve the usability of Seam
About redsaga www.redsaga.com, an open source community only for matures Open source project hosting service available for good projects Contributed to Hibernate & Spring by organize the translate of reference documents and write book in Chinese Hibernate Core Hibernate Annotations Hibernate EntityManager Spring Reference Seam Reference translation in progress and open for volunteers http://wiki.redsaga.com/confluence/display/SeamRef/Seam+1.2.1+GA+Reference+Translate+Overview Coming soon! http:// www.ucosoft.com

More Related Content

PPT
Introduction To ASP.NET MVC
PDF
tut0000021-hevery
PDF
&lt;img src="../i/r_14.png" />
PPT
PDF
Building an HTML5 Video Player
PPT
Enterprise Java Beans( E)
PPTX
Modern Web Technologies
PPT
Enterprise java beans(ejb) update 2
Introduction To ASP.NET MVC
tut0000021-hevery
&lt;img src="../i/r_14.png" />
Building an HTML5 Video Player
Enterprise Java Beans( E)
Modern Web Technologies
Enterprise java beans(ejb) update 2

What's hot (17)

PPTX
Zend Framework
PPT
Ta Javaserverside Eran Toch
PPT
Unified Expression Language
PDF
Ajax Security
PDF
Java Web Programming [8/9] : JSF and AJAX
PPTX
Servlet and jsp interview questions
PDF
IOC + Javascript
PDF
SocketStream
PDF
EJB et WS (Montreal JUG - 12 mai 2011)
ODP
JavaScript and jQuery Fundamentals
PPT
Boston Computing Review - Java Server Pages
PDF
Html 5 in a big nutshell
PDF
- Webexpo 2010
PPT
JSF 2 and beyond: Keeping progress coming
PPT
Declarative Development Using Annotations In PHP
ODP
OpenWebBeans/Web Beans
PDF
Java Web Programming [5/9] : EL, JSTL and Custom Tags
Zend Framework
Ta Javaserverside Eran Toch
Unified Expression Language
Ajax Security
Java Web Programming [8/9] : JSF and AJAX
Servlet and jsp interview questions
IOC + Javascript
SocketStream
EJB et WS (Montreal JUG - 12 mai 2011)
JavaScript and jQuery Fundamentals
Boston Computing Review - Java Server Pages
Html 5 in a big nutshell
- Webexpo 2010
JSF 2 and beyond: Keeping progress coming
Declarative Development Using Annotations In PHP
OpenWebBeans/Web Beans
Java Web Programming [5/9] : EL, JSTL and Custom Tags
Ad

Viewers also liked (7)

PPTX
15 Tips For Home Fire Safety
PPT
Seams used in garments
PDF
Seams and stitches
PPS
Seams And Stitching Problems And Causes
 
PPTX
Thread And Seam Construction
PPTX
Home Safety Presentation
15 Tips For Home Fire Safety
Seams used in garments
Seams and stitches
Seams And Stitching Problems And Causes
 
Thread And Seam Construction
Home Safety Presentation
Ad

Similar to Seam Introduction (20)

PPT
Introduction To JBoss Seam 2.1
ODP
Introduction to Seam Applications
ODP
Introduction to seam_applications_formated
ODP
Introduction to seam_applications_formated
PPT
JSF and Seam
PDF
Seam Glassfish Perspective
PDF
JBoss Seam vs JSF
PDF
Seam reference
PDF
Seam 3 from a Web developer’s point of view, Matija Mazi (Parsek)
PDF
[Muir] Seam 2 in practice
PDF
Managing State With JBoss Seam
PDF
Enterprise Web 2.0: from pristine Java EE to fully-loaded frameworks
PDF
JSF 2.0 Preview
KEY
LatJUG. JSF2.0 - The JavaEE6 Standard
ODP
JBoss Seam 1 part
PDF
Jsf+ejb 50
ODP
Java EE web project introduction
PDF
Spring - CDI Interop
ODP
Os Leonard
ODP
JBoss AS7 OSDC 2011
Introduction To JBoss Seam 2.1
Introduction to Seam Applications
Introduction to seam_applications_formated
Introduction to seam_applications_formated
JSF and Seam
Seam Glassfish Perspective
JBoss Seam vs JSF
Seam reference
Seam 3 from a Web developer’s point of view, Matija Mazi (Parsek)
[Muir] Seam 2 in practice
Managing State With JBoss Seam
Enterprise Web 2.0: from pristine Java EE to fully-loaded frameworks
JSF 2.0 Preview
LatJUG. JSF2.0 - The JavaEE6 Standard
JBoss Seam 1 part
Jsf+ejb 50
Java EE web project introduction
Spring - CDI Interop
Os Leonard
JBoss AS7 OSDC 2011

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Cloud computing and distributed systems.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Cloud computing and distributed systems.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
cuic standard and advanced reporting.pdf
Review of recent advances in non-invasive hemoglobin estimation
Digital-Transformation-Roadmap-for-Companies.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
The AUB Centre for AI in Media Proposal.docx
Chapter 3 Spatial Domain Image Processing.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
20250228 LYD VKU AI Blended-Learning.pptx
MIND Revenue Release Quarter 2 2025 Press Release
“AI and Expert System Decision Support & Business Intelligence Systems”
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Seam Introduction

  • 1. JBoss Seam Introduction Xiaogang Cao, RedSaga http://www.ucosoft.com 2007-4-19
  • 2. MVC Pros pull the page logic out of mud A clean structure of request process Cons It’s only focus on request/response Modal and View are linked static Very hard to abstract ‘widgets’ in web pages I dreamed : XML,DB,entity, web based data window been unified
  • 3. The Seam way Consider the whole web app in a human understandable way Servlet Context is not enough, people have to write codes to manage state everywhere Seam unified all state management to ‘ Declared State Management’ The core cool feature of Seam is ‘Conversation Context’
  • 4. Conversations Samples Create Order: Select a customer Check balance Add a product to detail list Add more products Confirm and assign a Order Number
  • 5. Conversations Samples(cont.) Online Digital Photo Print Wizard Browse for photos, add them to print cart Review and update print qty Print them User profile update wizard View and begin edit of user profile Add a photo Edit details Review changes Confirm change
  • 6. Seam’s Contexts Stateless context Event (or request) context Page context Conversation context Session context / Http Session Business process context / JBPM Application context Contexts.lookupInStatefulContexts()
  • 7. Conversation context Conversation spans more than one page Conversation is a whole interaction of a certain task Conversation may means a ‘User Story’ or a ‘Use Case’ Nothing magic it’s implemented by url param(ServerConversationContext) or a client param(ClientConversationContext) Contexts Class use ThreadLocal to store all contexts.
  • 8. Conversation Lifecycle @Begin @End Conversation have timeout Conversation doesn’t result to a transaction Conversations can be nested Conversation can be merged by same id Conversation can be managed by ‘workspace’
  • 9. Business Process Context BusinessProcessContext can span more than 1 user jBPM backend Sample
  • 10. The meaning of 2 additional context Make program much more clear and easy to understand Use conversations and Business Process (jBPM) directly in JSF Eliminate the chance of silly mistakes and memory leaks Reduce the debug time You never want to convert back
  • 11. Events Events JSF events <h:commandButton value=&quot;Click me!&quot; action=&quot;#{helloWorld.sayHello}&quot;/> jBPM transition events <start-page name=&quot;hello&quot; view-id=&quot;/hello.jsp&quot;> <transition to=&quot;hello&quot;> <action expression=&quot;#{helloWorld.sayHello}&quot;/> </transition> </start-page> Seam page actions <pages> <page view-id=&quot;/hello/*&quot; action=&quot;#{helloWorld.sayHello}&quot;/> </pages> Seam component-driven events <components> <event type=&quot;hello&quot;> <action expression=&quot;#{helloListener.sayHelloBack}&quot;/> <action expression=&quot;#{logger.logHello}&quot;/> </event> </components> @Name(&quot;helloWorld&quot;) public class HelloWorld { @RaiseEvent(&quot;hello&quot;) public void sayHello() { FacesMessages.instance().add(&quot;Hello World!&quot;); } } Seam contextual events Lots of build-in events , such as org.jboss.seam.validationFailed No Event object exists in seam. You can pass params if needed
  • 12. Seam Component Seam component is a mix of jsf backingbean(managed bean),service class(normally named as ***Manager or **Service. ) It can maintain the states for your objects It can be Stateless session beans Stateful session beans Entity beans JavaBeans Message-driven beans
  • 13. Seam Component (cont.) The key of lightweight container is Dependency Injection (DI). DI uses the lightweight framework container to inject services or other objects into a POJO. The major differences between lightweight frameworks are how they wire container services together and implement Dependency Injection. The service architecture and metadata expression are the key issues here. ‘ Components’ are the ‘Spring beans’ in Seam world Components have the ability to be wired in Web tier ---- Michael Juntao Yuan
  • 14. Seam Component (cont.2) @Entity @Name(&quot;greeter&quot;) public class Greeter implements Serializable {      private long id;      private String name;      @Id(generate=AUTO)      public long getId() { return id;}      public void setId(long id) { this.id = id; }      public String getName() { return name; }      public void setName(String name) { this.name = name; } } <h:form> Please enter your name:<br/> <h:inputText value=&quot;#{greeter.name}&quot; size=&quot;15&quot;/><br/> <h:commandButton type=&quot;submit&quot; value=&quot;Say Hello&quot; action=&quot;#{manager.sayHello}&quot;/> </h:form>
  • 15. Seam Component (cont.3) @Stateless @Interceptors(SeamInterceptor.class) @Name(&quot;manager&quot;) public class ManagerAction implements Manager {    @In    private Greeter greeter;    @Out    private List <Greeter> allGreeters;    @PersistenceContext    private EntityManager em;    public String sayHello () {      em.persist (greeter);      allGreeters = em.createQuery(&quot;from Greeter g&quot;).getResultList();      return null;    } } <p>The following persons have said &quot;hello&quot; to JBoss Seam:</p> <h:dataTable value=&quot;#{ allGreeters }&quot; var=&quot;person&quot;>    <h:column>      <h:outputText value=&quot;#{person.name}&quot;/>    </h:column> </h:dataTable> ---------------above codes from Michael Yuan , http://java.sys-con.com/read/180347.htm
  • 16. Seam bijection In other containers DI happens only when the POJO is created Injection is the action between container and beans the reference does not subsequently change for the lifetime of the component instance This is good for stateless beans For a stateful component, we need to change the reference within different context In Seam injection and outjection are the action between context and components DI happens when the context switches
  • 17. Seam bijection(cont.) Bijection is Contextual Reference can change in difference context bidirectional Values are ‘Injected’ from context, and also ‘Outjected’ to the context dynamic Bijection and contextual components are the soul of Seam!
  • 18. Other cool stuffs JSF with EJB 3.0 (Ajax4jsf,icefaces,..) Enhance to JSF EL Validation Conversation written with JPA considered Build-in Testable Build-in BPM Build-in Security Build-in mail, webmail as a option
  • 19. Develop simplified Rails style seam-gen Template based generation EL support in HQL/EJB-QL simplified annotation based configuration
  • 20. Highly integrated JSF EJB3/JPA JAAS authentication JSP Unified EL JavaMail Portlet buni-meldware mail/web mail Facelets jBPM Hibernate iText Drools JCaptcha Ajax4JSF ICEFaces Spring MyFaces Jboss microcontainer
  • 21. EJB 3.0 or Java Beans? Both EJB 3.0 session beans and entity beans are supported as a component Java Beans also supported EJB 3.0 have declared transactions and state replicate capability Use Java Beans instead of EJB 3.0 allow you use Seam directly in Tomcat, not a EJB 3.0 container Java Beans support hot deploy
  • 22. EJB 3.0 and JavaBeans(Cont.) booking example have several versions /examples/booking is a EJB 3.0 version /examples/hibernate is a Hibernate 3.0 version /examples/icefaces is using icefaces instead of Ajax4JSF /examples/glassfish is a version runs on Java EE 5 reference implementation Tips: Seam has a lot of well written completed examples comparing to hibernate
  • 23. Seam and JSF EJB 3 beans are JSF managed Beans Actually every Component are JSF managed Beans Currently JSF is the only view supported Seam will be a main strength to promote JSF However, JSF is not very popular in China now
  • 24. Seam and iText Pros: Seam use facelets document to generate PDF Cons: Still like a toy, comparing to Crystal Reports or JReport Report is one of very important feature in real world Suggest to use JasperReports as a solid report tool Tips: Foxit Reader ActiveX can render PDF in lighting speed within the IE browser.
  • 25. Seam and AJAX Interface.js <script type=&quot;text/javascript&quot; src=&quot;seam/resource/remoting/interface.js?customerAction&accountAction&quot;></script> Remote.js <script type=&quot;text/javascript&quot; src=&quot;seam/resource/remoting/resource/remote.js&quot;></script> Make the AJAX call Seam.Component.getInstance(&quot;helloAction&quot;).sayHello(name, sayHelloCallback); Return fields is been controlled at server side @WebRemote(exclude = {&quot;widgetList.secret&quot;, &quot;widgetMap[value].secret&quot;}) public Widget getWidget(); Return Data is typed Primitives / Basic Types ,String, Date,Number, Boolean,Enum, Bag, Map Support subscribe to JMS topic
  • 26. Seam and AJAX(Cont.) Pros: Seam remoting allow seam been used with other client JS library Currently two open source JSF-based AJAX solutions: ICEfaces and Ajax4JSF Cons: Actually, RichFaces also like a toy comparing to dojo or Ext AJAX design pattern is still evolving. Especially in a portal page. Current Seam remote.js is tied too tight with JSF. It’s possible to write a customized Ext dataset to communicate with Seam Remoting, but require many codes. Hope it can support JSON/Burlap in the future and support a dataSet model
  • 27. Seam PageFlow Pros:jPDL visiable XML define Cons: you must use jBPM
  • 28. Seam Security Simple mode and Advanced mode Advanced mode use Drools, provide rule based security checks Authenticate built upon JAAS offers a much more simplified method of authentication Authorization Security API for securing access to components, component methods, and pages Role based security check Security is a major advantage comparing to other frameworks like ROR.
  • 29. Seam and persistence Tight integration with EJB 3.0 entity bean ,JPA and Hibernate No need to say more! 
  • 30. Conclusion Seam is the most advanced J2EE stack now State Management is the most important feature But Seam is also heavy and complex Still lack of advanced Report ability AJAX support is behind era You must use JSF to gain max benefit But JSF is not popular enough Seam can simplify your code Remove glue codes between layers Some of Seam function is not standard yet No, but maybe that isn’t a problem, just like the success of hibernate in EJB 2.0 era.
  • 31. Conclusion(cont.) Ruby improve productivity by using dynamic language and provide a ready to use Rails framework ROR is lack of wide range of libraries support comparing to Java Seam introduce Contextual Components , which will dramatically improve java programmer’s productivity But Seam’s inner complex will cost more time for developers to go in deep
  • 32. Hope resolve the problem of EJB 3 beans hot deploy, that’s really a handy feature Add more views besides JSF. How about Eclipse RAP or Ext? Current client conversation can be used in a full AJAX solution. Exadel can improve the usability of Seam
  • 33. About redsaga www.redsaga.com, an open source community only for matures Open source project hosting service available for good projects Contributed to Hibernate & Spring by organize the translate of reference documents and write book in Chinese Hibernate Core Hibernate Annotations Hibernate EntityManager Spring Reference Seam Reference translation in progress and open for volunteers http://wiki.redsaga.com/confluence/display/SeamRef/Seam+1.2.1+GA+Reference+Translate+Overview Coming soon! http:// www.ucosoft.com

Editor's Notes