-
1. Re: When to use SessionBeans and when Pojos?
hexxter Aug 22, 2007 4:17 PM (in response to hexxter)one more thing:
when do I have to specify a @Local and a @Remote interface? Is @Remote usefull in seam context anyways? As I understand it seam can use objects even without these interfaces.
more thanks,
Florian -
2. Re: When to use SessionBeans and when Pojos?
alexg79 Aug 22, 2007 8:02 PM (in response to hexxter)You only have to use @Remote when you plan to make the session bean available to clients outside the container JVM (for a client application).
There are a number of advantages to using EJB3 session beans instead of POJOs.
SFSB replication across the cluster is handled by the container, as is persistence context injection and transaction demarcation.
As I recall, the Seam documentation says that SFSB replication across the cluster is more efficient than that of Seam POJO components. -
3. Re: When to use SessionBeans and when Pojos?
wise_guybg Aug 23, 2007 2:07 AM (in response to hexxter)Yesterday I was about to create a similar thread when I found this:
http://docs.jboss.org/seam/2.0.0.B1/reference/en/html/concepts.html
It doesn't explain all the details but is a good guide.