Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session beans as backing beans ?

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
What is the point of making session beans act as backing beans with event listener ?
Backing beans aren't supposed to support remote access or distrubuted tx (as session beans).
So, I just feel that making session beans acting as backing beans is just for marketing reasons (The JEE5 framework).
Please note that I'm disdaining your work or this framework, I like Seam alot and it is one of the best frameworks today.
Thanks.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the idea is to get rid all those XML in the faces-config.xml file.

You do not have to use EJB3 session beans. You can use POJOs with the @Name annotation (we call them Seam POJOs) as JSF backing beans as well -- this gives easy naming and dependency injection without the backing bean XML.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Yuan:
I think the idea is to get rid all those XML in the faces-config.xml file.

You do not have to use EJB3 session beans. You can use POJOs with the @Name annotation (we call them Seam POJOs) as JSF backing beans as well -- this gives easy naming and dependency injection without the backing bean XML.

With Seam POJOs, we don't have XML files also.
Sorry, but I didn't get what you mean.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic