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]

Reply via email to