This is a wild guess since I don't know COM. But does COM depend on a
certain user being logged in? If you are starting JServ automatically with
Apache and if Apache is running as an NT service then it is starting under
the system account which might not be a valid account for your COM service.
----- Original Message -----
From: Peter Dunn <[EMAIL PROTECTED]>
To: 'Java Apache Users' <[EMAIL PROTECTED]>
Sent: Tuesday, June 01, 1999 4:27 PM
Subject: RE: COM & JServ
> Hi,
>
> I made server static and got the same result. I have also tried creating
> the server and server connection in the doGet method with the same result.
>
> regards,
> Peter
>
> >Peter Dunn wrote:
> >
> >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
letException{
> > 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 h
ave 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]
>
>
> -- --------------------------------------------------------------
> 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]
>
-- --------------------------------------------------------------
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]