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

Wanted to clear up a misconception about Seam

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since we have such a good audience this week, I wanted to clear up a misconception a lot of people have about Seam, that I hear a lot.

Seam does NOT require the use of EJB. repeat you are NOT required to use EJBs in a Seam app. Your Seam components can be POJOs.

This goes with Seam being able to be deployed on other app servers and Tomcat too.

Mark
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Mark. That is a common misconception. The other common misconception is that you must use JBoss AS to use Seam. Seam is a general enterprise application framework that can be used on any Java application server or servlet container. The only barrier is getting the configurations right, but that is true of all Java applications (the nature of the beast).

I will extend your comment by saying that you don't have to use JPA to use Seam. You can use Hibernate, or you can just not use an ORM at all (you could use iBatis, albeit with a lot less benefit). You also don't have to use JTA. You can use a resource-local transaction, which basically means you let the ORM handle the transaction boundaries for you.

Seam is extremely flexible. In fact, if you read chapter 4 of Seam in Action, you will learn that you can override any built-in Seam component with your own implementation. In Seam 2.1, you can even develop your own custom deployment handler so you can also register your own types of resources (and infrastructure) during Seam initialization.

Just keep one thing in mind. Seam is a way to define and wire together stateful components. What technologies you use doesn't really matter.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only barrier is getting the configurations right

By the way, thumbs up for posting instructions to deploy to Glassfish.
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep your eye out for instructions to get the EAR project working and, if I have my way, GlassFish support baked into seam-gen after Seam 2.1.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic