AnsweredAssumed Answered

getting JSR170 interface in Dialog

Question asked by m0n on Oct 11, 2007
Latest reply on Mar 13, 2008 by tak
Hi All
Im 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!

Outcomes