As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
ApplicationContext ctx = ApplicationContextHelper.getApplicationContext(); ctx.getBean("JCR.Repository");
WebApplicationContextUtils.getWebApplicationContext(ServletContext sc);
Hi AllIm new to Alfresco and currently trying to implement CustomDialog.To work with nodes I'd like to use JSR-170 interface.But problem is that i cannot get Session object from Dialog.I tried following code to get Repository which throws exception (java.lang.IllegalArgumentException: a beanFactoryReference already exists for key jbpm_configuration): ApplicationContext ctx = ApplicationContextHelper.getApplicationContext(); ctx.getBean("JCR.Repository"); for the following code…: WebApplicationContextUtils.getWebApplicationContext(ServletContext sc); … I don't know how to get ServletContext reference As I understand ideally would be to get reference to current reference to repository Session object. Thanks in Advance!
Inside Alfresco…Just want to make it clear for myself: is it possible to use jsr170 inside, or I have to use foundation services for working with nodes etc..
Yep! You can even use them (The JCR and the foundation services together)