Set Channel Adaptor from Java file (not from xml)

23 views
Skip to first unread message

brosky samson

unread,
Oct 15, 2021, 4:37:53 PM10/15/21
to jPOS Users
Hello everyone, I want to create my jpos Channel Adaptor (from server_channel.xml) ip and port, loaded from my spring application. Anyone have any ideas?

I try to get the channel adapter and set it. From Q2 log, my server can send and receive request, but my spring run time out. This is my code (in kotlin):

val channel = NameRegistrar.get("server-channel") as ChannelAdaptor
channel.port = 8080
channel.stop()
channel.start()
channel.send(isoMsg, 1000)
var response: ISOMsg = channel.receive( 10000)

Thank you.
Reply all
Reply to author
Forward
0 new messages