Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

LCDS + Hibernate + Custom Assembler

Avatar

Level 1

I am working on a LCDS based Flex application that has an existing Java back-end that is built using Hibernate annotations and Spring enabled services (DAOs). I have tried 3 different ways of working with our backend but I need one that will allow for use with Hibernate models and our existing

  1. Sucessfully built a prototype that uses the HibernateAnnotationsAssembler, but that bypasses our Service layer (not acceptable).
  2. Created an custom Assembler that extends AbstractAssembler and tried using it, it finds the fill method and performs the service calls that load the Hibernate objects but Spring commits the transaction and LCDS goes to load one of the lazy references throws a 'org.hibernate.LazyInitializationException:could not initialize proxy - no Session'. 
  3. Attempted to extend the HibernateAnnotationsAssembler but then nothing works at all.  I get the following error 'There was an unhandled failure on the server. null'.

Are there suggestions on how I can accomplish using Hibernate and our existing service layer?

1 Reply

Avatar

Employee

I think that SpringSource is working on a distribution that includes LCDS and that should answer your needs.