Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
What's kind of information printed on console? Did you turn on tlogCatcher or tStatCatcher? Could you please upload screenshots into forum?
Best regards
Sabrina
* stop
*/
/**
* start
*/
currentComponent = "tMongoDBRow_1";
com.mongodb.Mongo mongo_tMongoDBRow_1 = null;
com.mongodb.DB db_tMongoDBRow_1 = null;
try {
mongo_tMongoDBRow_1 = (com.mongodb.Mongo) globalMap
.get("mongo_tMongoDBConnection_1");
db_tMongoDBRow_1 = (com.mongodb.DB) globalMap
.get("db_tMongoDBConnection_1");
com.mongodb.CommandResult result_tMongoDBRow_1 = null;
result_tMongoDBRow_1 = db_tMongoDBRow_1
.doEval("db.test.insert({'foo':'bar'})");
if (result_tMongoDBRow_1.ok()) {
System.out.println(result_tMongoDBRow_1);
} else {
System.err.println(result_tMongoDBRow_1);
}
} catch (Exception e_tMongoDBRow_1) {
System.err.println(e_tMongoDBRow_1.getMessage());
}
tos_count_tMongoDBRow_1++;
/**
* stop
*/
/**
* start
*/
if (result_tMongoDBRow_1.ok()) {
System.out.println(result_tMongoDBRow_1);
} else {
System.err.println(result_tMongoDBRow_1);
}
System.setOut(new java.io.PrintStream(new java.io.ByteArrayOutputStream()));
System.setOut(new java.io.PrintStream(new java.io.FileOutputStream(java.io.FileDescriptor.out)));