I am trying to understand what is the best design approach for my application - that will be mainly ding entry of data thru JSP Pages, and retriving Data.
My questions specifically is.
I am using tomcat Connection pooling.
1. Where should I place my code that does context Lookup? I read somewhere that Doing a Context Lookup can be expensive.
Should it be in JavaBean or a Servlet ? and why ?
I am not very clear on Javebean and Servlet concept.. If someone can describe in simple language will appreciate.
2. When should I use Bean instead of Servlets?
Thanks A lot.
My questions specifically is.
I am using tomcat Connection pooling.
1. Where should I place my code that does context Lookup? I read somewhere that Doing a Context Lookup can be expensive.
Should it be in JavaBean or a Servlet ? and why ?
I am not very clear on Javebean and Servlet concept.. If someone can describe in simple language will appreciate.
2. When should I use Bean instead of Servlets?
Thanks A lot.