I am trying to use OpenHFT ChronicleMap , the code runs in Tomcat 7 , but fails in Websphere 8.5.5 with the following error (below)
Note : This does not happen in Tomcat , only with Websphere 8.5.5 , IBM JRE 7
.
AbstractStringBuilder is not there in the Websphere JRE rt.jar. But what is the solution ?? Websphere is my production environment.
code :
private ChronicleMap<String,RepositoryItem> repositoryMap;
repositoryMap=
ChronicleMapBuilder
.of(String.class, RepositoryItem.class).averageKeySize(KEY_SAMPLE.getBytes("UTF-8").length)
.entries((long) (MAX_ENTRIES))
.averageValueSize(1600)
.create();
public void removeAllModified() {
// This removes all the modified data from the repository
Iterator iter=repositoryMap.values().iterator();
// build a list of all the objects in the repository except the removed items
while (iter.hasNext()){
RepositoryItem repoItem=(RepositoryItem)iter.next();
DataObject d = repoItem.getModified();
if (d != null) {
removeModified(repoItem);
}
}
}
Can anyone help me on how to resolve this error.
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I did not use the file based create for the ChronicleMap as I was not sure when to delete the file .Can it wait till the Production Servers are restarted ?? . What is the difference between the file based create() and the one in the code I have used below.
Is the Performance Improvement only when the file based based create() is used or will the below code also give me ? I was not clear about this from the documentation.Please let me know.
--
--