10-11-2007 05:22 AM
ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
ctx.getBean("JCR.Repository");
WebApplicationContextUtils.getWebApplicationContext(ServletContext sc);
… I don't know how to get ServletContext reference 10-11-2007 04:27 PM
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…:… I don't know how to get ServletContext reference
WebApplicationContextUtils.getWebApplicationContext(ServletContext sc);
As I understand ideally would be to get reference to current reference to repository Session object.
Thanks in Advance!
10-15-2007 01:25 AM
10-15-2007 07:38 AM
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..
10-15-2007 08:24 AM
Yep! You can even use them (The JCR and the foundation services together)
03-13-2008 09:39 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.