Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Problem in integrating spring-module-jcr and jcrom Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem in integrating spring-module-jcr and jcrom

    Hi all,
    Is there anyone here try using spring-module-jcr with jcrom and have success?
    I have tried like this.
    MyService {
    ...
    doSomething {
    Jcrom jcrom = new Jcrom();
    Dao myDao = new DaoImpl(getSession(),jcrom);
    .....

    }}
    and
    getSession() {
    SessionFactoryUtils.getSession(this.sessionFactory ,true));
    }
    It success and doSomething is transactional.
    Then I want to myDao is managed by Spring then I declared Dao like
    class DAO extends AbstractDAO<T> {
    DAO(Jcrom jcrom,SessionFactory sf){
    super(jcrom,sf.getSession(),...);
    }
    }
    But it fails .
    I think there is difference between SessionFactory.getSession() and SessionFactoryUtils.getSession(sessionFactory,true ), the later do something in the background but I don't know right now.
    Besides, when declaring jcrSessionFactory i have specified sessionHolderProviderManager that is JackRabbitSessionHolderProvider. Its API doc have said that it's used for transaction support.
    I'm using jcrom 1.3.1, jackrabbit 1.4.5, spring 2.5.5, spring-module-jcr 0.8a,0.8b, 0.9.

    Could you tell me what i'm wrong here or is there other way to integrate jcrom and spring-module-jcr.
    Many thanks,
    Van
Working...
X