asked on February 18, 2021
•
Show version history
Hi,
I am using CMIS gateway 10.2 with ATOM binding to connect to Laserfiche server 10.2. My Java application opens a session, get the root folder and render the children. The problem I am having is there are 05 sessions opened for only this flow. How is it possible?
- After run my app, I can see 05 opened sessions:
- If I try to run my App again, there will be 03 sessions in addition
- And my App in the second run can't finish because the session number limit
code:
String url = "http://<host>/lfcmis/atom"; String user = "username"; String password = "password"; Map<String, String> parameters = new HashMap<>(); parameters.put(SessionParameter.USER, user); parameters.put(SessionParameter.PASSWORD, password); parameters.put(SessionParameter.ATOMPUB_URL, url); parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); parameters.put(SessionParameter.REPOSITORY_ID, "id1"); SessionFactory sessionFactory = SessionFactoryImpl.newInstance(); Session session = sessionFactory.createSession(parameters); Folder root = session.getRootFolder(); ItemIterable<CmisObject> pl = root.getChildren(); for (CmisObject o : pl) { System.out.println(o.getName()); }
Other info:
- It is a Java application
- I am using the following dependency
<dependency> <groupId>org.apache.chemistry.opencmis</groupId> <artifactId>chemistry-opencmis-client-impl</artifactId> <version>1.1.0</version> </dependency>
0
0