Steve, I need two web-apps running side by side, not two tapestry apps within the same webapp. :-) No problems there.
In any case, I figured out why what I was doing wasn't working, I was trying to do MyModule { // Doesn't work @Symbol("paramname") private String param; } It works as an annotation on a method parameter, though! Thanks for your help. On 21 June 2012 14:07, Steve Eynon <steve.ey...@alienfactory.co.uk> wrote: > > because i need multiple apps running side by side. > > Err... > > > http://tapestry.apache.org/configuration.html#Configuration-SegregatingApplicationsIntoFolders > says, "At this time, it is still not possible to run multiple Tapestry > 5 applications within the same web application." > > Other than that there's a ServletContextSymbolProvider which makes > ServletContext init-parameters accessible as symbols. If that's no > use, you could write your own SymbolProvider based on the above - > which is only around 6 lines of code. > > Steve. > > > On 22 June 2012 01:43, Michael Prescott <michael.r.presc...@gmail.com> > wrote: > > I'm hoping to use tapestry-hibernate, and also flyway to do db > migrations, > > and I'm having trouble injecting the data source from the servlet > container > > into each of these. > > > > With tapestry-spring, I was able to have spring read web context params, > > and go from there. But in my tapestry module, @Symbol doesn't appear to > > read context params. > > > > Is there an orthodox way to go about this? > > > > I don't want to hard-code the data source name in, say, a > > hibernate.cfg.xml, because i need multiple apps running side by side. > > > > Gratefully, > > > > Michael > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >