On Fri, 10 Aug 2001, Steven Caswell wrote:
> So there is no easy way to access an EJB server from
> within a standalong Tomcat. That stinks.
Tomcat has no EJB container.
> So can
> anyone tell me how to run the Tomcat that is in the
> 1.2 RI? I've not seen anything in the documentation
> that tells how to do that. TIA
>
You just start up the j2ee server, following the instructions in the RI
download -- Tomcat is built in already. It makes a non-SSL HTTP connector
available on port 8000, and an SSL connector on port 7000.
Note that you'll also have to follow the procedures described in the
documentation for packaging and deploying your apps. In particular,
that's where the linkage between a particular JNDI name for an EJB, and
the actual implementation of the bean, is managed.
Craig
PS: If you're just starting out and using this for education, I'd suggest
downloading J2EE 1.3-beta-2 instead of 1.2. That way, you won't have to
relearn all the things that have changed between 1.2 and 1.3.
> --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Fri, 10 Aug 2001, Steven Caswell wrote:
> >
> > > I understand that Tomcat does not "support" EJB in
> > the
> > > sense that it does not provide a container.
> > However,
> > > I'm trying to access an EJB being served by Sun's
> > > Reference Implementation. I can't figure out how
> > to
> > > get Tomcat to find the com.sun classes necessary
> > to
> > > create the JNDI initial context. If I put the
> > > j2ee.jar in the webapp's WEB-INF\lib path, Tomcat
> > > simply can't find the right classes. If I put
> > > j2ee.jar in Tomcat's lib path, Tomcat won't start.
> > Is
> > > there a simple way for me to configure either
> > Tomcat
> > > or my webapp to find the appropriate JNDI classes?
> > > TIA
> > >
> >
> > To use EJBs inside the J2EE RI, you'll need to run
> > your web apps inside
> > the RI's servlet container (which happens to be
> > Tomcat -- J2EE RI 1.2 has
> > a modified version of Tomcat 3.0, while J2EE RI 1.3
> > includes Tomcat 4.0).
> >
> > Craig McClanahan
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>