I don't understand:
I assume when you write a bean that extends a HttpServlet, only the
service() doPost() and doGet() methods are treated as concurrent threads.
But when i add other methods like 'doQuery(int Id)' which i call from a JSP-Page
('<% myBean.doQuery(5); %>) i assume that this method isn't run as
concurent thread --and you lose system performance.
What i want to do is this: create a bean that's capeble of fetching,
adjusting and storing data from a certain entitie into a relational
DBase. By the use of the bean's set & get -methods i can set/get the
values, and then by the fetch()/adjust()/store() -methods i could do the
rest.
Has anyone made/seen such a model?
Is this a correct aproach? --extending the HttpServlet
When i want to make use of the javax-API --sessions ed-- should i make use
of the service(@;@)-method or just make a custom method : 'myMethod(HttpRequest
req)'.
It all seems/is very unclear to me.
Regards,
Mark
GIF image