Hi,
There are "7 Lessons" in:
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/
and in Lesson 1:
in BonusServlet.java:
a. in "init" :
...
InitialContext ctx = new InitialContext();
Object objref = ctx.lookup("calcs");
homecalc = (CalcHome)PortableRemoteObject.narrow(objref, CalcHome.class);
...
b. in "doGet" :
...
theCalculation = homecalc.create();
calc = theCalculation.calcBonus(multiplier, bonus);
...
c. "Calc" is a stateless session bean
So my questions are:
1. If BonusServlet gets "concurrent accessing", will it work correctly?
2. Is it correct and useful to make a "CalcHome pool" in "init" of
BonusServlet?
3. Is it correct and useful to make a "Calc pool" in "init" of BonusServlet?
Sorry for bothering you bcause I am new to EJB, and because when I "port" my
application(a simple game) from (solaris7+J2EE1.2.1RI_solaris) to
(winnt40+J2EE1.2.1RI_win), sometimes it becomes slow.
Thanks for your time!
Bo
July 10,2000
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".