This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes First Java web app underway: JSF vs. EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "First Java web app underway: JSF vs. EJB?" Watch "First Java web app underway: JSF vs. EJB?" New topic
Author

First Java web app underway: JSF vs. EJB?

Grary Stimon
Ranch Hand

Joined: Sep 30, 2008
Posts: 42
Dear Ranchers,

I've got enough under my belt to begin development of Java web apps (I hope, anyway.) I have been confused about the following involved issues, however:

- Is JSF a 'framework' like Struts? So, in other words, with suitable time invested in learning JSF, will I need to learn other frameworks, too?
- Is there a tension between Struts backing beans and EJB? So, in other words, if I want to develop my app with as much flexibility as possible for future enhancements, do I think EJB first or JSF first?

Thanks. I've just been kind of confused that there's no one bulletproof way to do Java web apps if one has the time to learn it.

Grary
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1


The web frameworks are pretty similar. I learned Struts first, and it made picking up JSF pretty easy.

>>do I think EJB first or JSF first?

Well, EJB and JSF serve different roles. JSF is focussed on the front end, and EJB is more focussed on the back end. So, you can explore them independently, and when you get a bit of a background in both, you'll have a good idea of how they can work together. And that's really the idea. JSF works well with EJB.
Grary Stimon
Ranch Hand

Joined: Sep 30, 2008
Posts: 42
Cameron,

Thanks for your reply.

So, I could get started implementing business logic EJBs and expect to 'wire' them to JSF pages, later? Or must I study up on JSF backing beans first to make sure I can expose my EJBs properly?

Thanks,

Grary,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: First Java web app underway: JSF vs. EJB?