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.
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..
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.