Main Content

Magnolia Community Forums: Get help with Magnolia: Connecting with database


  • tumpasingharay2
    tumpasingharay2
    Full name: Tumpa SINGHA RAY
    Posts: 2
    Last post: Jun 22, 2017 8:15:22 AM
    Registered on: Jun 1, 2017
    Connecting with database
    #1 by tumpasingharay2 on Jun 22, 2017 7:38:16 AM

    Hi

    I have created pages using light module instead of maven module. Is it possible in Magnolia to store data into database and retrieve it in tables.

  • tumpasingharay2
    tumpasingharay2
    Full name: Tumpa SINGHA RAY
    Posts: 2
    Last post: Jun 22, 2017 8:15:22 AM
    Registered on: Jun 1, 2017
    Re: Connecting with database
    #2 by tumpasingharay2 on Jun 22, 2017 8:15:22 AM

    Hello All,

    Can we achieve this functionality using REST API?

    Regards,
    Tumpa

  • cmeier
    cmeier
    Full name: Christoph Meier
    Posts: 210
    Last post: Jul 25, 2017 6:09:04 PM
    Re: Connecting with database
    #3 by cmeier on Jun 27, 2017 4:08:00 PM

    Hello Tumpa SINGHA RAY

    Magnolia is using JCR to store most if not all of the data - this is especially true for website content.
    Typically JCR is not restricting what data store is used "under the hood" to persist the JCR data - its persistence layer can and often is a RDBMS (especially in productive environments).
    However, from the Magnolia perspective, the data is stored in JCR nodes and properties - independent from the persistence layer.

    Doesn't make sense to operate directly on the DB layer in the context of Magnolia website content (imho).

    Why would you do that?
    What is your use case?
    What is your goal?

    However - there is always a lot of space to customize Magnolia :-)


    Resources:
    - https://en.wikipedia.org/wiki/Content_repository_API_for_Java
    - https://documentation.magnolia-cms.com/display/DOCS/JCR+API
    - https://documentation.magnolia-cms.com/display/DOCS/Content+app+with+non-JCR+content

    I hope this helps,
    kind regards,
    Christoph

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/