Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4265962
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:41:43+00:00 2026-05-21T06:41:43+00:00

I am trying to develop some RESTful web services which have to access some

  • 0

I am trying to develop some RESTful web services which have to access some backend system for data. These backend sources can be any one of the folowing :

  1. Database through JDBC

  2. ERP, communicates through SOAP

  3. Another J2EE application, communicating through SOAP or maybe REST.

What best can I do at my level to have a loose coupling between my business layer and the DAO ? IS there some design pattern which may help me ?

Thanks a lot for the help !!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:41:44+00:00Added an answer on May 21, 2026 at 6:41 am

    Hope this helps:

    • Layer your system: as you mention in your answer, always split bz logic from the data access logic. I would recommend to implement different layers in different binary modules, this will give you the flexibility to deploy different layers in different tiers (if you really need it).

    • Repository pattern: the business layer has abstract definitions of how to perform data access operations with certain entities in your bz logic. The methods in the repositories always use entities defined in your bz logic as parameters (the repositories always “talk” in the the bz language ). Once the repository interfaces are defined in the bz layer, you implement them in a separate layer: the data access layer.

    • Dependency injection: in the application layer (GUI, application server, …), in the initialization logic (bootstrapping) you can use a dependency container to inject the repository implementations (the ones defined in the data access layer) in your bz logic. There a lot of open source frameworks with dependency injection containers.

    With these 3 patterns, you can separate the DA logic from your bz logic.

    Note that this is a very short answer, I would recomend you to take some time and read the following books:

    • Patterns of Enterprise Application Architecture
    • Domain Driven Design

    Thanks,

    Juanjo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get some ideas about how to develop a web login screen.
Greetings, I'm trying to develop some tests for Mason components which requires running them
I'm trying to develop some SharePoint workflows for the company I work for, and
Duplicate : https://stackoverflow.com/questions/135651/learning-unit-testing I'm trying to develop some software for my research group to
I am trying to develop a .NET Web Project using NHibernate and Spring.NET, but
I am trying to develop everything in sharepoint as features so I can easily
I am trying to develop some general purpose custom ValidationAttributes. The fact that one
I'm trying to develop some asynchronous methods for a personal project of mine, and
Currently I'm trying to develop some simple plot prototype and I'm struggling with some
I am a newbie trying to develop some login panel. The problem now is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.