Skip to Content
author's profile photo Former Member
Former Member

Best way to structure Business Logic

Hi Experts,

I am using Web Dynpro for my front-end and application services for the back-end. Which of these is the recommended way to structure the layout of my business logic:

1) Keep everything in the 'src' folder of the CAF ejbmodule. Structure through the use of packages.

2) Create an external Java DC, keep all code in there and call the code from the application services. Structure code through both packages and the use of multiple DCs.

3) Create a child Java DC in the CAF ejbmodule project, keep the code there. Structure code through both packages and the use of multiple DCs.

4) Some other way which I do not know of???

I think that (2) is the best way to to this, but I'm not sure and I also don't know how to make the code in the Java DC accessible from the CAF in 7.1. In 7.0 one was required to assemble the Java DC into a J2EE Server Library project and then create the required dependencies. How does this work in 7.1?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Nov 30, 2007 at 02:10 PM

    Hi JP,

    Whether you put some parts of your business logic in a separate project or in the same EJB module project as the CAF application services depends mainly on how much you will reuse it in other projects. If it's only to be used in this CAF EJB module, you can also keep everything therein together.

    Regarding the second part of your question - in 7.1 instead of creating a J2EE Server Library you use a normal (standard) Java EE application project to bundle your library jars. More information can be found in this <a href="/people/community.user/blog/2006/10/24/applications-and-shared-libraries.


    -- Vladimir

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.