On Thu, 21 Jun 2012 14:43:53 -0300, 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.
I'd create a hibernate.cfg.xml with the configurations which are shared by
all apps. Each one would have a Tapestry-IoC module class that contributes
a HibernateConfigurer that adds the application-specific configurations.
Or you could have a singe HibernateConfigurer implementation that picks
and adds the correct configurations using some logic inside it.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org