Hi Yves,
It sounds like you are trying to do something cool, and it also sounds like you
have some java experience and have written quite some code on this.
Unfortunately it is not very clear *what you are trying to do*, and this is
making it hard for people to understand your questions and your problems.
If possible, please outline your use case - what is it you need to do (in terms
of functionality, not in terms of coding)??
>From the sounds of things you are trying to mix Spring and Magnolia.
Are you using Blossom?
Assuming that your request has passed through magnolia's "context" filter, you
should be able to write the following code anywhere:
Session session = MgnlContext.getJCRSession("myWorkspaceName");
And then use the session normally:
Node newNode = session.getRootNode().addNode("myNode","nt:unstructured");
session.save();
etc....
The question is: is your code integrated into magnolia's filter chain? Are you
running your Spring stuff "within" magnolia or "parallel" to magnolia? Or are
you using Blossom?
Regards from Vienna,
Richard
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:user-list-owner@magnolia-
> cms.com] Im Auftrag von Yves Tanas (via Magnolia Forums)
> Gesendet: Donnerstag, 17. April 2014 13:19
> An: Magnolia User List
> Betreff: [magnolia-user] Re: Usage of Managers
>
> I have spring controllers, getting information like my UserConnection, i want
> to save.
> I could use jdbc to store it in any way in the database, but jcr stores it
> much
> different, so i try to use magnolia itself to save the data into the created
> repository.
> but i don't know how to do that.
>
> --
> Context is everything: http://forum.magnolia-
> cms.com/forum/thread.html?threadId=4c991416-7b54-4125-8508-
> 760baf46d7b3
>
>
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-
> lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------