For a bit more info your dwr.xml might look like this: <dwr> <init> <creator id="tapestry" class="foo.bar.TapestryCreator"/> </init> <allow> <create creator="tapestry" javascript="SomeService"> <param name="beanName" value="someService"/> </create> </allow> </dwr>
Perhaps some of the tapestry gurus can help out a bit more here. For normal DWR usage in tapestry, you disable the tapestry filter for /dwr/*. It seems that you might want a bit of the tapestry filter's functionality but not all. For example injecting the request / response / session and creating a hibernate session. If you come up with a working solution, please post it back to the DWR user's list and we'll include it in the project. Cheers, Lance. 2009/12/22 Lance Java <lance.j...@googlemail.com> > You might like to take this discussion onto the dwr user's list. I think it > might involve writing a TapestryCreator which is able to look up services > from the tapestry registry. Please download the dwr source and have a look > at the SpringCreator for inspiration. > > Cheers, > Lance. > > 2009/12/21 Ashwanth Kumar <ashwanth.ku...@gmail.com> > > Hello, >> >> In my project, i would like to use DWR along with Tapestry! But i've a >> probelm. Its like i need to access the DB, i use Hibernate with Tapestry. >> In >> my class i've: >> >> @Inject >> private Session _session; >> >> when i access this class from DWR, Tapestry doesn't interfere at all. But, >> i'm getting a null pointer exception where i first start using the >> Session. >> How and what should be done for this? >> >> - Ashwanth Kumar >> > >