Hi Davor,

This works, kind of amazing, I read that section about service, but can't
find info about this, maybe I'm not reading enough? Thanks,
A.C.


Davor Hrg wrote:
> 
> declare Session as parameter in you service constructor
> you dont even need to call any inject annotation ...
> 
> 
> MyServiceImpl(Session session){
>   this.session=session;
> }
> 
> in your module use:
> 
>   public static void bind(ServiceBinder binder)
>   {
>     binder.bind(MyService.class, MyServiceImpl.class);
>   }
> 
> 
> 
> 
> please read this page:
> http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Hibernate-and-InjectService-tf4440952.html#a12672539
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to