Skip to content

Commit

Permalink
docfix/added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hongwei1 committed Nov 13, 2024
1 parent 6fbaebb commit 178f2eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 178f2eb

Please sign in to comment.