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

EJB Help

Hello,

I have a question regarding EJB and JSP. I’m currently not a java developer however I’ve been put in charge of determining whether or not our shop will change over to it. I understand that you can create custom JSP tags with EJB to separated presentation from business logic. My Question is: is the code in a EJB compiled? The application we are developing is to be web based and on web servers that are out of our control. We must be able to compile our business logic and DB connection information to hide if from noise administrators and programmers in shops that may use our software. Is Java the way to go with this? If so any hints, suggestions or good luck wishes will be greatly appreciated.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2005 at 06:58 AM

    Hi Ronald,

    JAVA code is compiled prior to run wether it is a JSP or an EJB. Only person with proper authorizations can

    change and compile. In case of EJB's after compilation

    we have to deploy them on the web-server. User who is only authorized to use EJB can not change business logic.

    JAVA has very good security features.

    It seems that it will fit into your requirements.

    Regards,

    Narinder Hartala

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ronald,

      after compilation sorce code is converted to bytecode,

      which is then interpreted by the JVM. JIT is nothing but a java compiler called JUST IN TIME compiler which compiles java code faster. I m not aware of ASP.NET

      but in case of EJB's first we compile all java classes

      and then make .war (Web Archive) files which then are

      deployed to the web server.

      Get back to clear your doubts, now i m feeling sleepy.

      Regards,

      Narinder Hartala

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2005 at 09:53 PM

    Ronald,

    Java is the correct way to do, But to have a EJB related calls in JSP is a bad j2ee practise. a Business logic cannot be implemented at the JSP level(View)

    For ur purpose I guess an MVC-2 arcitecture would fit perfectly. Use a Struts based application where you have the View defined by the JSP's and Have a controller like a servlet/action classes that divert the JSP calls, acts as a traffic cop.Model the business logic in your Beans. Process all your DB connections and SAP connections in your Bean objects.

    Hope this helps..

    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.