Search |
|||
Should I use EJB3 as web-services?Posted by felipegaucho on June 2, 2008 at 1:49 AM PDT
Is it a good design to expose EJB3 Session Facade as web-services?Reading patterns and examples on the Internet, EJB3 + @WebService seem to be a fast and furious way to go straight to SOA with few lines of code and a good container. Despite the simplicity of annotations, I started designing an Open Source Classifieds system based on J2EE technologies and I have some observations about that. Instead of replicating here all discussions about web-services design and its technology support, I prefer to bring you a few design options and get your feedback live during Jazoon.
Some considerations about the above design options:
Using a same class to expose services interface and realizing business use cases seems a bit overlapped to me, but eventually I am missing some point here. It is up to you, see you in Zürich :) »
Related Topics >>
Java Web Services and XML Comments
Comments are listed in date ascending order (oldest first)
Submitted by gerryg on Mon, 2008-06-02 10:15.
I'm interested in the answer to the questions, but unable to go to Zurich to find out. Will you post your results sometime afterward? My company is just heading toward SOA, and we have not adopted EJBs (any flavor/version) yet, but with the latest JEE it's looking more like an option, especially with web services on top of EJBs to enable multiple interfaces in the SOA. Thanks!
Submitted by mojavelinux on Tue, 2008-06-03 22:18.
I will be in Zurich to discuss this in person (if we manage to find each other) but I would also like to post one insight now while it is on my mind.
To answer your question regarding security, I highly recommend that you check out Seam's approach to this problem. Seam combines a security interceptor with its conversation model to create a stateful web service. The initial call establishes your credentials and any number of followup calls can use that session to execute business services with an active UserPrincipal. The nice part is all this is done with standard Java EE with Seam's solution layered on top of it.
Dan Allen
Author of Seam in Action
http://www.mojavelinux.com/seaminaction
Submitted by felipegaucho on Tue, 2008-06-03 23:47.
well, roles are automatically cascaded between web-applications and J2EE applications in the same container, so I guess Seam does the same as the standard j2ee application does. Seam is fantastic, but regarding this detail about security, I can't see great advantage of Seam...
Submitted by felipegaucho on Tue, 2008-06-03 03:50.
EJB ease two interesting features to your web-service application:
|
|||
|
|