and did you map it in your <Context>-Element?

> -----Original Message-----
> From: Catalin Grigoroscuta [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 29, 2005 8:16 AM
> To: [email protected]
> Subject: Re: Hivemind+Tomcat
> 
> 
> Hi,
> 
> Did you declare the JNDI resource in the web.xml file of the web 
> application?
> 
> Regards,
> Catalin
> 
> Dmitry Kozakov wrote:
> 
> > May be I do something wrong.
> > I wrote in the server.xml in
> > <GlobalNamingResources>
> >    <Resource name="bean/HivemindRegistry" auth="Container"
> >              type="org.apache.hivemind.Registry"
> >       description="Global Hivemind registry"
> >           factory="com.intersolved.hawk.web.HiveMindFactory"
> >           />
> > </GlobalNamingResources>
> >
> > In the log file I see that my factory is invoked. I can see my 
> > registry via jconcole (because tomcat registries it in the JMX)
> > But in the filter of the web application I can not get it
> >                Context initCtx = new InitialContext();
> >                Context javaCtx = (Context) 
> > initCtx.lookup("java:comp/env");
> >                registry = (Registry) 
> > javaCtx.lookup("bean/HivemindRegistry");
> > I get NameNotFound exception.
> >
> > By the way how  can I stop this registry (constructed in such way) 
> > when tomcat will be shutdown.
> >
> > Best Regards,
> >     Dmitry
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to