4.0.2/EJB InitialContext conflict

2002-01-29 Thread Christopher Cobb

I have a web/EJB application that ran in Tomcat 3.  It calls InitialContext()
assuming that it will get the EJB server's service implementation of jndi so
that it can locate various enterprise beans.

Within tomcat4, when I call InitialContext(), I appear to be getting tomcat's
jndi implementation and not the EJB server's.

How do I cause my EJB server's jndi implementation to have precedence over the
tomcat4 implementation?

cc



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




Re: 4.0.2/EJB InitialContext conflict

2002-01-29 Thread Remy Maucherat

 I have a web/EJB application that ran in Tomcat 3.  It calls
InitialContext()
 assuming that it will get the EJB server's service implementation of jndi
so
 that it can locate various enterprise beans.

 Within tomcat4, when I call InitialContext(), I appear to be getting
tomcat's
 jndi implementation and not the EJB server's.

 How do I cause my EJB server's jndi implementation to have precedence over
the
 tomcat4 implementation?

Use the nonaming command line option.
Or you can also declare your IC implementation when launching the JVM (I
think code has been added so that Tomcat won't override it, although Tomcat
will still attempt to provide the J2EE ENC functionality).

Remy


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




Re: 4.0.2/EJB InitialContext conflict

2002-01-29 Thread chris brown

Quick related question:

I've noticed that when using ServletContext.getResource(), Tomcat returns a
URL in which jndi:// is the protocol.  Would using the nonaming option
disable this?!

-Chris

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 4:25 PM
Subject: Re: 4.0.2/EJB InitialContext conflict


  I have a web/EJB application that ran in Tomcat 3.  It calls
 InitialContext()
  assuming that it will get the EJB server's service implementation of
jndi
 so
  that it can locate various enterprise beans.
 
  Within tomcat4, when I call InitialContext(), I appear to be getting
 tomcat's
  jndi implementation and not the EJB server's.
 
  How do I cause my EJB server's jndi implementation to have precedence
over
 the
  tomcat4 implementation?

 Use the nonaming command line option.
 Or you can also declare your IC implementation when launching the JVM (I
 think code has been added so that Tomcat won't override it, although
Tomcat
 will still attempt to provide the J2EE ENC functionality).

 Remy


 --
 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]