on 2005 May 11 5:30 AM
Hello,
I have a question regarding EJB and JSP. Im currently not a java developer however Ive 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.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.