hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Catalin Grigoroscuta <c.grigorosc...@moodmedia.ro>
Subject Re: Hivemind+Tomcat
Date Fri, 29 Jul 2005 06:16:24 GMT
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: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message