I'm sure I was having the same problem, and (looking through my source 
history) the only change I can see is that the <defaults> wrapping was 
missing from the TransactionDefaults config and that at one point I had 
demarcation="Never" which caused other problems (I think.)

Anyhow, I've trimed the irrelevant bits out, but it's still pretty long--hope 
it helps.

<module id="bt.havoc" version="1.0.0">

  <!-- Change property to enable "Open Session in View" pattern -->
  <contribution configuration-id="hivemind.ApplicationDefaults">
    <default symbol="hivetranse.hibernate3.DeferSessionClose" value="true"/>
  </contribution>

  <!-- Default transaction management settings -->
  <contribution configuration-id="hivetranse.core.TransactionDefaults">
    <defaults>
      <exception        name="java.lang.Throwable" rollback="true"/>
      <method           pattern="*" demarcation="Required"/>
    </defaults>
  </contribution>

  <!-- Hibernate Session -->
  <service-point id="Session" interface="org.hibernate.Session">
    <invoke-factory     service-id="hivetranse.hibernate3.SessionFactory" 
model="singleton">
      <config   file="hibernate.cfg.xml">
      </config>
    </invoke-factory>
  </service-point>

  <!-- Build Hibernate SessionFactory as early as possible -->
  <contribution configuration-id="hivemind.EagerLoad">
    <load service-id="Session"/>
  </contribution>

  <implementation service-id="Session">
    <interceptor service-id="hivemind.LoggingInterceptor"/>
  </implementation>

  <implementation service-id="hivetranse.core.TransactionService">
    <interceptor service-id="hivemind.LoggingInterceptor"/>
  </implementation>

  <implementation service-id="hivetranse.hibernate3.SessionFactory">
    <interceptor service-id="hivemind.LoggingInterceptor"/>
  </implementation>

  <service-point id="customerDao" interface="bt.havoc.data.dao.CustomerDao"/>
  <!-- many Dao's omitted... -->

  <implementation service-id="customerDao">
    <invoke-factory>
      <construct class="bt.havoc.data.dao.hibernate.HibernateCustomerDao"/>
    </invoke-factory>
    <interceptor service-id="hivetranse.core.TransactionInterceptor"/>
  </implementation>
  <!-- many implementations's omitted... -->
</module>


On Monday 20 February 2006 17:21, Andreas Bulling wrote:
> Thanks for your answer and sorry, that's what I wanted to post...
> I have that in my hivemodule.xml but the error remains :(
> Would you mind send me your hivemodule.xml file?
>
> Sincerly,
>   Andreas

-- 
        "...A strange enigma is man!"
        "Someone calls him a soul concealed in an animal," I suggested.
        "Winwood Reade is good upon the subject," said Holmes.  "He remarked
that, while the individual man is an insoluble puzzle, in the aggregate he
becomes a mathematical certainty.  You can, for example, never foretell what
any one man will do, but you can say with precision what an average number
will be up to.  Individuals vary, but percentages remain constant.  So says
the statistician."
                -- Sherlock Holmes, "The Sign of Four"
--------------
Jason Dyer
BlueTarp Financial, inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to