Hi Nick,

Although I don't know much about Tapestry way to create the Registry and
give access to it, what you might possibly do with hiveremoting.caucho is to
subclass net.sourceforge.hiveremoting.caucho. CauchoRemotingServlet and
override its getRegistry method to whatever is suitable with Tapestry.

As far as I understand, it seems that in Tapestry, the Registry is created
by the servlet (ApplicationServlet), what would be interesting to find out
is when it is created (is it at init, or at first request?). If at init,
then find a way to access the Registry in a static way (if available), you
might also need to subclass Tapestry's ApplicationServlet to make its
Registry accessible.

But you are right: it looks strange that tapestry 4 does not use "HiveMind's
way" to create the Registry, ie through the HiveMindFilter.

Hope this helps

Jean-Francois


-----Original Message-----
From: Nick Evgeniev [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 14, 2006 6:38 PM
To: users@tapestry.apache.org
Subject: How to share hivemind registry between HiveMindFilter an
ApplicationServlet?


Hi,

I've found recently that very simple usecase for hivemind + tapestry is
lacking of any docs. Here it goes
1. I have tapestry application rooted by ApplicationServlet
2. In the same web application I want my services to be accessed via remote
api. Hence I've downloaded hivetranse (hiveremoting package) + hessian as
adhoc solution.

The problem is that hiveremoting depends on HiveMindeFilter to create
hivemind registry while tapestry (for nonundestandable reason) does things
by their own. Hence I'm having two copy of registries containig duplicate
instances of all of my services.

Is there any way to share the registry? I've read in the docs that tapestry4
has perfect integration with hivemind (compared to tapestry3), but
unfortunatelly documentation does not go beyond this statement. :(

It would be really strange if this is impossible, as tapestry is able to
share spring registry whith no effort at all..

-- 
View this message in context:
http://www.nabble.com/How-to-share-hivemind-registry-between-HiveMindFilter-
an-ApplicationServlet--tf2628912.html#a7335935
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

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

Reply via email to