You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Marc Emery <ma...@gmail.com> on 2010/07/16 12:20:17 UTC

DIH context fails to store in global scope

Hi,

I am writing a EventListener that put some data in the content on import
start:

ctx.setSessionAttribute( DOCTYPE_MAPPING, docTypeMap, Context.SCOPE_GLOBAL
);

but it doesn't seem to work.

looking at the trunk code of ContextImpl.java the globalSession is not
called:

  private void putVal(String name, Object val, Map map) {
    if(val == null) map.remove(name);
    else entitySession.put(name, val);
  }

Thanks
marc