chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Cheng <christopher.sw.ch...@gmail.com>
Subject how to make SessionFactory spring friendly?
Date Sun, 17 Jul 2011 17:32:04 GMT
This is the normal procedure to obtain a session with opencmis api

SessionFactory f = SessionFactoryImpl.newInstance();
Map<String, String> params = new HashMap<String, String>();
params.put(SessionParameter.USER, "admin");
params.put(SessionParameter.PASSWORD, "admin");
params.put(SessionParameter.ATOMPUB_URL, "
http://localhost:8080/alfresco/service/cmis");
params.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
params.put(SessionParameter.REPOSITORY_ID,
f.getRepositories(params).get(0).getId());
Session s = f.createSession(params);

Is there any component in chemistry to make this more spring friendly and
poolable like Hibernate or ActiveMQ session factories?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message