Re: How to get ContentRepository ?

2014-04-10 Thread Tobias Bocanegra
fyi: https://issues.apache.org/jira/browse/OAK-1721 On Wed, Apr 9, 2014 at 10:42 PM, Tobias Bocanegra tri...@apache.org wrote: Hi, for [0] I need to login to the content repository - but I don't know how to acquire it. it seems that it is neither registered as OSGi service, nor in the global

Re: How to get ContentRepository ?

2014-04-10 Thread Tobias Bocanegra
Hi, On Thu, Apr 10, 2014 at 10:15 AM, Jukka Zitting jukka.zitt...@gmail.com wrote: Hi, On Thu, Apr 10, 2014 at 1:42 AM, Tobias Bocanegra tri...@apache.org wrote: for [0] I need to login to the content repository - but I don't know how to acquire it. @Reference private Repository

Re: How to get ContentRepository ?

2014-04-10 Thread Jukka Zitting
Hi, On Thu, Apr 10, 2014 at 1:27 PM, Tobias Bocanegra tri...@apache.org wrote: On Thu, Apr 10, 2014 at 10:15 AM, Jukka Zitting jukka.zitt...@gmail.com wrote: @Reference private Repository repository; which repository is that? javax.jcr.Repository? javax.jcr.Repository. that one is not

Re: How to get ContentRepository ?

2014-04-10 Thread Jukka Zitting
Hi, On Thu, Apr 10, 2014 at 2:13 PM, Tobias Bocanegra tri...@apache.org wrote: On Thu, Apr 10, 2014 at 11:01 AM, Jukka Zitting jukka.zitt...@gmail.com wrote: Hmm, it should be available by default in a Sling environment: yes, in sling. but what if we run oak w/o sling? It's up to the

How to get ContentRepository ?

2014-04-09 Thread Tobias Bocanegra
Hi, for [0] I need to login to the content repository - but I don't know how to acquire it. it seems that it is neither registered as OSGi service, nor in the global whiteboard (if there would be one). so basically I need to do: ContentSession session = contentRepository.login(...); Root