You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -88,12 +88,15 @@ if (client.isConnected()) { // [7]
88
88
client.shutdown();// [11]
89
89
~~~
90
90
91
-
1. First you need to create a `MessageFactory`
92
-
2. Then you create a [`Iso8583Client`][Iso8583Client] providing `MessageFactory` and, optionally, `SocketAddress`
91
+
1. First you need to create a `MessageFactory`. You MUST specify a role of your client for
92
+
originated messages, e.g. `ACQUIRER`, `ISSUER` or `OTHER`.
93
+
2. Then you create a [`Iso8583Client`][Iso8583Client] providing `MessageFactory` and,
94
+
optionally, `SocketAddress`
93
95
3. Add one or more custom [`IsoMessageListener`][IsoMessageListener]s to handle `IsoMessage`s.
94
96
4. Configure the client. You may omit this step if you're fine with default configuration.
95
97
5. Initialize a client. Now it is ready to connect.
96
-
6. Establish a connection. By default, if connection will is lost, it reconnects automatically. You may disable this behaviour or change _reconnectInterval_.
98
+
6. Establish a connection. By default, if connection will is lost, it reconnects automatically. You
99
+
may disable this behaviour or change _reconnectInterval_.
97
100
7. Verify that connection is established
98
101
8. Send `IsoMessage` asynchronously
99
102
9. Send `IsoMessage` synchronously
@@ -105,7 +108,7 @@ client.shutdown();// [11]
105
108
Typical server workflow includes:
106
109
107
110
~~~java
108
-
var messageFactory =newJ8583MessageFactory<>(ConfigParser.createDefault(), ISO8583Version.V1987);// [1]
111
+
var messageFactory =newJ8583MessageFactory<>(ConfigParser.createDefault(), ISO8583Version.V1987, MessageOrigin.ACQUIRER);// [1]
109
112
Iso8583Server<IsoMessage> server =newIso8583Server<>(port, messageFactory);// [2]
0 commit comments