This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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: 3400

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: 3400

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Session beans as backing beans ?
 
Similar Threads
When does <h:datatable> support sets?
JSF bean container
Is backing Bean Replacing Command Pattern?
how to access faces context and backing beans in a servlet filter
Session backing beans...