hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Kozakov <d...@java.crimea.com>
Subject Re: Hivemind+Tomcat
Date Fri, 29 Jul 2005 06:53:41 GMT
I tried in this way
<DefaultContext>
<ResourceLink name="bean/HivemindRegistry" 
global="bean/HivemindRegistry" type="org.apache.hivemind.Registry"/>
</DefaultContext>
but with out success

Best Regards,
	Dmitry



Schulte Marcus wrote:

>and did you map it in your <Context>-Element?
>
>  
>
>>-----Original Message-----
>>From: Catalin Grigoroscuta [mailto:c.grigoroscuta@moodmedia.ro]
>>Sent: Friday, July 29, 2005 8:16 AM
>>To: hivemind-user@jakarta.apache.org
>>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: hivemind-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>  
>

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