User 73ad691ca3
18-03-2013 12:51:15
Dear Chemaxon Team,
We want to know how to implement the Permanent cache in our application. Our application uses WCF service for performing the inserting structures to the structure table.
1). we have already imported some 5 lakh structures from an SD file using the Jchem Manager Tool (using import option).
How can we add the permanent cache to these structures which are already imported to the jchem structure table using the Jchem Manager Tool?
2). So Further we are going to register the compounds through the application. Our application is consuming a WCF service where the WCF service calls the Jchem .Net APIs to insert the structures to the Jchem table.
So how can we implement the permanent cache to the structures which we are going to register through the above said application (WCF service using Jchem .Net API to insert the structures to the Jchem table)?
-------------------------------------------------------------------------------------------------------------------------------------
Here is the sample code the WCF service uses to insert the structure:
int cd_id=-1;
UpdateHandler uh = new UpdateHandler(conh, UpdateHandler.INSERT, structureTableName, additionalColumns);
uh.setDuplicateFiltering(UpdateHandler.DUPLICATE_FILTERING_ON);
uh.setStructure(structure);
cd_id = uh.execute(true);
------------------------------------------------------------------------------------------------------------------------------------
As mentioned in the below chemaxon link, how can we implement the permanent cache in our application.
http://www.chemaxon.com/jchem/doc/dev/java/intro/index.html#cachereg
- #3 - Setting a permanent cache ID
Note:
Our main requirement is how to add or implement the permanent cache in the application.
you can provide us the sample code for jchem .net api.
Please reply us ASAP.
Thanks & Regards,
D. Senthil kumar vijai.