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

  • SEARCH
  • Home
  • 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 800819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:20:51+00:00 2026-05-14T23:20:51+00:00

Is posible implement the business logic in an App Server remote using pojos instead

  • 0

Is posible implement the business logic in an App Server remote using pojos instead of either EJB or Servlets???. The main idea is apply a model of 3 layers where the clients may be both web browsers and desktop applications, and they share the business logic in an App Server.

this would be the architecture

browser—– >Web Server ——–>|App Server(Business Logic common)|——->|RDBMS common|
desktop App(Swing for example)->|App Server(Business Logic common)|——->|RDBMS common|

  • 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-14T23:20:52+00:00Added an answer on May 14, 2026 at 11:20 pm

    You can use Spring instead of EJBs. And I recommend it!

    But both alternatives will handle enterprise features such as transaction handling and security for you in an excellent way.

    Using Spring or not, you still need a Servlet container for your web pages. The Servlet container can start the Spring container if you configure the Servlet container’s web.xml file correct.

    A transaction handling example with Spring:

    @Transactional
    public void execute(..) {..}
    

    And with EJB 3.x:

    @TransactionAttribute
    public void execute(..) {..}
    

    As you see, both alternatives offers you to add enterprise features declaratively.

    Updated after reading HenryOS’s comment:

    It’s possible to have all the business logic on one server.

    One solution can be to use Web Services between the clients (WEB server and the fat Swing clients). It’s a quite nice and loosely coupled solution.

    If you need more speed, you can consider using Google’s Protocol Buffer or similar technology instead.

    An interesting thing is that with Web Services or Protocol Buffer, you still need a web container like Tomcat or Jetty on the server with business logic, since it must provide the web services for the clients. All Web Services frameworks like Spring WS, CXF and Apache Axis 2 uses a Servlet.

    When it comes to layers, I will recommend two layers on the WEB server, since you only present and retrieve data before sending it to the business server. On the business server I will recommend three layers. The top layer to handle Web Services, business layer in the middle and an integration layer against the database and other enterprise systems at the bottom.

    Finally, if you’re using CXF or Spring WS together with JAXB, then all your classes on the business server can be written as POJOs! It applies to several other well written Web Service frameworks as well.

    I hope this answers your question!

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

Sidebar

Related Questions

Is it possible to implement navigation using jquery ui tabs instead of standard tabs
Is it possible to implement some kind of timeout (time limit) for fork using
I'm researching software components to use in a future development of a business logic
I'm coding up some delicious business logic and I've come to a situation like
I'm using WCF to implement a web service. This web service requires a 'ping'
I'm constructing a SQL query for a business report (using MySQL). What I would
I've been attempting to architect a server side API that runs using a noSQL
I'm working on a large Winforms project for a client that is using business
I have a custom collection (a thread-safe ObservableQueue). I implemented the business logic inside
Is it possible implement the GOF command pattern using a Queue of Action delegates?

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.