Posts

Showing posts with the label jPOS Channel

Creating ISO8583 Server using jPOS Q2

Image
Creating ISO8583 Server using jPOS Q2 is as simple as Creating ISO8583 Client using jPOS Q2 , all we need is to create xml configuration for the QServer and create IsoRequestListener . There are a bunch of properties available to configure a jPOS QServer , you can take a look at the class directly. This post will only cover the basic configuration to create a Server. Below diagram describes the flow for ISO Server to receive and send the response message. ISO Server will listen to the configured port and accept incoming connections. ISO Channel will get the message from the stream based on the specification. Here we are using ASCIIChannel . ISORequestListener.process() method will be invoked after the message successfully unpacked. This is where our logic to process the message starts. Sending response messages back to the clients by invoking ISOSource.send() method. Here it is configuration xml for QServer . <?...

Creating an ISO8583 Client using jPOS Q2

Image
Creating an ISO8583 Client using jPOS Q2 is really simple compared to Spring Integration or Netty. Unlike both Spring Integration or Netty, jPOS is specialized messaging with ISO 8583 format. There are a bunch of utility classes and modules we can use, but please read the jPOS licence before you decide to use jPOS for commercial usage. Ok, let’s start with the purpose of this tutorial, we are going to create an ISO8583 Client using jPOS Q2 . Basically all we need to do is create a mux and channel configuration, but we should know what happens when we send a request and receive a response. Below diagram describes the flow when we send requests using mux on jPOS Q2. We can get the mux instance by calling QMux.getMux(“my-mux-name”) and calling mux.request(reqMsg, timeout) to send a request and wait for the response. In the mux point of view, we are sending and receiving the response synchronously, but correlation happens in the queue space. When we are calling the m...