On Tue, 18 Nov 2014 17:40:46 -0200, dragon <milim...@gmail.com> wrote:

Im trying to access a hibernate entity/database from a shiro
AuthorizingRealm extending class. Since the tapestry IOC does not inject
outside Pages / Components,

I'm sorry, but this is completely wrong. Anything which is a Tapestry-IoC service can have dependencies injected to it. Tapestry-IoC has no dependencies on tapestry-core (the Web framework). T-IoC doesn't even know what a page or component is.

how do i access the Hibernate Session so i
can access the database?

Make your AuthorizingRealm subclass a Tapestry-IoC service. Case closed.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.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