mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 18:46:46 +00:00
docfix/added comments
This commit is contained in:
parent
6fbaebbaf3
commit
178f2eba28
@ -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"
|
||||
|
||||
@ -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")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user