*
The moose likes Web Services and the fly likes Entities as Service endpoints Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Entities as Service endpoints" Watch "Entities as Service endpoints" New topic
Author

Entities as Service endpoints

Sai Swami
Ranch Hand

Joined: Sep 24, 2002
Posts: 51
Hi Group,

Is it possible to have POJO's with EJB annotation to serve as an endpoint?

Thanks,
Sai
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Sai Swami wrote:Is it possible to have POJO's with EJB annotation to serve as an endpoint?

Yes, it can be. Remember, container in all probability will use an instance of your POJO to serve multiple clients. So you have to devise a way to serve appropriate values to different clients, if they are not same for all


My Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Entities as Service endpoints
 
Similar Threads
Integarting SOAP and RestFull WebServices
Problem with Java Client
Mock Exam question regarding End points
endpoint
how to invoke web service implemented in MS.NET