Hey!

This begs the question why are they in the init()?

In the service methods, the first time they are called by
someone (i.e. a living breathing person) one can input the
UID & PW.

If this is not acceptable, then do these COBAL programs have command
line parameter capability?  Then just do:

cobalProgram user 'username' using 'userpassword'.

I'm just shooting from the hip.

Sans adieu,
Danny Rubis

Sandeep Tikoo wrote:

> Hi all,
>
> I have a problem and I hope that somebody will be able
> to help me out.
> I am using Websphere 3.02 on S390. I have a servlet
> which calls CICS/COBOL programs in its init() method
> using EXCI/CGI.
> The servlet works fine as long as it is not an
> auto-start servlet.When it is an auto-start servlet, I
> am not able to connect to CICS and the init() method
> of the servlet fails with a NullPointerException at
> the point where an attempt to connect to CICS is made.
> The only difference I can see when the servlet is not
> an auto-load servlet and when it is, is that, when it
> is not an auto-load servlet the user,
> when he invokes the servlet is prompted for a CICS
> user-id and password, which ofcourse wouldnt happen
> when it is an auto-load servlet.
> Do we need to conifigure some Webserver property when
> an auto-start servlet needs to access some resource
> like a database server, to access which requires
> a user id and a password, authentication. If so, would
> anybody know how it can be done in WAS. I have checked
> all the manuals and web-sites that I could but couldnt
> find any help anywhere. If somebody has faced a
> similar problem please let me know.
>
> -Sandeep
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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