User dfeb81947d
26-08-2005 15:02:30
Dear Support,
I just have a feedback from some of our users that use Structure Search with a servlet under Tomcat:
I'm using JChem 3.0.14 with Tomcat 4.1.29 on Oracle DB 9.2
The servlet code for structure search is:
The Connection comes from a ConnectionPool.
A new JChemSearch Object is initialized each time there is a new Structure Search.
Is it possible to log searcher.setInfoToStdError(true) in a file as log4j.Logger?
Myself, I was not able to reproduce the problem. Have you ever heard about it?
Thank you so far for your help.
Warmest regards
Jacques
I just have a feedback from some of our users that use Structure Search with a servlet under Tomcat:
Quote: |
It can also occur which we have experienced since our about two-month usage that there is no match in one moment but there is match later to the same structure. So usually we have searched twice for one structure. |
Quote: |
In most cases the usual way is that for the first time it does not work at all then if we search again immediately after the unsuccessful search it usually works. |
The servlet code for structure search is:
Quote: |
public void search(JChemSearch searcher, Connection conn, String table, String structure,int searchType, float similarity) throws Exception { ConnectionHandler ch = new ConnectionHandler(); ch.setConnection(conn); searcher.setAbsoluteStereo(JChemSearch.ABS_STEREO_ALWAYS_ON); searcher.setDoubleBondStereoMatchingMode(StereoConstants.DBS_ALL); searcher.setExactChargeMatching(true); searcher.setExactQueryAtomMatching(true); searcher.setExactStereoMatching(true); searcher.setConnectionHandler(ch); searcher.setStructureTable(table); searcher.setWaitingForResult(true); searcher.setStructureCaching(true); searcher.setExactIsotopeMatching(false); searcher.setExactRadicalMatching(false); searcher.setStereoSearch(true); searcher.setResultTableMode(JChemSearch.NO_RESULT_TABLE); searcher.setMaxResultCount(0); searcher.setQueryStructure(structure); searcher.setSearchType(searchType); if (searchType==JChemSearch.SIMILARITY) { searcher.setDissimilarityThreshold(similarity); } //searcher.setInfoToStdError(true); searcher.run(); } |
A new JChemSearch Object is initialized each time there is a new Structure Search.
Is it possible to log searcher.setInfoToStdError(true) in a file as log4j.Logger?
Myself, I was not able to reproduce the problem. Have you ever heard about it?
Thank you so far for your help.
Warmest regards
Jacques