cancel
Showing results for 
Search instead for 
Did you mean: 

multi process on repository

ozkan
Champ in-the-making
Champ in-the-making
Hi everyone,
I have an application that sends images to alfresco in a for loop. it's sending one image per second. Here is my a part of code :
 public static void main(String[] args) {



      Folder root = createSession().getRootFolder();

      CmisObject object = createSession().getObjectByPath(

            root.getPath() + TEST_FOLDER_NAME);



      Folder roota = (Folder) object;



      for (int i = 0; i < 1000000000; i++)

         for (int j = 0; j < 1000000000; j++) {

            createDocument(roota,

                  TEST_DOCUMENT_NAME_1 + new Date().getTime() + ".jpg");



            try {

               Thread.sleep(0);

            } catch (InterruptedException e) {

               e.printStackTrace();

            }

         }



   }

While I'm sending images to alfresco , I can browse images from alfresco web client but can't do it from share web client.
when I click to my repo folder that I sent images to, application and share web client get stuck and can't do anything.
Before this problem , I had OutOfMemory exception and I changed javaopt argument so it solved but now, have to I change some confg ?? What should I do ?? I m waiting your helps. Thanks
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Is this a real requirement?

You may be exposing one of Share's known weakpoints.    

ozkan
Champ in-the-making
Champ in-the-making
Yes, this is a real requirement for me, while my application is running , I want to present documents to enduser from share webclient. user should be able to browse documents, start workflow, edit etc. But like I said before application and share web client get stuck and can't do anything.