docfix/added comments

This commit is contained in:
hongwei 2024-11-13 10:58:27 +01:00
parent 6fbaebbaf3
commit 178f2eba28
2 changed files with 6 additions and 2 deletions

View File

@ -59,7 +59,7 @@ object AdapterStubBuilder {
println("===================")
val path = new File(getClass.getResource("").toURI.toString.replaceFirst("target/.*", "").replace("file:", ""),
"src/main/scala/code/bankconnectors/rabbitmq/Adapter/RPCServer.scala")
"src/main/scala/code/bankconnectors/rabbitmq/Adapter/MockedRabbitMqAdapter.scala")
val source = FileUtils.readFileToString(path, "utf-8")
val start = "//---------------- dynamic start -------------------please don't modify this line"
val end = "//---------------- dynamic end ---------------------please don't modify this line"

View File

@ -3067,6 +3067,10 @@ class ServerCallback(val ch: Channel) extends DeliverCallback with MdcLoggable{
}
/**
* This is only for testing, not ready for production.
* Still in processing.
*/
object MockedRabbitMqAdapter extends App with MdcLoggable{
private val RPC_QUEUE_NAME = "obp_rpc_queue"
@ -3105,7 +3109,7 @@ object MockedRabbitMqAdapter extends App with MdcLoggable{
} finally {
if (connection != null) {
try {
// connection.close()
// connection.close() //this is a tempreory solution, we keep this connection open to wait for messages
} catch {
case e: Exception => logger.error(s"unknown Exception:$e")
}