Global,non-static. I will make it static and get back to you.

public class PointOpcServlet extends HttpServlet 
{    
  IOPCAutoServer server = null;  
  ...
  
  public void init(ServletConfig config)throws ServletException{  
    server = new OPCServer();    
    server.Connect("MyServer",new Variant(""));
  ...

>Greg Barish wrote:
>Hi -
>
>Is the data structure used to store the connection ID locally 
>or globally scoped and is it static?

>>Peter Dunn wrote:
>> 
>> NT SP4
>> Apache 1.1.6
>> JServ 1.0b5
>> MS vm 5.00.3181
>> 
>> Hi all,
>> 
>> The init method of my servlet requests a Connection to a COM server.  The
>> COM server starts up as expected.  So far so good.  However when I
attempt
>> to read data from the server in the doGet method of my servlet, the read
>> returns null.  If I run the same code as an application the read returns
>> valid data.  It is critical that I get this servlet working with this COM
>> server.  Any guesses as to the cause of this behavior would be
appreciated.
>> 
>> thanks,
>> Peter
>> 
>> PS:  I have included the my servlet in the wrapper.classpath to get
around a
>> security issue.
>> PPS: I have tried sleeps and loops with the same result.


-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to