aspose file tools*
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
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
 
Consider Paul's rocket mass heater.
 
subject: Entities as Service endpoints