hi,


two Questions:
1.
my servlet calls a function P, P calls a function C,  C calls a function B, and B 
reads from a binairy file
when i use this architecture in a main it works perfectly

but when i use a servlet in stead of  a main
it gets stuck on the reading part...

now i put the reading part into my servlet and it works... (can someone tell me why 
this works..??)
reading part...

try
       {
       bf = new binAccess();
           bf.RaOpen();  // this function reads the files in an array
           //pr = bf.GetTimeDist(4444, 4331);


       }
       catch (Exception e)
       {
        pr = 3;
       }



the problem is that the function getTimeDist can only be called in function C
now i have to reach te arrays which are read in het Servlet...
should i use a function to pass the array arguments to my function P and C???
or is there a better solution?


2.

when i execute the init of a Servlet the first time the code will run during the 
lifecycle of the Servlet Right?
so why does my connectionpool get destroyed when the function ends .?
im using the one provided by coreservlets.

my quess was that the connectionpool get initialized during the init of the Servlet so 
the connections should stay up during the lifetime.....
i am wrong why?????

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to