I've been integrating Tapestry 4.0.x into my existing web application based on JSP and servlets. It's all been going quite well so far.

I've been using Hibernate for database access in Tapestry, but was using JDBC in the old servlet code. (Since it was developed pre- hibernate.) Anyway, I want to start using Hibernate (via HiveMind) in my servlet code. The question is, how do I get a reference to it?

I can do this via:

RegistryInfrastructure reg = (RegistryInfrastructure) ServiceSerializationHelper.getServiceSerializationSupport();

And then call getService(MyDesiredDAO.class, null). That seems to work. When Tomcat starts up, Tapestry doesn't initialize and getService throws exception stating that HiveMind has not been configured.

The question is, how can I force HiveMind to initialize or initialize it myself and not mess up Tapestry?

Norman Franke

Reply via email to