Not sure. The injection aspect should work but I do t use hibernate so I don't really know.
On May 6, 2013, at 2:01 AM, Stefan Baur <ste...@baurs.ch> wrote: > Thanks. > Will this also work for a hibernate Session with usage of > tapestry-hibernate? > > > ------- > Stefan Baur > Schiltwiesenweg 8 > 8404 Winterthur > --- > > > > 2013/5/6 Lenny Primak <lpri...@hope.nyc.ny.us> > >> >> http://code.google.com/p/flowlogix/source/browse/tapestry-services/src/main/java/com/flowlogix/util/ExternalServiceUtil.java >> >> Use this function to locate your service by class ID. It works exactly >> like @Inject. >> >> >> On May 5, 2013, at 1:01 PM, Stefan Baur <ste...@baurs.ch> wrote: >> >>> Hi >>> >>> I am runnung a card game application within a Tapestry website. For user >>> management, I use tapestry-hibernate and some tapestry pages to >>> create/list/etc users. >>> >>> Withing the game application, I create my own Hibernate SessionFactory >>> handle logins in the game. >>> >>> Is it possible to somehow obtain the SessionFactory from Tapestry instead >>> of creating a second instance? I am aware that the tapestry context is >>> registered as a ServletContext parameter, but I have no idea how to >>> "manually" get an object that would be @Inject-ed in Tapestry context. >>> >>> Thanks for help. >>> Stefan >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org