This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Build Web Service layer on top of existing JSF & EJB web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Build Web Service layer on top of existing JSF & EJB web application" Watch "Build Web Service layer on top of existing JSF & EJB web application" New topic
Author

Build Web Service layer on top of existing JSF & EJB web application

Ajaz Ansari
Greenhorn

Joined: Dec 04, 2008
Posts: 3
I have a legacy application built on Java, JSF, EJB & JDBC. I have Business logic layer (BLL) implemented as Stateless session beans & Data Access Layer (DAL) layer having DAO using JDBC.

JSP – JSF Backing bean – Business delegate – Stateless Session Bean – DAO – JDBC

Now, I would like to abstract and reuse the existing BLL & DAL layers and expose web service interfaces with maximum reuse of existing code. This is because I need to allow these services to be used by different mobile devices.

1) What are the best practices and design consideration I need to take care of?
2) How I can ensure maximum code reuse?
3) I am more inclined towards using RESTful web services instead of Soap based webservices. What are the issues/risks, I need to take care of?

Any pointers are greatly appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Build Web Service layer on top of existing JSF & EJB web application
 
Similar Threads
Business Logic in EJB3 SessionBean?
EJB Stateless Session Bean with DAOs
What is the official solution for Lazy problem?
now without EJB
Confusion between Entity and Session Bean