Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do you recommend the integration with other frameworks?

 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Do you recommend the integration with other frameworks? The two that I would like to know are: Struts and Spring
Or no, the integration doesn't worth all the problems that might result, and the developer should choose one of them?

Thanks in advance!
 
Jason Porter
Author
Ranch Hand
Posts: 126
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my experience I'd say Struts + JSF isn't worth it, pick one. The Spring + JSF should work just fine and have decent integration (though with CDI, what would you need Spring for, beside using it simply as a library?)
 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Porter!

I didn't know what's CDI. So here is a link for those that also might not know: http://java.dzone.com/articles/contexts-and-dependency
 
Vyas Sanzgiri
Ranch Hand
Posts: 686
Chrome Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am guessing by searching around with CDI that you might need some libraries for CDI to work on Tomcat?
 
Lincoln Baxter
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you want to use CDI on tomcat, take a look at JBoss Weld
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Weld provides an uberjar (single JAR) that provides everything you need to use CDI in a servlet container (such as Tomcat or Jetty). The best way to get started with CDI (whether in a servlet container or Java EE application server) is to start with the Maven 2 archetypes provided as part of the Weld project: http://seamframework.org/Documentation/WeldQuickstartForMavenUsers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic