1. Problem in container interceptor jboss.har:service=Hibernate forum.hibernate.org15:56:05,977 INFO [EjbModule] Deploying PropertyManagementSession 15:56:06,060 WARN [EjbModule] Could not load the org.jboss.hibernate.session.EjbInterceptor interceptor for this container net.sf.hibernate.HibernateException: Hibernate service is not registered: jboss.har:service=Hibernate at org.jboss.hibernate.session.SessionContext.resolveSessionFactory(SessionContext.java:299) at org.jboss.hibernate.session.SessionContext. |
2. Setting up custom interceptor in JBoss forum.hibernate.orgThere seems to be a catch-22 when trying to setup a custom interceptor that needs arguments in it's constructor while also participating in JBoss transactions. I hope I'm wrong. :) Here's what I want to do: Get a Session from HibernateContext.getSession(), specifying an interceptor in the hibernate-service.xml file using SessionFactoryInterceptor. However, that interceptor needs to be passed an argument to it's ... |
3. How to get interceptor from Jboss hibernate-service.xml? forum.hibernate.orgpublic Branch createBranch(Branch branch, String microMarketId) throws HibernateException { Session hsession = _sessionFactory.getCurrentSession(); MicroMarket microMarket = (MicroMarket) hsession.load(MicroMarket.class, microMarketId); branch.assignToMicroMarket(microMarket); hsession.save(branch); ... |
4. Hibernate Interceptor in JBoss Seam forum.hibernate.org |