cancel
Showing results for 
Search instead for 
Did you mean: 

EJB Help

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

So what you’re saying then is that the source is locked at the file level? Is Java Compiled JIT in this context then, or do compiled Java binaries sit on the web server as they do with say ASP.NET?

Former Member
0 Kudos

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