You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrea Chiumenti <ki...@gmail.com> on 2009/05/13 20:14:53 UTC

T5 and hessian

Hello I'd like to use T5-ioc and then expose services with hessian.

can I use @Inject annotation inside an hessian service ?
if not how can I retrieve a service from outside T5 ?

Thanks in advance,
kiuma

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


Re: T5 and hessian

Posted by Andrea Chiumenti <ki...@gmail.com>.
thank you

On Wed, May 13, 2009 at 8:56 PM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> Em Wed, 13 May 2009 15:14:53 -0300, Andrea Chiumenti <ki...@gmail.com>
> escreveu:
>
>> Hello I'd like to use T5-ioc and then expose services with hessian.
>>
>> can I use @Inject annotation inside an hessian service ?
>
> I don't know Hessian, but if you can make your Hessian services be created
> as Tapestry-IoC services, anything you can do in T-IoC applies.
>
>> if not how can I retrieve a service from outside T5 ?
>
> Take a look here:
> http://tapestry.apache.org/tapestry5.1/tapestry-ioc/run.html
> You can start the IoC registry yourself (a Registry instance) and then use
> getService(Class<T> serviceInterface) to get a service. You can also use
> other methods of the ObjectLocator interface (Registry is a subinterface of
> ObjectLocator).
>
> In a webapp, you can get the Registry from the
> TapestryFilter.REGISTRY_CONTEXT_NAME request attribute.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: T5 and hessian

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 13 May 2009 15:14:53 -0300, Andrea Chiumenti <ki...@gmail.com>  
escreveu:

> Hello I'd like to use T5-ioc and then expose services with hessian.
>
> can I use @Inject annotation inside an hessian service ?

I don't know Hessian, but if you can make your Hessian services be created  
as Tapestry-IoC services, anything you can do in T-IoC applies.

> if not how can I retrieve a service from outside T5 ?

Take a look here:  
http://tapestry.apache.org/tapestry5.1/tapestry-ioc/run.html
You can start the IoC registry yourself (a Registry instance) and then use  
getService(Class<T> serviceInterface) to get a service. You can also use  
other methods of the ObjectLocator interface (Registry is a subinterface  
of ObjectLocator).

In a webapp, you can get the Registry from the  
TapestryFilter.REGISTRY_CONTEXT_NAME request attribute.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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