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 7548023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:36:18+00:00 2026-05-30T09:36:18+00:00

I’m looking for best practices or a general approach towards making a server-side application

  • 0

I’m looking for best practices or a general approach towards making a server-side application modifiable by regular non-programmers. It doesn’t have to be hot-modified; it can be recompiled and redeployed.

Suppose the system is in a EJB or Spring container. The system is message driven (perhaps EJB3.1). There are a number of POJOs that receive messages from client applications (RCPs or RIAs), react to those messages, and send more messages to the same and other client apps. What is the best approach to make the system easily modifiable? If I correctly separate the server’s logic components, what technology or design approach would allow me to swap out logic POJOs with new POJOs, thereby changing the application’s behavior?

I think what I’m describing is a Strategy Pattern. Can these POJOs be generated from a set of human-readable and editable rules? Is a rule engine like Drools the right way to approach this problem?

Can this be combined with a state machine generator as well, so that each state has a list of input messages and responses to each, transition rules, and so forth?

Toy example:

  • State_Evening
    • input sellStocks
      • reply “Cannot sell in evening, wait until daytime.”
  • State_Day
    • input sellStocks
      • do SellStocks
      • reply “Stocks sold for _“

etc.

Now that I write it out like that, it looks like the scripting language would be almost the same as programming…

I’m just looking for a pointer in the right direction. Or it could be that I’m over-complicating something simple. Perhaps I should just make the business logic as cleanly separated as possible and make the changes in the code?

Edited on Feb 22 2012 for clarity

  • 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-30T09:36:19+00:00Added an answer on May 30, 2026 at 9:36 am

    I agree to JB Nizet comment about the scalpel.

    Anyway: some answers to your probelm:

    Spring, Griffon, Embedded Jetty, Servlets, EJB (or POJOs? Or …?)
    So far is this platform a good approach?

    EJB will not work this way, they will need a EJB Container like Glassfish or Websphere Application Server. But if you use Spring, then you do not need EJBs (you have Spring Beans instead). If you use Spring, then you mostly have one Spring Servlet, and all the web stuff is handled by the Spring MVC Framework — this divers from classis Servelt programming (without framework)

    One way to change some code on the fly is using a scripting language. So you can use for example Rino to run java script code within the JVM.

    But really, when I would need to do your job, then I would try to implement some framework for server and client, that make it easy to write the games in java. So your studends can use a normal IDE and maybe maven to deploy the complete application.

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

Sidebar

Related Questions

I am looking for best practices in regards to printing from a WinForms application.
I'm planning to code a Web2 online application and I'm looking for best-practices. I'm
I am looking for best practices for detecting and preventing DOS in the service
I'm looking for best practices for establishing connections between Oracle 8 and Visual Studio
I'm looking for best practices for performing strict (whitelist) validation/filtering of user-submitted HTML. Main
I'm looking for best practices for using the same data in different places without
I'm looking for best-practices for designing a site that with accessibility in mind. The
I'm looking for best practices here. Sorry. I know it's subjective, but there are
My web app is going to call a webservice. I'm looking for best practices
I'm looking for some Best Practices for automating the deployment of Stored Procedures/Views/Functions/Table changes

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.