Re: Wicket + Spring + Hibernate - Wicket-In-Action
The interceptor can be safely removed. It was necessary for the project I was working on, but you probably don't need it. JDBC connection settings are best done through a DataSource and specified at the container level instead of programmatically. Martijn On Mon, Nov 16, 2009 at 6:38 PM, Jeffrey Schneller wrote: > At the link[1] it describes how to configure wicket to use Spring and > Hibernate. In the applicationContext.xml file there is reference to a n > interceptor bean. What is this interceptor bean? What is the > definition of this bean? Everything else seems to make sense. > > > > Also how would one move the configuration of the jdbc connection to > code? It is desirable to db connection information reside at the server > level so when deploying code from dev to stage to production, you do not > need change or replace a file. The configuration is at the server level > [in the server context] and it is pulled from there. > > > > Thanks. > > > > > > > > [1] > http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ > > > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Spring + Hibernate - Wicket-In-Action
The interceptor can be safely removed. It was necessary for the project I was working on, but you probably don't need it. JDBC connection settings are best done through a DataSource and specified at the container level instead of programmatically. Martijn On Mon, Nov 16, 2009 at 6:38 PM, Jeffrey Schneller wrote: > At the link[1] it describes how to configure wicket to use Spring and > Hibernate. In the applicationContext.xml file there is reference to a n > interceptor bean. What is this interceptor bean? What is the > definition of this bean? Everything else seems to make sense. > > > > Also how would one move the configuration of the jdbc connection to > code? It is desirable to db connection information reside at the server > level so when deploying code from dev to stage to production, you do not > need change or replace a file. The configuration is at the server level > [in the server context] and it is pulled from there. > > > > Thanks. > > > > > > > > [1] > http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ > > > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket + Spring + Hibernate - Wicket-In-Action
I'm not sure the purpose of the interceptor, but until you have a need to extend and use it, you can use the org.hibernate.EmptyInterceptor class instead of creating your own. I have had no problems with using that class. -Original Message- From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] Sent: Monday, November 16, 2009 12:38 PM To: users@wicket.apache.org Subject: Wicket + Spring + Hibernate - Wicket-In-Action At the link[1] it describes how to configure wicket to use Spring and Hibernate. In the applicationContext.xml file there is reference to a n interceptor bean. What is this interceptor bean? What is the definition of this bean? Everything else seems to make sense. Also how would one move the configuration of the jdbc connection to code? It is desirable to db connection information reside at the server level so when deploying code from dev to stage to production, you do not need change or replace a file. The configuration is at the server level [in the server context] and it is pulled from there. Thanks. [1] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Spring + Hibernate - Wicket-In-Action
On Mon, Nov 16, 2009 at 12:38 PM, Jeffrey Schneller wrote: > Also how would one move the configuration of the jdbc connection to > code? It is desirable to db connection information reside at the server > level so when deploying code from dev to stage to production, you do not > need change or replace a file. The configuration is at the server level > [in the server context] and it is pulled from there. Isn't this a Spring question? The Wicket/Spring integration basically lets you "talk" to your Spring beans (by using @SpringBean annotation to inject them). It doesn't do anything fancy with Spring itself. You don't even use a Wicket way to bootstrap the context (you use Spring's context listener for that). How you configure your Spring beans is up to you. I'd recommend either picking up Spring in Action or just read the online documentation (it's pretty good). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket + Spring + Hibernate - Wicket-In-Action
At the link[1] it describes how to configure wicket to use Spring and Hibernate. In the applicationContext.xml file there is reference to a n interceptor bean. What is this interceptor bean? What is the definition of this bean? Everything else seems to make sense. Also how would one move the configuration of the jdbc connection to code? It is desirable to db connection information reside at the server level so when deploying code from dev to stage to production, you do not need change or replace a file. The configuration is at the server level [in the server context] and it is pulled from there. Thanks. [1] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/