File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Session beans as backing beans ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Session beans as backing beans ?" Watch "Session beans as backing beans ?" New topic
Author

Session beans as backing beans ?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

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

Joined: Mar 07, 2002
Posts: 1427
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.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session beans as backing beans ?