Reading alfresco metadata from java code

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
sanketmohite
Active Member

Reading alfresco metadata from java code

Hello Alfresco experts,

Need your urgent help in one issue which we are facing.

We are using alfresco community version 4.0 with Tomcat 6.0 and postgres 9.5

We wanted to store encrypted data in alfresco. As there was already some data posted to alfresco we wanted to distinguish this data with newly uploaded encrypted data. We decided to use a flag in alfresco metata. So we deployed alfresco model file adding this metadata and deployed code.

Attached below is the code sniplet (readModel.txt) which we used.

This functionality works fine stand alone but in production environment where lot many users using it for download, it throws "Too many file open error" (attached error screenshot)

Any suggestion to get this resolved will be highly appreciated

Thanking in anticipation. 

2 Replies
kintu_barot
Senior Member

Re: Reading alfresco metadata from java code

There is already one thread present with the explanation.

Please refer Too many open files 

Regards,

Kintu

ContCentric

Regards,
Kintu
ContCentric
sanketmohite
Active Member

Re: Reading alfresco metadata from java code

Hi Kintu

Thank you for your quick response.

However, issue is not because of error. My adding attached code, we started getting error else servers were operating normally.

I need expert opinion on if any changes needed to code which will do away with too many files error or is there any otehr way by which we can access alfresco metadata via java code?

Thanks