Hello,

------------------------
If you mean a 'Login API', it doesn't exist in Tomcat.... You need to use
form-based login instead.

------------------------
There is "InitialContext" in Tomcat. This is how I used it to set up
DataSource ( Tomcat 4.1.0) :

        <Context path="/test" docBase="jakarta"
         debug="0" privileged="false">

          <Resource name="jdbc/OdbcDS" auth="SERVLET"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/OdbcDS">

<parameter><name>user</name><value>your_login</value></parameter>

<parameter><name>password</name><value>your_password</value></parameter>
            <parameter><name>driverClassName</name>
              <value>sun.jdbc.odbc.JdbcOdbcDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:odbc:OkeanTest</value></parameter>
          </ResourceParams>

        </Context>


Sincerely,
Sergei Batiuk.



-----Original Message-----
From: Ricardo Ramalho [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 2:25 PM
To: Tomcat Users List
Cc: casa; [EMAIL PROTECTED]
Subject: Custom Authentication


Hi all! ;)

I have to migrate a Web Application from Allaire JRun to Tomcat 4.0.1.

I have a custom Authentication created by us. How can i use it under TomCat
4.0.1? Information is very non-existant or.... I'm just to dumb to find it!
:))

Another question: Do i have a "InitialContext" ? If i have so... where is
it? If it doesn't exist, it's no problemat all. I'll simply use the usual
method to access the MySQL database without aquiring the DataSources from
InitialContext (wich maybe it's something from J2EE....).

Sorry for my poor English.

Thanks for any help you can give me! :)

Ricardo Ramalho
Carcavelos Lisbon Portugal
E-Works
http://www.eworks.pt



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to