Gwt cdi jud_con_berlin
Upcoming SlideShare
Loading in...5
×
 

Gwt cdi jud_con_berlin

on

  • 4,004 views

Using GWT with CDI

Using GWT with CDI

Statistics

Views

Total Views
4,004
Views on SlideShare
2,159
Embed Views
1,845

Actions

Likes
0
Downloads
30
Comments
0

21 Embeds 1,845

http://www.jboss.org 1309
http://errai-blog.blogspot.com 379
http://planet.jboss.org 102
http://hbraun.info 13
https://www.jboss.org 9
http://errai-blog.blogspot.ca 7
http://www.jboss.org:80 5
http://errai-blog.blogspot.de 4
http://errai-blog.blogspot.com.br 2
http://errai-blog.blogspot.ch 2
http://errai-blog.blogspot.ru 2
http://errai-blog.blogspot.cz 2
http://errai-blog.blogspot.co.uk 1
http://errai-blog.blogspot.it 1
http://errai-blog.blogspot.in 1
http://errai-blog.blogspot.com.es 1
http://static.slidesharecdn.com 1
http://webcache.googleusercontent.com 1
http://errai-blog.blogspot.no 1
http://errai-blog.blogspot.pt 1
http://errai-blog.blogspot.com.au 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Gwt cdi jud_con_berlin Gwt cdi jud_con_berlin Presentation Transcript

  • GWT & CDI Heiko Braun <hbraun@redhat.com>
  • Topics • CDI & GWT • Use Cases & Requirements • Relevant Concepts • Likeminded Technologies • Demo
  • GWT & CDI
  • Google Web Toolkit • Create Ajax applications from Java sources • GWT SDK: Compiler, API, Tools • Creates highly optimized, portable javascript code
  • Context and Dependency Injection • CDI: JSR-299, JSR-330 • Reference implementation: Weld • Seam 3 • EE6 component model • Portable extensions • shrink-size or extend runtime (framework)
  • Use Cases & Requirements
  • Use Cases • Invoke CDI beans from GWT clients • RPC • Pub/Sub • Eventing • Expose domain models to GWT clients • Serialization
  • Example: RPC bean
  • Example: RPC Client
  • Requirements • “Seamless integration” • Verified concepts • Concise programming model • Reduction of boilerplate
  • Example: Event Bean
  • Example: Event Client
  • Relevant Concepts
  • Beans, Qualifiers & Scopes • Bean type: Client-visible type (class, interface) • Qualifier: Distinguish multiple beans of the same type • @Named, @Asynchronous • Scope: Determines instance lifecycle • @SessionScoped, @ConversationScoped, @RequestScoped
  • Build & Run-time • Run-time • Build-time • Deployment • Same Origin Policy? • GWT Compiler constraints • Transactions, Security • Domain model & API? • Context propagation? • Clustering, Failover • Hosted Mode • Stateful Ajax Client? • CDI Bootstrap? • Deferred Binding • Boiler plate Java Javascript
  • Example: Conversation Scoped Bean
  • Example: Client managed conversation (1)
  • Example: Client managed conversation (2)
  • Likeminded Technologies
  • Related Technologies • JPA • Serialization • Detachment (lazy/eager loading) • Merging • DataBinding • Widgets, Validation, Synchronization • JMS • Ajax client as Topic Subscriber/Publisher
  • Project and Roadmap
  • Errai & Weld • Errai acts as Umbrella (http://jboss.org/errai) • Weld as Reference implementation • Driven by both Errai and CDI Team • Same runtimes Weld supports: • SE, Servlet, EE6, EC2: “Start POC, grow big”
  • Questions? • Project: http://jboss.org/errai • Weld: http://seamframework.org • Blog: http://errai-blog.blogspot.com/ • IRC: irc.freenode.net#errai