Re: Setting up an InitialContextFactory in a properties file...

2002-10-31 Thread Garrett Smith
Hey,

In Tomcat, I've been told that it should be done in server.xml within your
app's Context.

The properties are in the context (not a properties file). 

Check "Administrators" how to's.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
See
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
and http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

It is kind of a pain in the balls. 

Garrett

--- John Mattos <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I'm porting my application from Websphere to Tomcat, and I have a websphere
> properties file that contains the following line
> 
> Dbase.websphere.initial.context.factory :
> com.ibm.websphere.naming.WsnInitialContextFactory
> 
> What is the equivalent class to use in Tomcat?
> 
> 
> John L. Mattos
> 302 East 88th Street Apt #5B
> New York, New York 10128-4939
> (M) (917) 202-8450
> (www)  http://www.mattos.ws
> 
> 
> -
> Do you Yahoo!?
> HotJobs - Search new jobs daily now


=
http://dhtmlkitchen.com/
JSP | Servlets | DHTML 

Garrett Needs A Job

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Setting up an InitialContextFactory in a properties file...

2002-10-31 Thread Craig R. McClanahan


On Thu, 31 Oct 2002, John Mattos wrote:

> Date: Thu, 31 Oct 2002 11:36:58 -0800 (PST)
> From: John Mattos <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Setting up an InitialContextFactory in a properties file...
>
>
> Hi,
>
> I'm porting my application from Websphere to Tomcat, and I have a websphere 
>properties file that contains the following line
>
> Dbase.websphere.initial.context.factory : 
>com.ibm.websphere.naming.WsnInitialContextFactory
>
> What is the equivalent class to use in Tomcat?
>

Tomcat's mechanism for creating initial contexts is built in, and does not
need to be configured (and, in fact, cannot be overridden).  Configuration
of resources that can be placed there is described in the docs:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

There's also a separate document that goes into more detail about the
particular case of setting up data sources (4.1 only):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

>
> John L. Mattos

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: