The ObjectLocator provides access to services defined within a Registry, but I 
haven't seen an example of using it to get hold of a reference to the actual 
registry? is that possible? if so pls provide a code example, I have only seen 
this from the Context. ie: Registry registry = (Registry) 
context.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME); Am I missing 
something, perhaps show us what you are referring to in some code.

----- Original Message -----
From: "Thiago H. de Paula Figueiredo" <thiag...@gmail.com>
To: "Tapestry users" <users@tapestry.apache.org>, "P Stavrinides" 
<p.stavrini...@albourne.com>
Sent: Wednesday, 5 October, 2011 15:32:51 GMT +02:00 Athens, Bucharest, Istanbul
Subject: Re: T5.2 and Metro / SOAP

On Wed, 05 Oct 2011 09:08:21 -0300, <p.stavrini...@albourne.com> wrote:

> I don't know Thiago, I suppose that may be true, but I never tried it...  
> In theory, the only thing you really need is a reference to the Tapestry  
> registry in order to publish the endpoints, this was the best solution I  
> found at the time, I am still not convinced I would do it any other way.

You can inject an ObjectLocator (which is the interface that provides the  
getService() and autobuild() methods of Registry) in any service. This  
avoids the need of web.xml changes.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to